Editor vkNotepad version 1.11.24
The program's menu shows only nonstandard functions. Besides the editor allows one to select the part of the text by mouse or Shift and Arrows. The selected text can be saved in the buffer ([Ctrl]+[C]) or cutted ([Ctrl]+[X]). In any time the text from the buffer can be placed on the cursor position[(Ctrl]+[V]). All the text can be selected by ([Ctrl]+[A]). The Undo operation can be performed with [Ctrl]+[Z], whereas Redu operation - with [Ctrl+Y]. Also one can use [Home], [End], [Pade up], [Page down]. The text from file will be written to the same at exit, new text will be written to the file newtext.txt. If saving a text is not necessary, close a window by plus sign at right top corner.
Now consider menu options:
File/Open - reading the text from a chosen file. Instead the editor can take the name of file from the command line and can be run by clikking the file.
File/reOpen - quick reading the preceding file once again.
File/Open from List - reading the text from the file chosen from a List.
File/Save - save current text into the current file.
File/Save as - save current text into the new file.
File/Save to List - save current text into the current file and put info about the file to the List.
File/Encoding - choose one of the eight encoding kinds as a current encoding for saving the text in the file. There are next kinds: (AW,AD,AK) Ansi files with various kind of russian symbols coding, UB,UL - unicode coding with big,little byte first. FJ,FG,FN - UTF coding eith Java marker, general marker or without a marker.
File/Line ending - choose one of the three line ending symbol for saving the new text in the file Java (LR), Windows (CR,LR), Apple (CR).
File/reOpen as - make an attempt to open the file with chosen coding without markers (AD,AK,FN).
File/Exit - quit the editor with saving the new contents and parameters. If saving the text and parameters is not necessary, close the window by icon in the top-right corner.
Edit/Find - finding a selected word from the cursor position to the down.
Edit/Find Next - finding once again a selected previously word.
Edit/Replace - replace one combination of symbols by other combination. The symbols can be defined by unicodes as (#123 ). Here symbol # is a mark of unicode followed by unicode number and blank symbol.
Edit/Info - info on parameters of the text and the editor
Edit/Go to line - put a cursor position at the beginning of the chosen line.
Edit/Input by code - input the unicode symbols by their indexes.
Edit/Input Date - input current Date and Time.
Edit/Input HTML Tag - input HTML Tag that is convenient for the internet writers. It opens new window with HTML Tags, each on separate line. It is necessary to put cursor on the chosen tag and close window by cross icon or [Esc] key. The chosen tag will appear at the cursor position. The list of tags can be modified and saved by menu item [Update]
Edit/Input text - input text fragment stored in the internal file. Symbols of the end of line are coded by ` and are replaced on the end of line again.
Edit/Store text - store selected text fragment to the internal file. Symbols of the end of line are coded by ` .
Format/Change Font - choosing a font name, a kind and a size of the font. Kind means 0 - normal, 1 - bold, 2 - italic. There are two ways for changing font. First one is inputting text, second one is choosing from a list. However the list can by modified and saved by menu item [Update].
Format/Wrap lines - starts a work with breaking the lines if a line length is larger than the width of the windows. Next call cancels this work
Format/Set Tab - change the tab symbol effect (number of blank symbols).
Format/Set Margin - change the margins between text and boundaries of the window.
Format/Set Colors - change colors for the text, the background, the cursor, and the selected text and it's background. Each color is determined by three integer numbers from 0 to 255 which define red, green and blue components.
Format/Update - allows user to update the contents of windows which show: Lists of fonts, Html tags, Calculation programs or Texts on the picture. Then they will be saved for the following working with the editor.
Format/Adjust/Browser - this operation allows user to set a default browser, which runs in the operation Execute (see below) if a cursor points on a word of hyper-reference which begins with "http://". The program in a file manager opens a folder of preceding browser (initially C:\Program Files\Internet Explorer|iexplore.exe). The user can choose any other which are installed on a computer.
Show/Brackets - makes selection of text between matched brackets. If the text contains brackets of kind ")" or "]" or "}" then one may put cursor in front of the brackets and press the key F11. The all text at the left up to matched opening bracket will be selected. The operation is useful for programmers.
Show/Figure - The figure as a picture will be shown automatically if the text contains columns of number. First column must be argument, other columns - various functions.
Show/Figure settings - the user may change the parameters of the figure.
Show/Slide show - The pictures will be shown. To view the pictures the text must contain the names of the (jpg or png, or gif) files in some lines. Such lines have to start with the symbol (#) in the first position, before the name, the name of file is followed by the symbol (|), all subsequent symbols in the line will be ingored. So the name is between (#) and (|). The name must be a full URL and can show both internet and local computer. The URL of local file must be as "File:C:/a/b/filename" i.e. (/) instead of (\). URL of internet is usual "http://a/a/filename". A special case - if the first symbol of the file is ($) then the other text points on the file in the folder [resources] inside the current folder. For example, the line #$mypic.jpg| points on the file mypic.jpg and a location of this file is specified above.
Show/Slide animation - This operation is a development or modification of the preceding operation. It also shows a slide show with pictures or photos both on the computer or internet. But it makes this automatically along the protocol which has to be written in the file. A full name of this file the program takes from the program's window, from the line where a cursor is placed. This line must contain only file name. The list of file names of different protocols can be loaded from the file. The protocol must be written according to some rules and it is really a program of show. The show can be controlled by hand from the keyboard The rules for the protocol and ways to rule a show are written in the separate file. CLICK HERE to read these rules.
Show/Image - This operation allows one to verify the text representation of the picture. The editor can open the files of kind jpg, png, gif and can make a coding of these files by text in special quasi-hexagonal system: one byte by two bytes using symbols from 48 to 63. This text can be copied to other programs by means of text buffer. This operation just take the text and show the picture using the same algorithm of decoding which will be used by other programs. If making picture is impossible the program show Error message.
Operation/Image Processor/Fragment - This operation allows one to get fragment of picture
Operation/Image Processor/Resize - This operation allows one to resize picture
Operation/Image Processor/Rotate - This operation allows one to rotate picture
Operation/Image Processor/Set text - This operation allows one to set text on the picture
Operation/Image Processor/Set image - This operation allows one to set new image on the picture
Operation/Image Viewer - This operation allows one to look at pictures of formats jpg, png, gif in the computer's folders with previewing. The last folder is remembered for the next run of program. The pictures are shown as is, i. e. without scaling. If the picture's size exceeds the screen size, the scrolling bar will be shown. Fir each figure one can see it's dimensions and the cursor coordinates when it moves on the picture.
Operation/Snapshot - This operation allows one to select the image from the part of screen and save it in the file of kind jpg or png. It works like this. You open the editor and then move the editor window down so that it is seen by only upper title line. Then you work with other programs and get the picture on the screen. You activate the editor by means of icon in the status line, press hot keys [Ctrl]+[P] and the screen picture will be shown in the separate window of name "Capture". You select the region by means of mouse like this: move the mouse to the left-bottom corner of the region, press the left button, move the mouse to the right-top corner and release the left button. Then the selected picture will be in the new window. Click on the window opens a file manager, you choose the file and the picture will be saved in the file with your name. There is another possibility. You choose coordinates of the left bottom corner of the region by means of cursor coordinates in the status line of the window, then press the key [C]. In a new windows you input these x,y coordinates with the width and the height of the region. The region will be selected. The later is the same.
Operation/Slide - This operation allows one to create a slide as a complex picture consisting from several fragments -- pictures of less sizes. All fragments will be put on the region of desirable sizes. The data for the operation have to be written in the window of the text editor. In the first line must be the full path to the working folder like this d:/tmp/2/ . In the second line must be three numbers, symbol of vertical line and the name of file like this w h n|name . Here w and h -- a width and a height of the picture to be created in pixels, n -- the number of fragments. Initially the color of the field is white. The following text must contain n lines, each line for one fragment. The data for the fragment looks like this x y a Sx Sy sx sy|name.type . Description from the end to the beginning. The name of file can be any, just the same as needed, the type -- either jpg or png, other types are not supported. The parameters sx è sy are the scaling coefficients for scaling before to be put on the slide. If scaling is not needed then let us write 1 1. The parameters Sx Sy are the shear transformation. If it is not needed then let us write 0 0. The parameter a is the angle of rotation of the picture around its center. The parameters x and y determine the coordinates of the fragment counted from the left bottom corner of the slide. If à = 0 then they are coordinates of the left bottom corner of the fragment. If à > 0 or à < 0 then they are the coordinates of the center. After selection of the operation or pressing the keys Ctrl+0 one can see the picture of the total slide. After clicking on the picture or pressing any key the picture disappears and the working folder obtain two files with extensions jpg and png and with the specified name. If something is wrong one can change the parameters and repeat the attempt.
Operation/Calculation - This operation allows one to perform calculation of mathematical expressions and functions written in the program. The text of the program is inputted in the special window and can be saved in the editor memory by means of menu item Format/Update/Calculation for the next runs of the program. The text is saved automatically during a current run. One can input many programs in the window, separate programs is divided by the blank line. First program begins from the beginning of the text up to a blank line. If the calculation program is ready, then put a cursor on the it's text and then press the key [Esc]. The calculation results will appear in the main window of the editor as a table of numbers. The calculation program has to satisfy some rules, which described in the separate file, CLICK HERE]. It is important that one can use a variables and the array r() elements. As a result the first elements of the array r() will be shown as a table having n rows, m columns and k symbols per the number. The values of the variable k, m, n must be determined in the program at the end. Thus the program has to determine the first elements of the array. If the table shows a dependences of some functions on one argument then this dependences can be shown graphically by means of menu item Show/Figure. The program can contain errors which lead to impossibility of calculations. The editor shows error message with a part of the code where error was detected. In the next open of operation the cursor will be located at the error point.
Operation/Alarm clock - This operation allows one to use the program as an Alarm clock. The program does not show current time because it is on a screeen. But frequently it happens that work takes all attention, however, at a definite time it is necessary to make something. Therefore it will be good if the program makes sound signal at the definite time. Just this can be made with a given operation. In the input field one has to improve date and time and then click [OK]. The time will go. Unfortunately one can not use the program up to the time specified because the program works on this operation. But all other programs can be used. One can open a new copy of the program and continue to work in there. Of course the current text must be saved in the file. At the defined time the program stop to sleep and will give sound signal as a music. One can stop the music by clicking a button [Cancel] and can to define a new time or exit by means of the button [Exit]. At this time the program is ready to perform other operations.
Operation/Execute - This operation allows one to execute the file which is located on a computer as well as internet references. It works as follows: It takes a word which is pointed by a cursor. , i. e. the text without a blank sings bounded at the left and the right either a blank sign or a beginning or an end of the line. Then it makes a check: coincide the first 7 letters of the word with "http://". If yes, then it runs a default browser (see above in the menu Format) with this reference. If no, then it makes a check: is this word a full file name which exists on a computer or not. If yes and a file exists then it automatically run the program which is tied with this file by means of extension. So if the file extension is htm then a browser will be run with this file. If it is mp3 or flv then a current player of media files will be run. And so on.
Operation/Text trasform/Ordering lines - This operation makes ordering the lines of the text according to alphabet. If the text has many lines the operation can take many time. In this case the process is shown graphically.The result, i.e. the text with the lines ordering alphabetically, is not shown in the editor, but is written directly to the file, from which the text was loaded. For this reason before calling the operation the text must be loaded by the operation "File/Open". The operation of copying the file if not correct. If you copy the text, then please save it and open once again. So, to see the ordering text one needs to reopen the file by means of menu item File/reOpen. In particular this operation allows one to ordering the files of dictionary for spell checking which are used by this program because the program works with files ordering according to another rule.
Operation/Text trasform/Add dictionaries - This operation has special meaning which can be sometimes useful. Various people can have different dictionaries for checking words. The dictionaries can have both different and the same words. If the dictionaries are very big then a procedure of transition new words from one dictionary to another one by means of the program itself can take many times. This operation makes new dictionary from two ones. New dictionary has all words from both two initial ones but without loss of word order. In general case this operation can work with any files having the same order of lines. This can be done by ordering lines. The full names of two initial and a resulting dictionaries must be written in first three lines of the editor text. The result will be done in the file.
Operation/Text trasform/Only alphabet - This operation has special meaning which can be sometimes useful. It is useful, for example, in working with dictionary files. The program takes the all text from the editor window and then killing all words which have symbols different from english and russian alphabets and a blank symbol. Then new text is returned to the editor window.
Dictionary/Load current Dic - Operations with a dictionary allows one to check automatically a rightness of writing separate words. A checking is performed by means of finding of inputted word in the dictionary. If the word is absent in the dictionary, it is marked. It is a pointer on the fact that this word either is saldom or is wrong. This operation allows one to load to an editor a dictionary, which was used during preceding run of editor. In the first run of the editor this operation cannot be used because the program does not know about a dictionary. Loading a dictionary is first and required for a use of other operations of this menu. A pointer of loading a dictionary is shown in the title line as "DY" (dictionary is loaded) or "DN" (dictionary is not loaded). After loading a dictionary a check of rightness of writing new words begins automatically. However, if at the moment of loading the editor has some text, this text is not checked automatically. For this one has to stop check and to start check again by means of operation described below.
Dictionary/Load new Dic - This operation allows one to open a new dictionary. File manager shows all files having an extension dic from the current folder where the editor was run. The files of dictionary may be many but the editor is working only with one of them which will be chosen. After choosing the dictionary will be remembered and a preceding operation can be used.
Dictionary/Start Check - This operation allows one to open a check once more if it was closed by following operation.
Dictionary/Stop Check - This operation allows one to close a check if it was opened by preceding operation or at the moment of dictionary loading.
Dictionary/Add words to Dic - This operation allows one to create a dictionary. The program initially has an empty dictionary with only one word [ß] in russian, although the files of dictionary can be obtain in the internet. This operation allows one to include in the dictionary new words from the selected text in the editor window. Only the words which are absent in the dictionary will be included. Therefore, if the editor shows some words in the text as a pointer that they are absent in the dictionary, one can select all text by [Ctrl+A], and all new words from the text will be included in the dictionary. So, one can load some thick book in the editor and then include all word to the dictionary. Or one can include only words from his own letters.
Dictionary/Remove words from Dic - This operation allows one to exclude words of the selected text from the dictionary. It may be necessary if some wrong words were loaded. It is important also to know that the dictionary can be editted by hand. In this one has to fulfil some rules: (1) each word is writing on the separate line by capital letters, (2) you must check for that each word is written only once. It is not easy because the words are not ordered.
Note for experts
Sometimes the program cannot fulfil the operation. If this happens sometimes the program makes a warning. However, one can obtain more information about the error, which is written in the terminal window. This information shows what happens really and shows the point in the program code where it is happened. In the normal mode such information is blocked. But if to run the program from a command line or from a bat-file with a file name of the file and a special key -i before it, then this detailed information will be seen. This command looks like this
java -jar vkNotepad.jar -i file name
where words file name must be replaced by a real name or a full path, if the file is placed in another folder.