Re: [NTG-context] Automatic thousands separation in \unit
On Tue, 5 Feb 2019 12:22:29 +0100 Marco Patzer wrote: > Is there a way to hook the \spaceddigits into \unit somehow? I tried to add \spaceddigits to the \unit command, but it didn't work. If someone has an idea how to do that, I'd greatly appreciate. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \date behaving strange
On 2/9/2019 2:39 PM, martin wrote: I'm getting a bit confused. The \date function doesn't result in a formatted date. That goes for some files that are a few weeks old. What am I missing? \starttext \date[d=2,m=3,y= 2018] \stoptext results in: d=2m=3y= 2018 An optional formatting parameter has no effect \date[d=1, m=4, y=2018][weekday, {\\}, dd,{-}, mm,-, year] line 446 of core-con.mkiv should be: {#2}{\currentdatespecification}{\labellanguage}% - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bad names
On 2/9/2019 12:15 AM, Alan Braslau wrote: On Fri, 8 Feb 2019 23:26:21 +0100 Hans Hagen wrote: On 2/8/2019 10:22 PM, Marco Patzer wrote: What is a bad name for context? Does it have any consequences if badly named files are used? Just being curious. Bad names are names that can result i a miss when looked up on a case sensitive system. When you have a workflow where images come from e.g. graphic designers don't be surprised to get names with inconsistent casing, one of more spaces in a row, multiple suffixes (or wrong ones), etc etc ... now when images are referred to e.g. from xml files that also come from someplace it can get pretty hard to find where something goes miss. So, here we always normalize (az09-). In a tex tree files with the same name can lead to wrong lookups depending on the order of configured paths. There context alway has had case insensitive lookups. Because people use brain-dead file systems we get to use brain-dead file names, case-insensitive, etc., etc. This can be a bit frustrating for those used to working with real file systems and real (arbitrary) file names, but it gives better results for the least common denominator, i.e. Windows... :-( very subjective ... when program shave to deal with names Foo FoO FOO foo ... a pain esp when users don't care, are inconistent, dont' see a difference between one or two (proportionally displayed) spaces imo windows is quite ok: in permits mixed case but also has a normalized name .. it's for the tex runs on unixes that we always need to deal with inconsistent naming the problem is nor that much related to operatign systems but to graphic editors using a gui, moving files around without typing, constructing names from cur and pasted sentences describing the image (and mouse moves give worse names than keypresses). Fwiw: most images that we deal with come from illustrator on the mac. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \date behaving strange
I'm getting a bit confused. The \date function doesn't result in a formatted date. That goes for some files that are a few weeks old. What am I missing? \starttext \date[d=2,m=3,y= 2018] \stoptext results in: d=2m=3y= 2018 An optional formatting parameter has no effect \date[d=1, m=4, y=2018][weekday, {\\}, dd,{-}, mm,-, year] using: mtx-context | current version: 2019.02.07 18:46 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bad names
On Fri, 8 Feb 2019 23:26:21 +0100 Hans Hagen wrote: > On 2/8/2019 10:22 PM, Marco Patzer wrote: > > > What is a bad name for context? Does it have any consequences if > > badly named files are used? Just being curious. > Bad names are names that can result i a miss when looked up on a case > sensitive system. When you have a workflow where images come from > e.g. graphic designers don't be surprised to get names with > inconsistent casing, one of more spaces in a row, multiple suffixes > (or wrong ones) That's so true. I'm not surprised about anything when dealing with people. People are really bad at being precise and consistent. You can wish they were, but they just aren't. > ... now when images are referred to e.g. > from xml files that also come from someplace it can get pretty hard > to find where something goes miss. So, here we always normalize > (az09-). So every file name containing something else than lowercase, digits and a dash is “bad” (and dots obviously)? Doesn't seem to be true: a.1.png %% bad name Names are read from a database in this case, in case you're wondering. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___