![]() |
[fixed] comma vs dot - Printable Version +- Wings 3D Development Forum (https://www.wings3d.com/forum) +-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1) +--- Forum: Bug Reports (https://www.wings3d.com/forum/forumdisplay.php?fid=12) +--- Thread: [fixed] comma vs dot (/showthread.php?tid=2857) Pages:
1
2
|
[fixed] comma vs dot - Hank - 10-21-2019 hi there, W3D 2.2.4 Win 10 I'm not sure if this is a bug or needs only some improvement, but whenever I use 'dot' in my numeric keypad I get 'comma' This is a little bit annoying and for other 3D software it works: dot = dot and not dot = comma Otherwise, all numeric input in W3D have to be followed by 'main' numeric keys... BR, Hank RE: comma vs dot - Nova - 10-21-2019 I've reported the same thing a long time ago and IIRC it's not considered a bug. I really wish I could change the behaviour in Wings (It used to behave like a dot), because no matter what I've tried to do, to change that behaviour in Windows hasn't worked. RE: comma vs dot - micheus - 10-21-2019 I'm not sure that can be just changed. But, I always thought it would be better if it could to use the OS locale settings. In my numeric keypad I don't have a "dot" but a "comma" - we use comma for decimals and dot for thousands (and I have another keyboard with both in the keypad). Although it would help me make comma=dot, I'm pretty sure there is a way to make it work right - which means I will alway have to use the dot in the main keyboard. ![]() RE: comma vs dot - dgud - 10-22-2019 Should I always translate commas between numbers to dot then, i.e. 1,2 becomes 1.2 ? We use to evaluate math expressions (so you can write 5.0*pi inside your dialogs) and erlang expects dot to be the delimiter between integer and fractions. You can write: "A = 5.4, B=4.3, sin(deg2rad A+B)" where comma separates the expressions, so it might be confusing tol allow "A = 5,4, B=4,3, sin(deg2rad A+B)" ?? RE: comma vs dot - micheus - 10-22-2019 (10-22-2019, 01:36 PM)dgud Wrote: ... erlang expects dot to be the delimiter between integer and fractions.If Erlang doesn't handle OS locale information, then ... (10-22-2019, 01:36 PM)dgud Wrote: Should I always translate commas between numbers to dot then, i.e. 1,2 becomes 1.2 ?... The answer is YES. RE: comma vs dot - dgud - 10-23-2019 Erlang is a programming language, no programming language syntax is dependent on locale that would be weird. You would not be able to compile code I had written because we had different locale. Normally the programming language is not exposed in an application, though, but I thought it was a cool feature. Wings doesn't handle locale, wxWidgets have some support but I don't understand it and I believe it's to automatic for my liking, i.e. uses OS locale whatever I want. RE: comma vs dot - micheus - 10-23-2019 (10-23-2019, 07:02 AM)dgud Wrote: Normally the programming language is not exposed in an application,I was considering just that. But, as the math expressions are available in Erlang I thought it would handle locale only in this situation. ![]() Let's make all comma = dot and solve the problem to anyone. (including me ![]() RE: comma vs dot - oort - 10-23-2019 I probably shouldn't post in this thread since I may not understand the issue... ![]() ![]() I think Nova wants dot = dot and comma = comma. I think he is reporting that currently Wings is dot = comma on his keypad, when it should be dot = dot. Sorry if I do not understand and I am confusing things. I get dot=dot in Windows Wings 2.2.3 on my keypad. oort RE: comma vs dot - micheus - 10-23-2019 No problem oort maybe we are talking about a different keypad: an additional one; a notebook one;... I my case, what I can check and experience is about these bellow: 1) a keyboard with a keypad which its layout has only a "comma" and that works like a "comma"; ![]() 2) and another keyboard with a keypad which its layout has both a "comma" and a "dot". Each one works like it should be (comma=comma and dot=dot). ![]() (*these are not my keyboards - just the layout) As I said, for me it would be much better have the comma converted to dot. ![]() RE: comma vs dot - micheus - 10-23-2019 Also, I just checked that Wings3D doesn't really do any kind of translation currently. It just handle what the wxWidgets library gives to it - and wx module should be processing correctly the keys (WXK_NUMPAD_DECIMAL and WXK_DECIMAL) |