Re: [NTG-context] Kaktovik numerals
Great indeed ! And the quick answer by Hans impressive, as usual… What a great community ! Best regards: Otared > On 18 Apr 2023, at 10:57, Henning Hraban Ramm via ntg-context > wrote: > > I just came across this thread about the base-20 system of the Inuit people > and the numerals invented for it in the 1990s: > https://mathstodon.xyz/@johncarlosbaez/110215432175491555 > > This makes simple calculations just beautiful. > > Hraban > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ Otared Kavian e-mail: ota...@gmail.com Phone: +33 6 88 26 70 95 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Kaktovik numerals
Am Tue, Apr 18, 2023 at 10:57:14AM +0200 schrieb Henning Hraban Ramm via ntg-context: > I just came across this thread about the base-20 system of the Inuit people > and the numerals invented for it in the 1990s: > https://mathstodon.xyz/@johncarlosbaez/110215432175491555 > > This makes simple calculations just beautiful. > > Hraban > ___ Very nice, Hraban, thank you for posting it! Rudolf ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Google's Roboto Flex font typescript and goodies definition.
On 4/18/2023 3:52 PM, Pawel Urbanski via ntg-context wrote: Hi Hans, I will write what I want to acomplish. While it is definitely thrivial, I'm either missing something obvious or more experienced users suffer from the curse of knowledge. I want ot use Roboto Flex for my chapter and section heads with Garamond Premier for the body contents. I followed the Context wiki example and consistant examples from the web. Here is my code: \usemodule[fonts-variable] \definefontfamily[roboto-flex][ss][rotoboflex] % robotoflex.ttf is the recognized font file name. \setuphead[chapter] [style={\switchtobodyfont[roboto-flex,20pt]\ss}] While the Garamond is embedded and text is styled, the chapter tible is typeset with Garamond not Roboto. Any hints or feed back will be very appriciated. \usetypescriptfile[ebgaramond] \starttypescript [sans] [robotoflex] \setups[font:fallback:sans] \definefontsynonym [Sans] [name:robotoflexregular] \definefontsynonym [SansItalic][name:robotoflexregularitalic] \definefontsynonym [SansBold] [name:robotoflexregularbold] \definefontsynonym [SansBoldItalic][name:robotoflexregularbolditalic] \stoptypescript \starttypescript[robocop] \definetypeface [\typescriptone] [rm] [serif] [ebgaramond] [default] \definetypeface [\typescriptone] [ss] [sans] [robotoflex] [default] \definetypeface [\typescriptone] [tt] [mono] [dejavu] [default] [rscale=0.8] \definetypeface [\typescriptone] [mm] [math] [ebgaramond] [default] \stoptypescript \setupbodyfont[robocop] \setuphead[chapter][style=\ssbfd] \starttext \startchapter[title=Whatever] \input tufte \stopchapter \page \usemodule[fonts-variable] \showfontvariations[font=file:robotoflex.ttf] \stoptext - 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] \setupitemize[indentnext=auto] broken?
On 4/18/2023 3:48 PM, Aditya Mahajan via ntg-context wrote: On Mon, 17 Apr 2023, Hans Hagen via ntg-context wrote: On 4/17/2023 7:06 AM, Aditya Mahajan via ntg-context wrote: On Sun, 16 Apr 2023, Aditya Mahajan via ntg-context wrote: On Sat, 15 Apr 2023, Jim via ntg-context wrote: % \setupindenting[medium,yes] \setupitemize[indentnext=auto] \startitemize \item One \stopitemize This paragraph should be indented - due to the blank line after \type{\stopitemize}. \startitemize \item Two \stopitemize This paragraph should not be indented. % Works in mkiv but appears to be a bug in lmtx. I haven't debugged what is going wrong. `indentnext=auto` doesn't appear to work for any environment. can you test with this patch This works on with the 3-4 test examples that I had but ... \permanent\protected\protected\def\spac_indentation_check_next_indentation ^ Is that a typo (double \protected)? I tested with a single \protected and that also works. it's a typo .. maybe i should add (for completeness) \protected\unprotected\protected (\permanent only kicks in when you are on overload protection mode, which I'm always in here) 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Google's Roboto Flex font typescript and goodies definition.
> > Hi Hans, > I will write what I want to acomplish. While it is definitely thrivial, > I'm either missing something obvious or more experienced users suffer from > the curse of knowledge. > > I want ot use Roboto Flex for my chapter and section heads with Garamond > Premier for the body contents. > > I followed the Context wiki example and consistant examples from the web. > > Here is my code: > \usemodule[fonts-variable] > \definefontfamily[roboto-flex][ss][rotoboflex] > % robotoflex.ttf is the recognized font file name. > \setuphead[chapter] > [style={\switchtobodyfont[roboto-flex,20pt]\ss}] > > While the Garamond is embedded and text is styled, the chapter tible is > typeset with Garamond not Roboto. > > Any hints or feed back will be very appriciated. > > Thank you, > Pawel > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Google's Roboto Flex font typescript and goodies definition.
Hi Hans, I will write what I want to acomplish. While it is definitely thrivial, I'm either missing something obvious or more experienced users suffer from the curse of knowledge. I want ot use Roboto Flex for my chapter and section heads with Garamond Premier for the body contents. I followed the Context wiki example and consistant examples from the web. Here is my code: \usemodule[fonts-variable] \definefontfamily[roboto-flex][ss][rotoboflex] % robotoflex.ttf is the recognized font file name. \setuphead[chapter] [style={\switchtobodyfont[roboto-flex,20pt]\ss}] While the Garamond is embedded and text is styled, the chapter tible is typeset with Garamond not Roboto. Any hints or feed back will be very appriciated. Thank you, Pawel > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Kaktovik numerals
Hans, genial. Once you told to me “hoe krijg je het voor elkaar…”. Now I tell you, how do you get this done… the mail has not even had the time to “cool” down and you post this. I am astonished. Kind regards Willi > On 18 Apr 2023, at 15:01, Hans Hagen via ntg-context > wrote: > > On 4/18/2023 10:57 AM, Henning Hraban Ramm via ntg-context wrote: >> I just came across this thread about the base-20 system of the Inuit people >> and the numerals invented for it in the 1990s: >> https://mathstodon.xyz/@johncarlosbaez/110215432175491555 >> This makes simple calculations just beautiful. > interesting ... quick hack attached > > 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 / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] \setupitemize[indentnext=auto] broken?
On Mon, 17 Apr 2023, Hans Hagen via ntg-context wrote: > On 4/17/2023 7:06 AM, Aditya Mahajan via ntg-context wrote: > > On Sun, 16 Apr 2023, Aditya Mahajan via ntg-context wrote: > > > >> On Sat, 15 Apr 2023, Jim via ntg-context wrote: > >> > >>> % > >>> > >>> \setupindenting[medium,yes] > >>> \setupitemize[indentnext=auto] > >>> > >>>\startitemize > >>> \item One > >>>\stopitemize > >>> > >>>This paragraph should be indented - due to the blank line after > >>>\type{\stopitemize}. > >>> > >>>\startitemize > >>> \item Two > >>>\stopitemize > >>>This paragraph should not be indented. > >>> > >>> % > >> Works in mkiv but appears to be a bug in lmtx. I haven't debugged what is > >> going wrong. > > > > `indentnext=auto` doesn't appear to work for any environment. > can you test with this patch This works on with the 3-4 test examples that I had but ... > \permanent\protected\protected\def\spac_indentation_check_next_indentation ^ Is that a typo (double \protected)? I tested with a single \protected and that also works. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Kaktovik numerals
Hi! dit is really interesting, I just spent two hours reading different sources. And yes, the SIL GentiumKatovik made the wikipedia show everything nicely! Thanks Hraban Willi > On 18 Apr 2023, at 10:57, Henning Hraban Ramm via ntg-context > wrote: > > I just came across this thread about the base-20 system of the Inuit people > and the numerals invented for it in the 1990s: > https://mathstodon.xyz/@johncarlosbaez/110215432175491555 > > This makes simple calculations just beautiful. > > Hraban > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Google's Roboto Flex font typescript and goodies definition.
On 4/18/2023 12:37 PM, Pawel Urbanski via ntg-context wrote: Dear Everyone, Following my attempts to create and learn Context's ways to manage fonts, I would like to ask about the following: I've created the structure for fonts in texmf-local folder and after running scripts they are listed. The output for Roboto Flex is as follows: identifier familyname fontname filename subfont instances robotoflex robotoflex robotoflexregular robotoflex.ttf thin extralight light regular medium semibold bold extrabold black extrablack thinitalic extralightitalic lightitalic italic mediumitalic semibolditalic bolditalic extrabolditalic blackitalic extrablackitalic What is the proper way to use family name or font name to create a typescript file and a goodies file to take advantage of optical sizes. Google's Roboto Flex is an upgraded Roboto as a variable font. I know that this topic has been discussed many times and I've read the fonts manual but still have these questions. Most of the examples are rather ready solutions or templates but not always cover ways how to figure out values from scratch and how they correspond. all these naames and combining them into 'regular-bold' pairs is pretty much a visual thing as these names are not used consistently; when you just use four fonts, a simple few line tyopescript will do (no need to make an imp file, just put it in your style) (variable fonts is not really improving this) 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Kaktovik numerals
On 4/18/2023 10:57 AM, Henning Hraban Ramm via ntg-context wrote: I just came across this thread about the base-20 system of the Inuit people and the numerals invented for it in the 1990s: https://mathstodon.xyz/@johncarlosbaez/110215432175491555 This makes simple calculations just beautiful. interesting ... quick hack attached 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 - meta-imp-kaktovik.pdf Description: Adobe PDF document %D \module %D [ file=meta-imp-kaktovik, %Dversion=2023.04.18, %D title=\METAPOST\ Graphics, %D subtitle=Kaktovik Numbers, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. %D Just a quick hack for Hraban (after a post on the mailing list). \startMPcalculation{simplefun} path kaktovik_glyphs[] ; def InitializeKaktovik = save p, d, u ; pair p[] ; numeric d ; d := .1 ; numeric u ; u := .15 ; % d := getparameterdefault "mpsfont" "d" .10 ; % u := getparameterdefault "mpsfont" "u" .15 ; p[0] := (0,1) ; p[1] := (1,0) ; p[2] := (2,1 - d) ; p[3] := (3,0) ; p[4] := (4,1 - 2d) ; p[5] := (4,1 + u) ; p[6] := (0,1 + 2u) ; p[7] := (4,1 + 4u) ; kaktovik_glyphs[0] := (1,1) { right } .. { left } (2,1/2) { left } .. { right } (3,1); for i= 1 upto 4 : kaktovik_glyphs[i] := p[0] for j=1 upto i : -- p[j] endfor ; endfor ; kaktovik_glyphs[ 5] := p[5] -- p[0] ;for i= 6 upto 9 : kaktovik_glyphs[i] := p[5] -- kaktovik_glyphs[i-5] ; endfor ; kaktovik_glyphs[10] := p[6] -- kaktovik_glyphs[ 5] ; for i=11 upto 14 : kaktovik_glyphs[i] := p[6] -- kaktovik_glyphs[i-5] ; endfor ; kaktovik_glyphs[15] := p[7] -- kaktovik_glyphs[10] ; for i=16 upto 19 : kaktovik_glyphs[i] := p[7] -- kaktovik_glyphs[i-5] ; endfor ; enddef ; vardef Kaktovik(expr i) = draw image ( draw kaktovik_glyphs[i] xscaled (10/20 -1/20) yscaled (25/20 -2/20) withpen (pencircle xscaled 1/20 yscaled 5/20) rotated -(2*20) % withpen (pencircle xscaled 1/40 yscaled 5/40) rotated -(2*20) % withpen (pencircle xscaled 2.5/40 yscaled 5/40) rotated -(2*20) ; ) shifted (2/20,2/20) enddef ; lmt_registerglyphs [ name = "kaktovik", units= 2, usecolor = true, width= 2, height = 2, depth= 0, preamble = "InitializeKaktovik" ] ; for i=0 upto 19 : lmt_registerglyph [ category = "kaktovik", unicode = 119488 + i, % "0x1D2C0" code = "Kaktovik(" & decimal i & ")" ] ; endfor ; \stopMPcalculation \startluacode interfaces.implement { name = "kaktoviknumerals", arguments = "integer", actions = function(n) local digits = { } local count = 1 while true do digits[count] = utf.char(0x1D2C0 + (n % 20)) n = n // 20 if n == 0 then break; end count = count + 1 end context("%t",digits) end } \stopluacode \unprotect \permanent\def\kaktoviknumerals#1{\clf_kaktoviknumerals\numexpr#1\relax} \defineconversion [kaktoviknumerals] [\kaktoviknumerals] \defineconversion [K][\kaktoviknumerals] \definefontfeature [kaktovik] [metapost=kaktovik] \protect \continueifinputfile{meta-imp-kaktovik.mkxl} \definefontfeature [default] [default] [metapost=kaktovik] % [metapost={category=kaktovik,u=.25,d=.20,x=}] \setupbodyfont[dejavu] % \nopdfcompression \startTEXpage[offset=1ts,width=3es] \start \showglyphs KAKTOVIK \dostepwiserecurse{0}{19}{1}{\kaktoviknumerals{#1}\space } \stop kaktovik \start \red\glyphxscale 700 \dostepwiserecurse{0}{19}{1}{\kaktoviknumerals{#1}\space } \stop \startitemize[packed,K][color=orange,stopper=] \startitem first \stopitem \startitem second \stopitem \startitem third \stopitem \stopitemize KAKTOVIK \start \red \kaktoviknumerals{2023} -- \green\kaktoviknumerals{4}-- \blue \kaktoviknumerals{18} \stop KAKTOVIK \stopTEXpage ___ If your
[NTG-context] Google's Roboto Flex font typescript and goodies definition.
Dear Everyone, Following my attempts to create and learn Context's ways to manage fonts, I would like to ask about the following: I've created the structure for fonts in texmf-local folder and after running scripts they are listed. The output for Roboto Flex is as follows: identifier familyname fontname filename subfont instances robotoflex robotoflex robotoflexregular robotoflex.ttf thin extralight light regular medium semibold bold extrabold black extrablack thinitalic extralightitalic lightitalic italic mediumitalic semibolditalic bolditalic extrabolditalic blackitalic extrablackitalic What is the proper way to use family name or font name to create a typescript file and a goodies file to take advantage of optical sizes. Google's Roboto Flex is an upgraded Roboto as a variable font. I know that this topic has been discussed many times and I've read the fonts manual but still have these questions. Most of the examples are rather ready solutions or templates but not always cover ways how to figure out values from scratch and how they correspond. Thanks for help, Pawel ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Kaktovik numerals
On Tue, Apr 18, 2023 at 10:57:14AM +0200, Henning Hraban Ramm via ntg-context wrote: > I just came across this thread about the base-20 system of the Inuit people > and the numerals invented for it in the 1990s: > https://mathstodon.xyz/@johncarlosbaez/110215432175491555 > > This makes simple calculations just beautiful. It is beautiful :-) Thanks for the pointer! Best, Arthur ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Kaktovik numerals
I just came across this thread about the base-20 system of the Inuit people and the numerals invented for it in the 1990s: https://mathstodon.xyz/@johncarlosbaez/110215432175491555 This makes simple calculations just beautiful. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___