NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 225 - Script editor behaves strangely in "ImageJ Macro" language Mode when using double quotation marks.
Script editor behaves strangely in "ImageJ Macro" language Mode when using do...
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: Other
unspecified
PC Windows
: P2 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2010-08-22 00:58 CDT by Yildirim Karslioglu
Modified: 2010-08-22 17:16 CDT
0 users

See Also:


Attachments
Screenshot of the script editor window. (7.56 KB, image/png)
2010-08-22 13:55 CDT, Yildirim Karslioglu

Description Yildirim Karslioglu 2010-08-22 00:58:18 CDT
Hi,

In "ImageJ Macro" language mode of the Script editor, I noticed a strange behavior when I try to put something delimited by double quotation mark. If you put the left double quotation in "ImageJ Macro" language mode, the cursor disappears and you cannot see what you type in. If you put the right hand quotation mark after you type in for a while -despite they cannot be seen, though- the string appears in reverse order (I mean "reverse order" appears as "redro esrever". Strange, isn't it :-)) ). But, if you put the left hand and right hand double quotation marks together in advance, and then you start to type in between them, everything appears and behaves normal.

This problem sometimes make the script editor crashed. I have tested the above scenario using remaining language modes, but the only mode with this problem seems to be the "ImageJ Macro" language option.

Thank you..

Yildirim
Comment 1 Johannes Schindelin 2010-08-22 02:20:00 CDT
I guess you are talking about “UTF-8 quoting”. This is indeed not what the ImageJ Macro Language expects. The Macro Language is strictly ASCII, as most of today's programming languages. Therefore, you have to use simple "ASCII quotes".

Does this resolve your problem?
Comment 2 G. Landini 2010-08-22 10:14:30 CDT
It works fine here. I guess that this has to do with the locale/layout of the keyboard, OR the macro was edited outside Fiji where the quotes were replaced with "smart quotes" (yeah, not so smart).
http://en.wikipedia.org/wiki/Quotation_mark
Comment 3 Yildirim Karslioglu 2010-08-22 13:55:34 CDT
Created attachment 28
Screenshot of the script editor window.
Comment 4 Yildirim Karslioglu 2010-08-22 14:04:01 CDT
(In reply to comment #1)
> I guess you are talking about “UTF-8 quoting”. This is indeed not what the
> ImageJ Macro Language expects. The Macro Language is strictly ASCII, as most of
> today's programming languages. Therefore, you have to use simple "ASCII
> quotes".
> 
> Does this resolve your problem?
> 

Please use the latest non-developer version of Fiji. Follow these steps

1) Starts Fiji 2) File > New > Script 3) Language > ImageJ Macro -in the script editor window- 4) Put the left double quotation mark " and type something -at this point I could not see what I was typing in- 5) Put the closing quotation mark at the end -at this point all characters that I typed in appeared in reverse order-

Please take a look at the screenshot image of the attachment id=28 in Comment #3

So, I you can understand from this brief explanation, I did not change any character code settings -ascii, utf-8 etc-. I noticed this bug while I was using the Fiji "as is".

Thank you.

Yildirim
Comment 5 Yildirim Karslioglu 2010-08-22 14:04:59 CDT
(In reply to comment #1)
> I guess you are talking about “UTF-8 quoting”. This is indeed not what the
> ImageJ Macro Language expects. The Macro Language is strictly ASCII, as most of
> today's programming languages. Therefore, you have to use simple "ASCII
> quotes".
> 
> Does this resolve your problem?
> 

Hi,

Please use the latest non-developer version of Fiji. Follow these steps

1) Starts Fiji 2) File > New > Script 3) Language > ImageJ Macro -in the script editor window- 4) Put the left double quotation mark " and type something -at this point I could not see what I was typing in- 5) Put the closing quotation mark at the end -at this point all characters that I typed in appeared in reverse order-

Please take a look at the screenshot image of the attachment id=28 in Comment #3

So, I you can understand from this brief explanation, I did not change any character code settings -ascii, utf-8 etc-. I noticed this bug while I was using the Fiji "as is".

Thank you.

Yildirim
Comment 6 Yildirim Karslioglu 2010-08-22 14:18:40 CDT
(In reply to comment #2)
> It works fine here. I guess that this has to do with the locale/layout of the
> keyboard, OR the macro was edited outside Fiji where the quotes were replaced
> with "smart quotes" (yeah, not so smart).
> http://en.wikipedia.org/wiki/Quotation_mark
> 

So, if I understand correctly, you are implying that I must have dreamed of such a bug? I don't think so. Please have a look at the comments #3 and #4. By the way, I did not edited any of the macros outside the Fiji. My keyboard layout is Turkish Q, and my locale is English US. Besides, even if this incident was related to my keyboard layout or locale, it is still a bug I think.

Thank you.

Yildirim
Comment 7 G. Landini 2010-08-22 15:44:02 CDT
> So, if I understand correctly, you are implying that I must have dreamed of
> such a bug? 

No, I did not imply anything, so please do not use sarcastic comments here, as they do not help me (or anybody else) to help you.
I invite you to read my message again, you will find that I said that it works fine here and suggested 2 reasons why the problem you reported might be happening.

Now you have clarified about using Fiji "as is". Did you try updating it? If not, I suggest to do as there have been lots of bug fixes since the date of the installation packages.

Please go to: Help>Update Fiji and report back if this still happens in the updated system.

I an not sure what is the screenshot attempting to show us (is the direction of writing is reversed?).
If I type any string in "  " I see something similar to what the screenshot shows but left to right, and I can carry on typing.

When you type the document is written from right to left? 
What happens when you open a macro file with quotation marks? Can you edit it?
What happens when you revert the keyboard layout to English?


Comment 8 G. Landini 2010-08-22 16:17:56 CDT
> 1) Starts Fiji 2) File > New > Script 3) Language > ImageJ Macro -in the 
> script editor window- 4) Put the left double quotation mark " and type
> something -at this point I could not see what I was typing in-

Something else, what do you mean "left double quotation mark".
According to this page there is 1 in the Turkish Q, but 2 in the Turkish F keyboard:
http://www.corened.nl/support/keyboard_layout_illustrations.htm

I wonder if there is something wrong in the keyboard setting or the mapping that is sending out the UTF-8 quoting codes.

But before that I would try updating Fiji anyway.
Comment 9 Johannes Schindelin 2010-08-22 16:20:29 CDT
I can reproduce. But only with the non-developer version. That was the crucial information. I am on it.
Comment 10 Johannes Schindelin 2010-08-22 16:41:27 CDT
Apparently, there was some problem with the RSyntaxTextArea version. I updated to the brand-new release, and the problems are gone here.

Gabriel: the "left" in the "left quote" was not about a special character, but really only about the position.

Y?ld?r?m: Thank you for the bug report. Since this did not happen with the developer version, I would never have realized! Please verify that the bug is fixed.
Comment 11 Johannes Schindelin 2010-08-22 16:53:42 CDT
Apparently the mailtools that come with Hardy Heron do not like UTF-8 characters in the mail. So I updated to libmailtools-perl 2.05-1. Let's hope that this fixes issues.

Y?ld?r?m: could you please test?
Comment 12 Johannes Schindelin 2010-08-22 16:55:09 CDT
Okay, I try one more time, without using UTF-8. Please test.
Comment 13 Yildirim Karslioglu 2010-08-22 17:00:55 CDT
(In reply to comment #7)
> > So, if I understand correctly, you are implying that I must have dreamed of
> > such a bug? 
> 
> No, I did not imply anything, so please do not use sarcastic comments here, as
> they do not help me (or anybody else) to help you.
> I invite you to read my message again, you will find that I said that it works
> fine here and suggested 2 reasons why the problem you reported might be
> happening.
> 
> Now you have clarified about using Fiji "as is". Did you try updating it? If
> not, I suggest to do as there have been lots of bug fixes since the date of the
> installation packages.
> 
> Please go to: Help>Update Fiji and report back if this still happens in the
> updated system.
> 
> I an not sure what is the screenshot attempting to show us (is the direction of
> writing is reversed?).
> If I type any string in "  " I see something similar to what the screenshot
> shows but left to right, and I can carry on typing.
> 
> When you type the document is written from right to left? 
> What happens when you open a macro file with quotation marks? Can you edit it?
> What happens when you revert the keyboard layout to English?
> 

Hi,

I did not try to be sarcastic and no offense was intended at all. (Besides, I
have read your message at least three times before replying it). Whatever,
sorry about that. Of course I have updated Fiji, before reported this issue.

The screenshot shows the final result of the steps I followed, which were
summarized in my previous message. I had intended to type "This is a genuine
bug", but the resulting strings appears as "gub eniuneg a si sihT". By the way,
Turkish latin alphabet is written from left to right, not from right to left.
If I type in a double quotation mark "" and then click in between them, and
then type in something in between them, everything goes normal and the
resulting text is also seen in correct left to right order. The problem only
exists, if you put a " sign, and then type something -as someone usually do-
they cannot be seen on the screen until you put the closing " sign at the end.
As soon as you put the closing " sign, the text you just typed in appears on
the screen, but in a reverse order. I hope, this time I was able to manage to
explain the problem correctly.

And finally, please read the comment #9.

Thank you..

Yildirim

Comment 14 Yildirim Karslioglu 2010-08-22 17:09:12 CDT
(In reply to comment #10)
> Apparently, there was some problem with the RSyntaxTextArea version. I updated
> to the brand-new release, and the problems are gone here.
> 
> Gabriel: the "left" in the "left quote" was not about a special character, but
> really only about the position.
> 
> Y?ld?r?m: Thank you for the bug report. Since this did not happen with the
> developer version, I would never have realized! Please verify that the bug is
> fixed.
> 

I have updated Fiji, and it seems that the issue has been resolved. Thank you very much for your efforts and swift response.

Yildirim
Comment 15 Yildirim Karslioglu 2010-08-22 17:09:36 CDT
(In reply to comment #10)
> Apparently, there was some problem with the RSyntaxTextArea version. I updated
> to the brand-new release, and the problems are gone here.
> 
> Gabriel: the "left" in the "left quote" was not about a special character, but
> really only about the position.
> 
> Y?ld?r?m: Thank you for the bug report. Since this did not happen with the
> developer version, I would never have realized! Please verify that the bug is
> fixed.
> 

I have updated Fiji, and it seems that the issue has been resolved. Thank you very much for your efforts and swift response.

Yildirim
Comment 16 Johannes Schindelin 2010-08-22 17:16:19 CDT
You're welcome!