[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
An IDL STRTOK??? Was: TextoIDL Broken and Gone?
- Subject: An IDL STRTOK??? Was: TextoIDL Broken and Gone?
- From: Nick Bower <bowern(at)ses.curtin.edu.au>
- Date: Tue, 16 Jan 2001 00:26:34 +0800
- Newsgroups: comp.lang.idl-pvwave
- Organization: Curtin University of Technology
- References: <3A631499.881CAACA@ses.curtin.edu.au>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:22968
The problem seems to be that both textoidl and IDL use a function called
strtok.
Here's the weird bit: it's undocumented in IDL, but is there alright:
IDL> print, strtok('hi there')
0 3
So textoidl is using the IDL version, not its own, and therefore won't
work.
This really sucks and it's most unfortunate that such a well-known
package like this has been inadvertently clobbered without a hint of
documentation.
nick
Nick Bower wrote:
> Check this out. TextoIDL v1.2 won't do subscripts with IDL 5.3:
>
> IDL> print, textoidl("\theta_i")
>
> % Detected at: TRANSLATE_SUB_SUPER 281
> /home/APPS/rsi/idl/user_contrib/TextoIDL/translate_sub_super.pro
> % Type conversion error: Unable to convert given STRING to Long.
> ...a dozen of the above errors...
> % Detected at: TRANSLATE_SUB_SUPER 288
> /home/APPS/rsi/idl_5.3/user_contrib/TextoIDL/translate_sub_super.pro
> 8
>
> This is probably a trivial error, but I can't be bothered trying to
> source it and instead tried to find a textoIDL homepage to look for a
> newer version, but unfortunately everyone links to
> ftp://coma.berkeley.edu/pub/mcraig/idl/TeXtoIDL/ which says "can't set
> guest privleges" and doesn't let you in.
>
> Anyone got a clue what I can do? Is it a known bug?
>
> nick