5
$\begingroup$

I have just have installed Wolfram Engine for Windows 10. However, when I want to use it in terminal, I cannot type in the square brackets []. My keyboard has a German layout, where square brackets are typed with the combination of AltGr8 or AltGr9, but no character appears when I use this in wolframscript.

Any helpful hints, other than temporarily remap the keyboard when using it?

$\endgroup$
5
  • 1
    $\begingroup$ What do you mean by "W10 pestered a RegEx5, even with admin rights - it still works, In1:2+2 gave 4, keep fingers crossed"? I have no idea how to parse that sentence. Is it relevant to the problem? $\endgroup$
    – MarcoB
    Commented Jun 6, 2023 at 13:52
  • $\begingroup$ You may remap the keys using e.g. the Mathematica file "KeyEventTranslations.tr", for only remapping in MMA or a special program like e.g.: "Clavier+" that allows different key mapping for different programs. $\endgroup$ Commented Jun 6, 2023 at 14:22
  • 2
    $\begingroup$ I have the same problem (with my Slovenian keyboard layout), but I have not yet found the solution (luckily, I don't use wolframscript often). However, note that this is not a problem of Mathematica or wolframscript, but a known bug in Windows Terminal (see for example bug report 1 or bug report 2). $\endgroup$
    – Domen
    Commented Jun 6, 2023 at 14:28
  • $\begingroup$ @MarcoB: It isn't. Probably. :-) (But it probably shows that I have a crappy decade old computer.) $\endgroup$ Commented Jun 6, 2023 at 18:15
  • $\begingroup$ @Domen: I suspected as much. Still good that I asked, Daniels suggestion is worth a try. (P.S. Nice edit.) $\endgroup$ Commented Jun 6, 2023 at 18:17

2 Answers 2

1
$\begingroup$

As explained in a Wolfram support article How do I insert special characters in WolframScript using an international keyboard?, you can use

wolframscript -rawterm
$\endgroup$
1
  • $\begingroup$ Works perfectly. Just tried out the trollolo set {{,}} (as described on MathSE) :-) (As expected, warning, but {{","}} is OK and {"{","}"}) too. $\endgroup$ Commented Mar 8 at 8:06
0
$\begingroup$

Best way for Mathematica, Wolfram and TeX is to install the US and Greek keyboard layouts in windows and use an extra USB english keyboard on notebooks. For desktop computers there exist two-language business keyboards eg by Logitech.

Windows+Space keys switch fast over the layouts list.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.