Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
Share Thread:
Reddit Facebook Twitter
[fixed] comma vs dot
10-21-2019, 12:06 PM (This post was last modified: 11-04-2019 05:16 PM by micheus.)
Post: #1
[fixed] comma vs dot
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

My gallery: marcone.pl
Reply
10-21-2019, 01:14 PM
Post: #2
RE: comma vs dot
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.
Reply
10-21-2019, 05:24 PM
Post: #3
RE: comma vs dot
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. Smile

@MicheusVieira MicheusVieira Micheuss micheus4wings3d
* Wings3D Team stands for: Björn and Dan
Reply
10-22-2019, 01:36 PM (This post was last modified: 10-22-2019 01:49 PM by dgud.)
Post: #4
RE: comma vs dot
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)" ??
Reply
10-22-2019, 04:32 PM
Post: #5
RE: comma vs dot
(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.

@MicheusVieira MicheusVieira Micheuss micheus4wings3d
* Wings3D Team stands for: Björn and Dan
Reply
10-23-2019, 07:02 AM
Post: #6
RE: comma vs dot
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.
Reply
10-23-2019, 12:30 PM (This post was last modified: 10-23-2019 12:31 PM by micheus.)
Post: #7
RE: comma vs dot
(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. Smile

Let's make all comma = dot and solve the problem to anyone. (including me Biggrin)

@MicheusVieira MicheusVieira Micheuss micheus4wings3d
* Wings3D Team stands for: Björn and Dan
Reply
10-23-2019, 03:14 PM (This post was last modified: 10-23-2019 03:19 PM by oort.)
Post: #8
RE: comma vs dot
I probably shouldn't post in this thread since I may not understand the issue... Smile Sad

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
Reply
10-23-2019, 05:02 PM
Post: #9
RE: comma vs dot
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. Biggrin

@MicheusVieira MicheusVieira Micheuss micheus4wings3d
* Wings3D Team stands for: Björn and Dan
Reply
10-23-2019, 05:55 PM
Post: #10
RE: comma vs dot
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)

@MicheusVieira MicheusVieira Micheuss micheus4wings3d
* Wings3D Team stands for: Björn and Dan
Reply


Forum Jump:


User(s) browsing this thread: 1 Guest(s)