Re: [NTG-context] SciTE Setup in Windows and .rb scripts

2006-01-21 Thread Hooman Javidnia
Hi

This is still in the same line as my effort to make SciTE work flawlessly
with ConTeXt. Accoridng to Hans's last email on the subject, I thought
that I have to install Lua and Python on my Win XP machine too. So I
did. Lua seems to be a very small program. Am I right? I installed
version 5.1 for Win32 and it has only 4 files, of which 3 are .exe files
and one is a .dll. In my try to make things to work, now even my TeX files
don't compile. 

The structure of my files is like this:

1) context.properties is in the same path as SciTEUser.properties and the
latter file has only one line in it: import context
2) All other context-*-scite.properties files are in the main folder of
SciTE. 
3) I noticed that there should be come file scite-ctx.properties in one of
the directories. I have put it in the main SciTE folder. Is that the right
place?
4) Isn't there some other ctx files that should be copied to the main
SciTE folder? Where can I get those? I didn't find those in the MikTeX
implementation on my machine?
5) As soon as I press F7 in the output view I get:
texmfstart concheck.rb myfile.tex
unknown file type: texmfscripts
Exit code: 0
No output is being generated.

Sorry to take your time with this issue. It might sound simple to some
people, but it actually isn't that simple. I will write about my
experiences later on when I am done with the setup.

Thanks.

-hooman
 



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] SciTE Setup in Windows and .rb scripts

2006-01-20 Thread Hans Hagen

Hooman Javidnia wrote:


It seems that SciTE can't still detect type of the file that I want to
compile or build. I get the same message when I Build myfile.tex too,
although Build process finishes without any errors.
 

run this once in a console: 


FTYPE RubyScript=c:\data\system\ruby\bin\ruby.exe %%1 %%*
FTYPE PerlScript=c:\data\system\perl\bin\perl.exe %%1 %%*
FTYPE PythonScript=c:\data\system\python\bin\python.exe %%1 %%*
FTYPE LuaScript=c:\data\system\lua\bin\lua.exe %%1 %%*

ASSOC .rb=RubyScript
ASSOC .rbw=RubyScript
ASSOC .pl=PerlScript
ASSOC .py=PythonScript
ASSOC .lua=LuaScript

FTYPE SomeText=c:\data\system\scite\wscite\scite.exe
ASSOC .exa=SomeText
ASSOC .xml=SomeText
ASSOC .tex=SomeText
ASSOC .mp=SomeText



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] SciTE Setup in Windows and .rb scripts

2006-01-19 Thread Mari Voipio

Hooman Javidnia wrote:

Should I install Ruby on my machine?


Yes, you'll need both Ruby and Perl. Both are scripting languages.
You must have missed the discussion about this earlier today, but no 
problem, it got wikified:


http://wiki.contextgarden.net/Windows_Installation#Stand-alone_ConTeXt_distribution


If you like to use command interface and unix type command line tools, 
you can install cygwin on your Windows and with Cygwin you get perl and 
ruby.
Cygwin is available at http://www.cygwin.com/ - the Install or update 
now link is made for us Windows dummies, it'll tell you what to do.



So: Either follow the nine-step program given in the wiki (link above) 
or install cygwin and continue the nine-step program from step 3 
(although, judging by your question and my own experience with the same 
issue, the only things you miss at this point are Ruby and possibly 
Perl). Whichever way, somehow you need to make sure you have Ruby and 
Perl on your machine before things start to work.



Hope this helps,


Mari
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] SciTE Setup in Windows and .rb scripts

2006-01-19 Thread Mari Voipio
It would of course help if I learned to read - I didn't exactly answer 
your question fully and I'm sorry about that. I cannot quite answer to 
all parts of your questions, but here's a bit more:



Yes, you need to have working installations of Ruby and Perl on your 
computer. If you can make them tell you their version (see the wiki 
Windows installation page), you can assume the installations work.


Then you also need to find the appropriate *.properties files the 
mscite.pdf manual explains about. I must admit that I have no idea 
whether they are included in MikTex, but the Windows search will tell 
you pretty fast if you have them or not.


It may be useful to know that the file SciTEUser.properties doesn't 
exist until you put something in there, so instruction copy 
context.properties where your SciTEUser.properties file is doesn't 
necessarily make make much sense. In the Scite I downloaded today on my 
Windows 2000, the user properties file went into my C:\Documents and 
Settings\Username folder, I think it'll do the same in XP - so put the 
context.properties into equivalent folder on your computer.



I get this far. Having copied the properties files and restarted Scite, 
the menu looks good, I have the build and compile commands and the test 
file is now recognized as tex/context. But that's it then for tonight, 
something is still missing either in my Windows path or somewhere else. 
And it's time for me to go to bed.



But yes, I'd like to know, too, how this is done. Will need to reinstall 
a computer soonish and that means reinstalling (upgrading) context into 
a brand new XP. It would be nice to try MikTeX for a change...



Mari
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] SciTE Setup in Windows and .rb scripts

2006-01-19 Thread Hooman Javidnia

Thanks Mari for the very valuable advice. With your help, now I have
something  that works (kind of): Here is what I did:

1. I installed Ruby. I have no idea why it should be installed on a system
so that ConTeXt works. 
2. I downloaded texmfstart.exe and put in the texmf bin folder (I have
MikTeX 2.4 on Win XP). 
3. As you had nicely suggested the SciTE user profile wasn't in the
SciTE's working directory. It was in C:/Documents and Settings/My
Username. I copied the context.properties to the same directory and added
the line import context to it. 
4. I wasn't sure whether I should copy the other ConTeXt properties files
to this directory or leave them in SciTE's main folder. I left them to be
in the SciTE's  main folder. 
5. After restarting as you have said I have a working version of
SCiTE. Under the Tools menu I have these Items:
Compile Ctrl-F7
Build F7
Go F5
Check TeX File Ctrl+0
...
When I issue the Compile command I receive the following message:
texmfstart concheck.rb myfile.tex
unknown file type: texmfscripts
...

It seems that SciTE can't still detect type of the file that I want to
compile or build. I get the same message when I Build myfile.tex too,
although Build process finishes without any errors.

6. I have all Latin Modern fonts (open type) on my computer. Still I can't
configure SciTE to work correctly with these fonts. Actully after I added
context.properties it messed up the origianl font scheme of SciTE. Any
ideas on this?

7. When I choose Open from file menu, tex is not among the file
types. Should I add something to the properties files to solve this?

I think I am getting ready to make my move to ConTeXt. I know that I will
be bugging this mailing list with more question, but setting up my editor
is the first step.

Thanks again.

hooman





___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context