Werner,

That's a reasonable argument. I understand the View Widget is considered 
"over loaded" so Perhaps a new widget for number formats would make sense.

However let me think if there are some snazzy work arounds for now.

Tones

On Friday, 18 September 2020 at 23:20:14 UTC+10 Werner wrote:

> Tony, 
>
> sorry, was absorbed by other projects, so couldn't reply earlier. OK, I'll 
> be a bit more specific:
>
> I have a number stored in a JSON tiddler. When I retrieve it, I get plain 
> old 3500 for example. But I want decimal points and comma separators to 
> have it rendered like 3,500. Or 3.500 in German. Or whatever is your 
> default locale. And, if DateFormat is included in the view widget, I think 
> NumberFormat should also be. So I think, the most elegant solution would be 
> extending the view widget source code to allow for "number" and pass it 
> through to JavaScript intl.Numberformat (cf.: 
> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat).
>  
> Should not be that hard to implement. Maybe I try it, if I find the time.
>
> Of course there are plugins, but I think something as basic as a number 
> format should be in the core.
>
> Werner
>
> TW Tones schrieb am Dienstag, 8. September 2020 um 02:32:41 UTC+2:
>
>> Post script
>>
>> Actualy i think using simple templates to display a number in a desired 
>> format would be smart and the template can be changed to suit localisation 
>> if not automaticaly respond to localisation. Macro access to templates is 
>> also easy to provide.
>>
>> Tones
>>
>> On Tuesday, 8 September 2020 at 10:25:30 UTC+10 TW Tones wrote:
>>
>>> Werner
>>>
>>> Perhaps some examples?
>>>
>>> Evans formulae plugin has features to support this from memory. There 
>>> are other maths plugins that may.
>>>
>>> I can imagin a gap that exists between basic maths and the more advanced 
>>> maths especialy in relation to display.
>>>
>>> However i can see these gaps would be easy to solve with a few wiki text 
>>> macros or taping into javascript functions that already handle it.
>>>
>>> Please research your percived gaps and post back some details.
>>>
>>> Tones
>>>
>>> On Tuesday, 8 September 2020 at 02:09:26 UTC+10 Werner wrote:
>>>
>>>> Guys,
>>>>
>>>> am I right that there is no TW-inherent way to display a number format 
>>>> or, better, locale-specific number format?
>>>>
>>>> Wouldn't it be great if it was integral part of the <$view> widget, 
>>>> much like date format is?
>>>>
>>>> Is there an easy fix? I mean, without having to install another plugin 
>>>> just for this purpose.
>>>>
>>>> Thanks, Werner
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/45d799b8-f7f2-4c70-af87-d48ac8815324n%40googlegroups.com.

Reply via email to