KeyKit |__bin |__contrib | |__GeoMaestro | | |__data | | |__lib | | |__userlib | | |__Courant | |__xtra |__doc |__lib |__liblocal |__musicThen set the variable DoGeoMaestro to 1 in your prerc.k file (see around line 135).
Mac OS users: The current prerc.k sets the Keypath value with a "/" directory separator. You should replace the following lines: ############################################################## ## GeoMaestro things - see contrib/GeoMaestro ## To enable it, just set DoGeoMaestro to 1 DoGeoMaestro = 1 if ( DoGeoMaestro ) { Keypath += Pathseparator + "../contrib/GeoMaestro/lib" Keypath += Pathseparator + "../contrib/GeoMaestro/userlib" Keypath += Pathseparator + "../contrib/GeoMaestro/userlib/Courant" Localtools1 += ":../contrib/GeoMaestro/userlib/localtools1.lst" }... with this ones: ############################################################## ## GeoMaestro things - see contrib/GeoMaestro ## To enable it, just set DoGeoMaestro to 1 DoGeoMaestro = 1 if ( DoGeoMaestro ) { ds = Dirseparator Keypath += Pathseparator + ".."+ds+"contrib"+ds+"GeoMaestro"+ds+"lib" Keypath += Pathseparator + ".."+ds+"contrib"+ds+"GeoMaestro"+ds+"userlib" Keypath += Pathseparator + ".."+ds+"contrib"+ds+"GeoMaestro"+ds+"userlib"+ds+"Courant" Localtools1 += ":.."+ds+"contrib"+ds+"GeoMaestro"+ds+"userlib"+ds+"localtools1.lst" } |
mkmenu_...
functions. One useful change is a "delete page" entry in the Page menu, which as it name says makes it possible to delete the current page (without any saving procedure, so be careful with this).
Linux and Mac OS users: The ESC thing will not work without a little hack... you need to replace the readedit2() function in file KeyKit/lib/util1.k with the one provided in the distribution file /xtra/readedit2.k |
function AplusB() { a=2 b=7 print(a+b) }
1- If you delete an item in the array, delete the whole line containing this item. Moreover, if this item is itself an array (you can tell that because the line starts with an "a"), you must also delete all the following lines (because they contain the content of this array), until you find another "a" followed by a level number inferior or equal to the level of the array you deleted. If the index number is superior, that means we are still in this same array you want to delete. Get it ? The indentation is supposed to make this quite obvious (so, by the way, use a non-proportionnal font in your editor !).When you're done, save your text file and use the Padnote() function to get your array back in KeyKit. You can say AnyArray = Padnote() if you want to get it back in the same variable, or AnyOtherArray = Padnote() if you want to copy it elsewhere.
2- If you edit an item value, always leave two space characters between the last "]" and the content. Because two characters will be skipped anyway.
3- If the item you're editing is a string, do not use "", or they will be part of the string. Just use the letter "s".
4- If you add an item, check that the line starts with the correct code. The letter is used to specify the type of the value, and the number is used to give the depth level of the item in the array. The first level is number 1; number 0 is an artefact, don't touch it. You don't need to respect the indentation as long as the code is correct (well, if the indentation is good and the code wrong, guess what ? It's no good).
This feature is used, for example, in the "hear ev/seg" and "hear ev/cir" mouse modes of the GUI, if AutoSnarph is set to 1: then everytime you draw a segment or a circle, the rendered phrase is Snarphed, and, as a comment, the coordinates of the support are stored, so that you can use this information for a later composition (by default AutoSnarph is 0)