[Bf-committers] Numeric fields should accept coma and convert it todot

Campbell Barton ideasman42 at gmail.com
Sat Apr 16 16:12:48 CEST 2011


Also units, where: 2' 4"
... is valid input for: 2 ft 4 inches

Supporting 1'000,00 & units & python evaluation would be tricky and
error prone enough to make it not workable IMHO.

On Sat, Apr 16, 2011 at 11:28 AM, Martin Poirier <theeth at yahoo.com> wrote:
> The issue is that it doesn't accept just numbers, it accepts anything that evaluates to an expression, so you can type stuff lie: 1/3, 16/9*480, sum(15, 12.5, 48.6), ...
>
> Strictly parsing with a locale is not possible.
>
> Martin
>
> --- On Sat, 4/16/11, Remo Pini <remo.pini at avexys.com> wrote:
>
>> From: Remo Pini <remo.pini at avexys.com>
>> Subject: Re: [Bf-committers] Numeric fields should accept coma and convert it todot
>> To: "bf-blender developers" <bf-committers at blender.org>
>> Received: Saturday, April 16, 2011, 3:54 AM
>> I actually think that Blender should
>> try to adhere to whatever locale
>> settings the user has chosen if at all possible. This goes
>> for date,
>> time and number formats.
>>
>> I've seen numbers setup like 1000.00 / 1'000.00 / 1,000.00
>> / 1'000,00 ->
>> simply accepting "." and "," will not solve this issues,
>> the "parser"
>> needs to be locale aware instead of just replacing
>> things...
>>
>> Cheers
>>
>> Remo
>>
>> > -----Original Message-----
>> > From: bf-committers-bounces at blender.org
>> [mailto:bf-committers-
>> > bounces at blender.org]
>> On Behalf Of Damir Prebeg
>> > Sent: Freitag, 15. April 2011 11:08
>> > To: bf-blender developers
>> > Subject: [Bf-committers] Numeric fields should accept
>> coma and convert
>> it
>> > todot
>> >
>> > I use numeric keys a lot, but on my locale settings
>> num key DEL is
>> > coma not dot. Because of that I often make mistakes
>> with numeric
>> > inputs. I think that all numeric fields should accept
>> and convert coma
>> > to dot.
>> > _______________________________________________
>> > Bf-committers mailing list
>> > Bf-committers at blender.org
>> > http://lists.blender.org/mailman/listinfo/bf-committers
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
>>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>



-- 
- Campbell


More information about the Bf-committers mailing list