[NTG-context] glyph width and bearings of a given glyph?

2018-12-06 Thread Pablo Rodriguez
Dear list, how can I get the value in Lua of width and the bearings of a given glyph (such as Ὧ)? Many thanks for your help, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well,

[NTG-context] Issues using publications subsystem for non-bibliographic database

2018-12-06 Thread Rik Kabel
List, I am trying to use the publications subsystem to support a non-bibliographic database, as chapter 10 of mkiv-publications suggests one can. My example is a database of quotations. I have been partially successful, which is another way of saying there are some issues I have not been

Re: [NTG-context] question about fonts.handlers.otf.addfeature

2018-12-06 Thread Pablo Rodriguez
On 12/6/18 11:03 PM, Hans Hagen wrote: > On 12/6/2018 9:55 PM, Pablo Rodriguez wrote: >> Dear list, >> >> as far as I know, fonts.handlers.otf.addfeature has the following types: >> substitution, alternate, multiple, ligature, kern and chainsubstitution. >> >> Is there a type of feature that

Re: [NTG-context] question about fonts.handlers.otf.addfeature

2018-12-06 Thread Hans Hagen
On 12/6/2018 9:55 PM, Pablo Rodriguez wrote: Dear list, as far as I know, fonts.handlers.otf.addfeature has the following types: substitution, alternate, multiple, ligature, kern and chainsubstitution. Is there a type of feature that simply moves a single glyph when activated? i think that

[NTG-context] question about fonts.handlers.otf.addfeature

2018-12-06 Thread Pablo Rodriguez
Dear list, as far as I know, fonts.handlers.otf.addfeature has the following types: substitution, alternate, multiple, ligature, kern and chainsubstitution. Is there a type of feature that simply moves a single glyph when activated? Many thanks for your help, Pablo -- http://www.ousia.tk

Re: [NTG-context] indenting after placefigure

2018-12-06 Thread Pablo Rodriguez
On 12/6/18 9:38 PM, Hans van der Meer wrote: > Thanks, indeed this does the trick. > But I wonder:  Has \placefigure then a default [indentnext=no] instead > of abstaining from meddling with the indent setting? This might be similar to indenting after headings. To get the paragraphs indented

Re: [NTG-context] indenting after placefigure

2018-12-06 Thread Hans van der Meer
Thanks, indeed this does the trick. But I wonder: Has \placefigure then a default [indentnext=no] instead of abstaining from meddling with the indent setting? dr. Hans van der Meer > On 6 Dec 2018, at 21:25, Pablo Rodriguez wrote: > > On 12/6/18 6:10 PM, Hans van der Meer wrote: >> I used

Re: [NTG-context] indenting after placefigure

2018-12-06 Thread Pablo Rodriguez
On 12/6/18 6:10 PM, Hans van der Meer wrote: > I used \setupindenting[always,medium]. This works everywhere except > after a figure placed with \placefigure. Why does placing the figure > suppress the indent after it? And how can this behaviour be changed? I wonder whehter

[NTG-context] indenting after placefigure

2018-12-06 Thread Hans van der Meer
I used \setupindenting[always,medium]. This works everywhere except after a figure placed with \placefigure. Why does placing the figure suppress the indent after it? And how can this behaviour be changed? dr. Hans van der Meer

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-06 Thread Hans Åberg
> On 6 Dec 2018, at 15:23, Wolfgang Schuster > wrote: > > The force key is valid for the \definefallbackfamily command, e.g. > > \definefallbackfamily [...] [...] [range={...},force=yes] I tried to test it with the code below, but then it selects the stixtwomath glyphs. So possibly the

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-06 Thread Wolfgang Schuster
Hans Åberg schrieb am 06.12.18 um 15:18: On 2 Dec 2018, at 19:01, Hans Hagen wrote: This super/supscript stuff is a bit more tricky because when a superscript 2 is in the font, and a superscript 3 isn't, using a fake ^3 alongside that ^2 quite certainly will look bad because the 2 is

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-06 Thread Hans Åberg
> On 2 Dec 2018, at 19:01, Hans Hagen wrote: > > This super/supscript stuff is a bit more tricky because when a superscript 2 > is in the font, and a superscript 3 isn't, using a fake ^3 alongside that ^2 > quite certainly will look bad because the 2 is normally of a different design > that

Re: [NTG-context] color check

2018-12-06 Thread Floris van Manen
it is the behaviour of the (old) osx preview app for sure. when looking at the pdf, the thumbnails are correct, however when focussing on the page it turns green. its getting more urgent to move to Linux ;-) .F > On 6 Dec 2018, at 11:12, luigi scarso wrote: > > > > On Thu, Dec 6, 2018

Re: [NTG-context] 'figures.getinfo()' not to exit ConTeXt

2018-12-06 Thread Wolfgang Schuster
Procházka Lukáš Ing. schrieb am 06.12.18 um 11:20: Hello, I'm using the following code, mentioned here some time ago, to get some info about PDF: \startluacode figures.getinfo = function(name, page)     if type(name) == "string" then     name = { name = name, page = page }    

Re: [NTG-context] 'figures.getinfo()' not to exit ConTeXt

2018-12-06 Thread Hans van der Meer
Are you sure that data is not nil here? If so, this function returns nil. dr. Hans van der Meer > On 6 Dec 2018, at 11:20, Procházka Lukáš Ing. wrote: > > Hello, > > I'm using the following code, mentioned here some time ago, to get some info > about PDF: > > > \startluacode >

Re: [NTG-context] 'figures.getinfo()' not to exit ConTeXt

2018-12-06 Thread luigi scarso
On Thu, Dec 6, 2018 at 11:54 AM Procházka Lukáš Ing. wrote: > Hello Luigi, > > BTW: Ctx tells me "attempt to call a nil value (global 'report')" on > "report("unknown file %a",fileone)" - do I have to enable/load something? > > should be something like local report = logs.reporter("my

Re: [NTG-context] 'figures.getinfo()' not to exit ConTeXt

2018-12-06 Thread Procházka Lukáš Ing .
Hello Luigi, On Thu, 06 Dec 2018 11:23:25 +0100, luigi scarso wrote: On Thu, Dec 6, 2018 at 11:17 AM Procházka Lukáš Ing. wrote: Hello, I'm using the following code, mentioned here some time ago, to get some info about PDF: \startluacode figures.getinfo = function(name, page)

Re: [NTG-context] align in setuphead

2018-12-06 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 06.12.18 um 11:14: On 12/6/18 7:36 AM, Jan U. Hasecke wrote: Hi all, why aligns left to right and right to left in this example? \setuphead [title] [align=left] Hi Jan U., flushleft is the value to get left aligninig. I read the explanation somewhere. Left and

Re: [NTG-context] 'figures.getinfo()' not to exit ConTeXt

2018-12-06 Thread luigi scarso
On Thu, Dec 6, 2018 at 11:17 AM Procházka Lukáš Ing. wrote: > Hello, > > I'm using the following code, mentioned here some time ago, to get some > info about PDF: > > > \startluacode > figures.getinfo = function(name, page) > if type(name) == "string" then > name = { name =

[NTG-context] 'figures.getinfo()' not to exit ConTeXt

2018-12-06 Thread Procházka Lukáš Ing .
Hello, I'm using the following code, mentioned here some time ago, to get some info about PDF: \startluacode figures.getinfo = function(name, page) if type(name) == "string" then name = { name = name, page = page } end if name.name then local data =

Re: [NTG-context] align in setuphead

2018-12-06 Thread Pablo Rodriguez
On 12/6/18 7:36 AM, Jan U. Hasecke wrote: > Hi all, > > why aligns left to right and right to left in this example? > > \setuphead [title] [align=left] Hi Jan U., flushleft is the value to get left aligninig. I read the explanation somewhere. Left and right aligned to the right and left. They

Re: [NTG-context] color check

2018-12-06 Thread luigi scarso
On Thu, Dec 6, 2018 at 10:55 AM Floris van Manen wrote: > while experimenting with the sample transparency color code > > > \definecolor [transparentred] [r=1,t=.5,a=1] > \definecolor [transparentblue] [b=1,t=.5,a=1] > \definecolor [solidyellow] [y=1,t=1,a=1] > > \starttext > > \startTEXpage >

Re: [NTG-context] color check

2018-12-06 Thread Floris van Manen
indeed, it’s probably related to the preview of osx 10.11.6 version. e.g. if i paste the pdf into this mail, i shows up correctly. t4test.pdf Description: Adobe PDF document > On 6 Dec 2018, at 11:02, Taco Hoekwater wrote: > > Hi Floris, > >> >> if i change the yellow t value to .99 >>

Re: [NTG-context] color check

2018-12-06 Thread Pablo Rodriguez
On 12/6/18 10:55 AM, Floris van Manen wrote: > while experimenting with the sample transparency color code > [...] > if i change the yellow t value to .99  > \definecolor [solidyellow]  [y=1,t=0.99,a=1] > some green layer pops up. > > as this is all about software, there is a reason to this. >

Re: [NTG-context] color check

2018-12-06 Thread Taco Hoekwater
Hi Floris, > > if i change the yellow t value to .99 > \definecolor [solidyellow] [y=1,t=0.99,a=1] > some green layer pops up. > > Test works OK for me, with the two ConTeXt releases I tried: current version: 2016.11.24 12:05 current version: 2018.12.01 13:20 macOS Mojave 10.14.1 Best

[NTG-context] color check

2018-12-06 Thread Floris van Manen
while experimenting with the sample transparency color code \definecolor [transparentred] [r=1,t=.5,a=1] \definecolor [transparentblue] [b=1,t=.5,a=1] \definecolor [solidyellow] [y=1,t=1,a=1] \starttext \startTEXpage ~This is some sample text that goes behind the rectangles\hskip-80mm

Re: [NTG-context] Ending strings with non-break space in lang-txt.lua

2018-12-06 Thread Hans Hagen
On 12/6/2018 10:26 AM, Marco Patzer wrote: On Thu, 6 Dec 2018 09:34:57 +0100 Hans Hagen wrote: Also, how about: \at{\labeltext{atpage}}[#1] indeed, that is the command to use Don't get too hung up on that command. That was just a quick way to demonstrate the point and create an MWE.

Re: [NTG-context] Ending strings with non-break space in lang-txt.lua

2018-12-06 Thread Marco Patzer
On Thu, 6 Dec 2018 09:34:57 +0100 Hans Hagen wrote: > > Also, how about: > > > > \at{\labeltext{atpage}}[#1] > > indeed, that is the command to use Don't get too hung up on that command. That was just a quick way to demonstrate the point and create an MWE. > can you experiment with this >

Re: [NTG-context] Ending strings with non-break space in lang-txt.lua

2018-12-06 Thread Hans Hagen
On 12/5/2018 10:29 PM, Alan Braslau wrote: On Wed, 5 Dec 2018 19:47:31 +0100 Marco Patzer wrote: Hi! I've got a few unfortunate line breaks in my documents. In particular, breaks are introduced in between the string “page” and the number: See figure 1 at page 2. The reason is that

Re: [NTG-context] commands manual (setup-en.pdf) organized by topic

2018-12-06 Thread Hans Hagen
On 12/6/2018 7:30 AM, Jan U. Hasecke wrote: Am 05.12.18 um 19:01 schrieb Wolfgang Schuster: You can get a list of the files with   context --extra=setups --list and create a document with a limited number of commands from certain categories with   context --extra=setups