Sg2.9
Double accent mark on Spanish...
Recent RSS
Double accent mark on Spanish keyboard
From:  Zed
Date:  27. March 2010, 21:44

Hello, first and foremost congrats for the new versions and scripts everyone, great job!

I'm having a problem with the latest version, 2.7.040, win7 64bits, CS4.

In my Spanish keyboard, when I want to write an accented word such as "fantástico", the outcome is "fant´´astico". That is, Illustrator is doubling my accent mark keystrokes.

I know it's due to Scriptographer, since removing its directory temporarily fixes the problem. This didn't happen with v2.5.030. I can't find any intermediate version like 2.6 in the site (are old versions hidden somewhere?) so I can't say if this is the first version to cause that.

At first I thought it was a virus, since there actually exists a trojan/keylogger which causes the same bizarre behaviour, double accent marks (!)... but this only happens in illustrator and as I said, removing the Scripto dir temporarily fixes the issue.

Anyone has the same problem or know of a workaround?

Many thanks in advance!

Re: Double accent mark on Spanish keyboard
From:  Jürg Lehni
Date:  28. March 2010, 22:24

Apologies for the problems with keyboards on the latest version of SG. Could you check if the modification mentioned in the following post solves your problem?

change shortcut key for scriptogtapher interactive tool

Re: Double accent mark on Spanish keyboard
From:  Zed
Date:  28. March 2010, 23:08

Hey Jürg, no need for apologies, you're doing a great job ;)

I've commented those lines in Scriptographer/Core/JavaScript/gui/main.js out as indicated on that post but the problem persists.

The line: if (event.character == '`') {

was actually: if (event.character == '`' && !event.modifiers.command && !event.modifiers.shift) {

but I assume that it was changed from 2.6 to 2.7 and the fix itself was to just comment the lines, right? Anyway, also tested changing the new line to the 2.6 line and un-comment it but no dice.

If I can help in any way to track the bug down, just let me know.

Re: Double accent mark on Spanish keyboard
From:  Jürg Lehni
Date:  29. March 2010, 10:51

Yes you are right, this line did change between 2.6 and 2.7, to fix another issue with keyboard hooks. After commenting out the whole block, did you restart Illustrator to see if it changes the bevaior?

Re: Double accent mark on Spanish keyboard
From:  Zed
Date:  29. March 2010, 11:18

Yes, of course I restarted Illustrator. Problem still there.

To keep things clear, the block from lines 454 to 459 looks like this now in my Scriptographer/Core/JavaScript/gui/main.js file:

//	global.onKeyDown = function(event) {
//		if (event.character == '`' && !event.modifiers.command && !event.modifiers.shift) {
//			tool.selected = true;
//			return true;
//		}
//	}
Re: Double accent mark on Spanish keyboard
From:  Zed
Date:  7. April 2010, 18:56

Any update on this? :)

Re: Double accent mark on Spanish keyboard
From:  Jürg Lehni
Date:  9. April 2010, 13:41

To understand better, is this the keyboard layout you are on?

http://msdn.microsoft.com/en-us/library/cc195122(v=MSDN.10).aspx

And in order to type á, you type the ´ key at the top right, followed by 'a'?

I just switched my Windows to Spanish layout and had no problems typing this... So I might either be on the wrong layout (Spanish International Sort), or something else is going wrong.

I will need to look into this on Windows 7, maybe it has to do with that. Please tell me more about your layout. Thanks.

Re: Double accent mark on Spanish keyboard
From:  Zed
Date:  9. April 2010, 15:54

Hi again Jürg,

yep, that's my keyboard layout.

In order to type á, I press the '´' key just next to the 'ñ' key (http://i.msdn.microsoft.com/Cc195122.G0QFD401%28en-us,MSDN.10%29.gif), followed by an 'a'.

The regional configuration section of my control panel says that I'm on an 'Español (España, internacional)' layout. Which means as you can guess: Spanish (Spain, International).

Hope this helps, thanks!

Re: Double accent mark on Spanish keyboard
From:  Zed
Date:  25. April 2010, 19:33

Just a quick note to "close" this thread and help people with older versions: This issue has been fixed on v2.7.044!

Re: Double accent mark on Spanish keyboard
From:  Jürg Lehni
Date:  25. April 2010, 21:21

I am glad to hear! And thanks for the detailed reports.

Re: Double accent mark on Spanish keyboard
From:  Zed
Date:  4. May 2010, 14:32

Ok, this is embarrassing.

Today I had to use Illustrator to edit some texts and when writing an accented word, bang- the bug came back.

I really believe I tested v2.7.044 when it came out and saw the bug disappear, but alas - I'm not that sure anymore... maybe I had both v2.4 and v2.7.044 in the plugs dir and Illustrator loaded v2.4? But then again!! I clearly recall I tested the Time Bandit script as well (which didn't work correctly in v2.7.042 and didn't work at all in v2.4) and it worked flawlessly!! (And it still does!!) So again I think I DID test v2.7.044 and the accent mark bug was gone.

So Jürg, I'm sorry to say it still doesn't work properly. Apart from the time bandit script working ok now, the 0 in the numeric pad works as expected as well, it no longer triggers sg tool.

I can't understand why this is happening, haven't installed anything new related to Illustrator or the keyboard... *sigh*

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Transform Each 08.01.12