-
• #2
the error is on the key ("é" of my array), not the content with accent.
if i remove the key with accents, everythings is good (there is accent in the content, see in 'i' keystrange!
é.
-
• #3
found a way to declare my accents, by using their ascii code (but it's less readable by human)
,'233':["éâ+1","éc+1","ée+1","éj+1","éo+1","ép-1","ér+0","és+1","ét+1","év+2"] ,'232':["ès+1","èt+1"] ,'234':["êt+1"] ,'202':["Êt-1"]
-
• #4
Bravo!
-
• #5
the problem is: it was working, but not now!
why? -
• #6
Hi, Yes - there was definitely an IDE app update the week before last. Users of espruino.com/ide had had been using it for a while - it was just the chrome app that was lagging behind.
To be honest any changes that went in should really have helped with non-ASCII characters since we're using them more in Bangle.js now.
It looks from the error like maybe you had minification enabled? I'm not sure but that could be having some effect? Does it help turning minification off?
-
• #8
nope, minification does not help.
I mean, turn minification off.
If I upload the code you posted to https://www.espruino.com/ide/emulator.html then it uploads fine.
However if I turn minification on then it fails with exactly the error you report.
It looks like minification turned:
'é':["éâ+1","éc+1","ée+1","éj+1","éo+1","ép-1","ér+0","és+1","ét+1","év+2"]
into
é:["éâ+1","éc+1","ée+1","éj+1","éo+1","ép-1","ér+0","és+1","ét+1","év+2"]
Which Espruino doesn't like because it isn't expecting non-ASCII variable names.
-
• #9
ok, thanks for your time.
i extend toUpperCase() to upperCase French diacritic accents
String.prototype.toUpperCaseFr = function toUpperCaseFr() { return this.toUpperCase().replace(/à/gm, "À").replace(/â/gm, "Â").replace(/é/gm, "É").replace(/è/gm, "È").replace(/ê/gm, "Ê").replace(/ë/gm, "Ë").replace(/î/gm, "Î").replace(/ï/gm, "Ï").replace(/ô/gm, "Ô").replace(/ö/gm, "Ö").replace(/û/gm, "Û").replace(/ü/gm, "Ü").replace(/ù/gm, "Ù").replace(/ç/gm, "Ç").replace(/œ/gm,"Œ"); };
it's working.
é.
Hello @Gordon
my Chrome app is web ide 0.73.7
last week? or 2 week ago (don't remember)
i was working with a code in espruino that work great.
when i attempt to upload to my espruino pico (just modifying a typo)
the ide return:
same firmware, same espruino pico...
the part code is about accents (yes again!)
i do not have this pb on June 8th!
have an idea?
thanks
i use custom font (no web ide) :/