(29-10-2020, 10:59 AM)ReneZ Wrote: You are not allowed to view links. Register or Login to view.I know that there are not that many users of ivtt, but it is not difficult to install on Unix or Linux systems:
1. get the source from this page: You are not allowed to view links. Register or Login to view. (link to source code below the heading 'IVTT')
2. build it with the command: "cc -o ivtt ivtt.c"
3. find a directory to which you have write access, and which is in your $PATH . I am assuming that this could be ~/bin
4. move the executable there: \mv ivtt ~/bin
5. update your path: rehash
[font=Arial]You can check that this has worked by typing "[font=Courier New]which ivtt"[/font][/font]
[font=Arial]After this, the "[font=Courier New]./ivtt" in the scripts of @bi3mw should be replaced by "ivtt" and the tool can be used from any directory in your account.[/font][/font]
It can also be installed on Windows using excellent Unix emulator MSYS2. Here is the instruction from scratch:
1. Download 64-bit MSYS2 form You are not allowed to view links.
Register or
Login to view..
2. Install to the default directory (should be C:\msys64)
3. Run it, type
"pacman -Syu", wait until everything is installed. Close, open, run "pacman -Syu --noconfirm" again several times until command has no effect.
4. Run "pacman -S --noconfirm mingw-w64-x86_64-gcc". It may take some time and a lot of disk space!
5. Run "pacman -S --noconfirm csh". It's pretty quick.
6. Now create working directory somewhere and download Rene's You are not allowed to view links.
Register or
Login to view. to that directory.
7. Download transliteration files from Rene's site (You are not allowed to view links.
Register or
Login to view.) to the working directory. Don't forget to rename ZL transliteration file to "ZL.txt".
8-10. All these steps can be performed inside MSYS2 environment, but I will show another approach, using bat files and without touching PATH.
8. Inside working directory create file "compile.bat" with the following text:
Code:
SET PATH=C:\msys64\usr\bin;C:\msys64\mingw64\bin;%PATH%
gcc -o ivtt ivtt.c
Run it to obtain ivtt.exe.
9. Create file "test.bat" with
Code:
SET PATH=C:\msys64\usr\bin;C:\msys64\mingw64\bin;%PATH%
ivtt +QO +@Lc ZL.txt >> out.txt
to run example from Rene's site. This should create file "out.txt" with some text.
10. Now to run the csh code from the opening post create "shell.csh" file and copy the script without any changes:
Code:
foreach qq ( A B C D E F G H I J K L M N O Q S T )
ivtt +Q${qq} ZL.txt temp.txt >&/dev/null
foreach pp ( A B C D E F G H I J K L M N O P Q R S T U V W X )
ivtt -x8 +P${pp} temp.txt ${qq}${pp}.txt >&/dev/null
end
\rm temp.txt
end
Create another file "shell.bat" with
Code:
SET PATH=C:\msys64\usr\bin;C:\msys64\mingw64\bin;%PATH%;.
csh shell.csh
Important: note additional "." at the end of the first line of shell.bat, otherwise you must run ivtt as "./ivtt" just as
bi3mw did.
Run the bat file to obtain a lot of txt files.
PS Steps 4 and 8 can be omitted if you already have ivtt.exe file.