translatable-exegetical-tools / Abbott-Smith

Abbott-Smith's Manual Greek Lexicon
31 stars 19 forks source link

AutoHotKey Hebrew pointing removed plus many keystrokes to speed editing #61

Closed destatez closed 7 years ago

destatez commented 7 years ago

Go to site: https://autohotkey.com/ Click “Download” button, then “Installer” button that appears To Install: If using Chrome: the file AutoHotkey_1.1.24.03_setup.exe should appear at the bottom of the Chrome browser. Right click over that filename and select open. If using Firefox select the “Save File” button on the pop-up menu. The select the Downloads arrow on the icon line and then select “Show All Downloads”. Right-click the file in the new window and select “Open Containing Folder”. Right-click that file again and select “Open”. When Installation starts you will want to select the standard installation which will be the Unicode version for your machine type (32 or 64 bit). When installation is complete, select Exit. Windows Explorer will now be configured to use the toolset. I have put several ahk files in the attached zip file, the file type for theses must be maintained as ahk. These are defined as: RemoveHebrewPointing.ahk – Remove the Hebrew pointing of the selected Hebrew text with an Alt+. (Alt key and period) {See note below} XMLGloss.ahk - Insert “” at the current cursor location with an Alt+g keystroke. XMLSlashGloss.ahk - Insert “” at the current cursor location with an Alt+h keystroke. XMLRef.ahk - Insert “” at the current cursor location with an Alt+r keystroke. XMLSlashRef.ahk - Insert “” at the current cursor location with an Alt+t keystroke. XMLemph.ahk - Insert “” at the current cursor location with an Alt+e keystroke. For all but the first file, the file contents are very simple, with an initial definition of the key sequence, followed by an action, in this case a SendRaw command followed by the text that is desired for entry at the current cursor location There is nothing magic about the key sequences that I have defined for these. You can change them as you prefer. I have found that even though the tool supports the use of the Windows key, the Windows operating system seemed to take precedence over what is defined by AHK. I just stayed away from using that key. Once you have an ahk file configured as you desire, or the first time you use what I have attached, you will need to open up the Windows Explorer to the folder where you have stored them. Right-click the appropriate ahk file and select “Run Script”. You are not set up to make use of these hotkeys. The RemoveHebrewPointing.ahk file is a little more complex and makes use of a subroutine which does the work of removing the Hebrew vowels for the text that is in the copy-paste clipboard buffer. The first action of this file is to do a Cntl+C (copy) which puts the highlighted text into the clipboard buffer. It then calls the subroutine and finally does a Cntl+V (paste) to replace the selected Hebrew text with its vowels removed. This file will remove ALL Hebrew points except shin, sin, dagesh/mapiq, and sof pasuq. I did find that with a final kaf with a sof pasuq, that sof pasuq ends up really being a Shewa, so this function will remove that pointing. I did not want to open up the editing to remove the sheva, because there are many places where we want that preserved. If you are able to select all but that last letter, you apply the function to the remainder of the Hebrew word. If you have any questions, please post them as comments against this issue.This GitHub toolsest wont let me direcfkt\y attach .ahk files, so I put them in a Zip filr/folder.

AHK_Files.zip