[NTG-context] resetting setuphyphenatedurl...

2021-10-22 Thread Rik Kabel via ntg-context

Hello List,

As demonstrated in the following example, it does not seem possible to 
reset \setuphyphenatedurlbefore, after, or normal once changed from 
default. That is, the first change appears to be global and unchangeable.


If this is the case, can someone suggest a workaround?

(Use case: I want to break URLs at any place in a bibliography but have 
additional URLs in text that follows which should be broken only in more 
standard places.)


   \starttext
   \hsize 6em

   Default: \hyphenatedurl{https://wiki.contextgarden.net/URL}

   \blank

   \bgroup
   
\sethyphenatedurlnormal{:=?&/.0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ}
   
\sethyphenatedurlbefore{:=?&/.0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ}
   
\sethyphenatedurlafter{:=?&/.0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ}

   In group: \hyphenatedurl{https://wiki.contextgarden.net/URL}

   \blank
   \egroup

  \sethyphenatedurlnormal{:=?&}
  \sethyphenatedurlbefore{?&}
  \sethyphenatedurlafter{:=}

   Reset: \hyphenatedurl{https://wiki.contextgarden.net/URL}
   \stoptext

--
Rik

___
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] upload

2021-10-22 Thread Hans Hagen via ntg-context

On 10/22/2021 5:50 PM, Michal Vlasák wrote:

Hello,

On Thu Oct 21, 2021 at 8:04 PM CEST, Hans Hagen via ntg-context wrote:

I cleaned up some more backend code. There were some mails about dates
and such and although the date field in setupinteraction works ok a more
drastic overload is doen with directives. The reason is that the fact
that we can set the date (and traler) is only because it permits
generating pdf files that can be compared. No date as a bad idea anyway.

\setupinteraction[title=My Title]
% \enabledirectives[backend.date=2034-06-07]
\enabledirectives[backend.date=no]
\enabledirectives[backend.trailerid=no]


I checked the backend code and some of the related os functions. I put
together a patch that hopefully fixes some stuff and doesn't break
anything. The changes:

1) Dates parsed by ConTeXt (function converters.totime), such as those
that are input to backend.date, now allow specifying seconds and time
zone information. If there is no timezone the datetime is presumed to be
in local time, otherwise the datetime is offset by the local / specified
time zone difference (because ConTeXt outputs these dates as local times
with local timezone). Additionally both "T" and " " are now allowed as
date/time separator characters. Thus dates output by ConTeXt can be also
fed in.


i made the parser a bit more tolerant

"1234-12-30"
"1234/12/30"
"1234-12-30 23:45"
"1234-12-30 23:45:16"
"1234-12-30  23:45:16"
"1234-12-30T23:45:16+01:00"
"1234-12-30 23:45:16-02:00"
"1234-12-30 23:45:16+05:00"
"1234-12-30 23:45:16 05:00"
"1234-12-30  23:45:16  05:00"

(I'll send you the file to check/test)


2) Fix the os.timezone function. Previously, it could be wrong around
midnight, which I discovered only by chance. The trick is lifted from
http://lua-users.org/wiki/TimeZone, which I hope is OK. The before and
after (I am at +02:00):

 os.localtime()  2021-10-22 01:44:24
 os.now()2021-10-21 23:44:24
 os.timezone(true)   -22:00


 os.localtime()  2021-10-22 01:46:23
 os.now()2021-10-21 23:46:23
 os.timezone(true)   +02:00


shouldn't we also offer a -02:00 ? (relative)


I also extended the interface of os.timezone to accommodate 1), but as
this is probably a very public interface, I am not sure if these changes
are OK. If more changes to the interface can be made, I propose to get
rid of the delta parameter, since it seems like a remnant from the past.


maybe later, i need to check other files


Some caching can also be introduced, but I again wasn't sure if this
even would be the final form of the function, so didn't do anything in
that sense, yet.


i'll adapt it to that


3) Don't use %X in time formats. It is specified to be platform
dependent and we want %H:%M:%S everywhere. Also, it would be nice if
lpdf-xmp.lmt would use the os.fulltime() function to format dates (like
back-exp.lmt does), but there are multiple dates with different formats
and purposes and it is probably too late to change now.


(probably not that harmfull on the platforms we support)

the reason for different times is that i never liked the timezone in 
regular date/time (so only the mandate one had it) but in the end i 
don't care that much about times/date i never look at (i admit that i 
never consult any of this pdf meta data)



4) I changed the os.fulltime function, that returns date + time + local
time zone to output the _local_ time instead of UTC time. This is AFAICT
the right way to do times. The PDF spec says:

 If no UT information is specified, the relationship of the specified
 time to UT shall be considered to be GMT. Regardless of whether the
 time zone is specified, the rest of the date shall be specified in
 local time.

 EXAMPLE: For example, December 23, 1998, at 7:52 PM, U.S. Pacific
 Standard Time, is represented by the string D:199812231952-08'00

A test program:


 \enabletrackers[backend.info]
 
 \enabledirectives[backend.date=1234-12-30]% 1234-12-30T00:00:00+02:00

 \enabledirectives[backend.date=1234-12-30 23:45]  % 
1234-12-30T23:45:00+02:00
 \enabledirectives[backend.date=1234-12-30 23:45:16]   % 
1234-12-30T23:45:16+02:00
 \enabledirectives[backend.date=1234-12-30T23:45:16+01:00] % 
1234-12-31T00:45:16+02:00
 \enabledirectives[backend.date=1234-12-30 23:45:16-02:00] % 
1234-12-31T03:45:16+02:00
 \enabledirectives[backend.date=1234-12-30 23:45:16+05:00] % 
1234-12-31T20:45:16+02:00
 
 \starttext

 dummy text
 
 \startluacode

 print("os.timezone(true)", os.timezone(true)) -- +02:00
 print("os.fulltime()", os.fulltime()) -- 2021-10-22 17:38:38+02:00
 print("os.localtime()", os.localtime())   -- 2021-10-22 17:38:38
 print("os.now()", os.now())   -- 2021-10-22 15:38:38
 \stopluacode
 \stoptext

I don't claim to know LPEG so please check my work. I also know nothing
about XMP, so I didn't check that at all, 

Re: [NTG-context] some ConTeXt distribution's Fonts don't work

2021-10-22 Thread Luis Montgomery via ntg-context
Apparently, almfixed and kurier fonts no longer load as before.

But in this way yes, and I still can't find the reason:



\definefontfamily[FAR][serif][almfixed]

\definefontfamily[KUR][sans serif][kurier]

\setupbodyfont [FAR,10pt]

\starttext

123abc\par

\switchtobodyfont[FAR,40pt] 123abc \par

\switchtobodyfont[KUR,40pt]

123abc\par

\switchtobodyfont[FAR,8pt] 123abc\par

\switchtobodyfont[KUR,8pt] 123abc

\stoptext



log say:

loaded fonts: 2 files: almfixed.otf, kurier-regular.otf

L. Montgomery


El vie, 22 oct 2021 a las 10:44, a badin ()
escribió:

> double-checking the fonts, two still don't switch. this example
> procudes a pdf with Latin Modern instead ALM Fixed and Kurier. Any
> ideas on how to use those?
>
> \starttext
> \switchtobodyfont[almfixed,tt] 123abc \par
> \switchtobodyfont[almfixed] 123abc \par
> \switchtobodyfont[kurier] 123abc \par
> \switchtobodyfont[kurier,ss] 123abc
> \stoptext
>
> Luis, the folder you've mentioned does not contain anything that would
> resemble Almfixed. Kurier does not have a .lfg file there - perhaps
> these are hints at a solution, but I don't know.
>
> Andrej
>
> On Fri, 22 Oct 2021 at 09:28, Hans Hagen  wrote:
> >
> > On 10/22/2021 6:30 AM, Luis Montgomery via ntg-context wrote:
> > > See in
> > >
> > > .../context/tex/texmf-context/tex/context/fonts/mkiv/
> > >
> > > The names have chsnged... Ex. antykwa
> > >
> > > For that reason
> > >
> > > unknown library 'antykwatorunska'
> > >
> > > Cheers,
> > >
> > > Luis Montgomery
> > >
> > >
> > >
> > > El jue., 21 de octubre de 2021 16:01, a badin via ntg-context
> > > mailto:ntg-context@ntg.nl>> escribió:
> > >
> > > Hi all,
> > > I suppose this is a bug or something unresolved, the following code
> > > renders a pdf in LMRoman (lmserif) only:
> > >
> > > \starttext
> > > \startitemize[none]
> > > \switchtobodyfont[antykwatorunska] \item font-test 123
> > > \switchtobodyfont[kurier] \item font-test 123
> > > \switchtobodyfont[almfixed] \item font-test 123
> > > \switchtobodyfont[neoeuler] \item font-test 123
> > > \switchtobodyfont[stixtwotext] \item font-test 123
> > > \stopitemize
> > > \stoptext
> > >
> > > How to switch to these fonts? Could this be fixed by default? I'm
> on
> > > ConTeXt  ver: 2021.10.21 19:57 LMTX.
> > > I've tested all the fonts from
> > > https://wiki.contextgarden.net/ConTeXt_distribution%27s_Fonts
> > > 
> and
> > > these are the only one that do not work.
> > >
> > > Kind regards and thanks for the great work on context, I just
> updated
> > > and was able to run my previous code resulting in a slightly
> smaller
> > > pdf, which I find great!
> > > Andrej
> > also, some are ss or tt
> >
> > \starttext
> > \startitemize[none]
> > \switchtobodyfont[antykwa] \item font-test 123
> > \switchtobodyfont[kurier,ss]   \item font-test 123
> > \switchtobodyfont[almfixed,tt] \item font-test 123
> > \switchtobodyfont[eulernova]   \item font-test 123
> > \switchtobodyfont[stixtwo] \item font-test 123
> > \stopitemize
> > \stoptext
> >
> > best wikify this
> >
> >
> > -
> >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] upload

2021-10-22 Thread Pablo Rodriguez via ntg-context
On 10/22/21 5:50 PM, Michal Vlasák via ntg-context wrote:
> [...]
> I checked the backend code and some of the related os functions. I put
> together a patch that hopefully fixes some stuff and doesn't break
> anything.
> [...]
>   \enabledirectives[backend.date=1234-12-30T23:45:16+01:00] % 
> 1234-12-31T00:45:16+02:00
>   \enabledirectives[backend.date=1234-12-30 23:45:16-02:00] % 
> 1234-12-31T03:45:16+02:00
>   \enabledirectives[backend.date=1234-12-30 23:45:16+05:00] % 
> 1234-12-31T20:45:16+02:00
> [...]
> Is the timezone stuff what you wanted, Pablo?

Hi Michal,

I haven’t found the time to check this, but this is pretty much what I
wanted: being able to set other timezones than the local one.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] upload

2021-10-22 Thread Michal Vlasák via ntg-context
Hello,

On Thu Oct 21, 2021 at 8:04 PM CEST, Hans Hagen via ntg-context wrote:
> I cleaned up some more backend code. There were some mails about dates
> and such and although the date field in setupinteraction works ok a more
> drastic overload is doen with directives. The reason is that the fact
> that we can set the date (and traler) is only because it permits
> generating pdf files that can be compared. No date as a bad idea anyway.
>
> \setupinteraction[title=My Title]
> % \enabledirectives[backend.date=2034-06-07]
> \enabledirectives[backend.date=no]
> \enabledirectives[backend.trailerid=no]

I checked the backend code and some of the related os functions. I put
together a patch that hopefully fixes some stuff and doesn't break
anything. The changes:

1) Dates parsed by ConTeXt (function converters.totime), such as those
that are input to backend.date, now allow specifying seconds and time
zone information. If there is no timezone the datetime is presumed to be
in local time, otherwise the datetime is offset by the local / specified
time zone difference (because ConTeXt outputs these dates as local times
with local timezone). Additionally both "T" and " " are now allowed as
date/time separator characters. Thus dates output by ConTeXt can be also
fed in.

2) Fix the os.timezone function. Previously, it could be wrong around
midnight, which I discovered only by chance. The trick is lifted from
http://lua-users.org/wiki/TimeZone, which I hope is OK. The before and
after (I am at +02:00):

os.localtime()  2021-10-22 01:44:24
os.now()2021-10-21 23:44:24
os.timezone(true)   -22:00


os.localtime()  2021-10-22 01:46:23
os.now()2021-10-21 23:46:23
os.timezone(true)   +02:00

I also extended the interface of os.timezone to accommodate 1), but as
this is probably a very public interface, I am not sure if these changes
are OK. If more changes to the interface can be made, I propose to get
rid of the delta parameter, since it seems like a remnant from the past.

Some caching can also be introduced, but I again wasn't sure if this
even would be the final form of the function, so didn't do anything in
that sense, yet.

3) Don't use %X in time formats. It is specified to be platform
dependent and we want %H:%M:%S everywhere. Also, it would be nice if
lpdf-xmp.lmt would use the os.fulltime() function to format dates (like
back-exp.lmt does), but there are multiple dates with different formats
and purposes and it is probably too late to change now.

4) I changed the os.fulltime function, that returns date + time + local
time zone to output the _local_ time instead of UTC time. This is AFAICT
the right way to do times. The PDF spec says:

If no UT information is specified, the relationship of the specified
time to UT shall be considered to be GMT. Regardless of whether the
time zone is specified, the rest of the date shall be specified in
local time.

EXAMPLE: For example, December 23, 1998, at 7:52 PM, U.S. Pacific
Standard Time, is represented by the string D:199812231952-08'00

A test program:


\enabletrackers[backend.info]

\enabledirectives[backend.date=1234-12-30]% 
1234-12-30T00:00:00+02:00
\enabledirectives[backend.date=1234-12-30 23:45]  % 
1234-12-30T23:45:00+02:00
\enabledirectives[backend.date=1234-12-30 23:45:16]   % 
1234-12-30T23:45:16+02:00
\enabledirectives[backend.date=1234-12-30T23:45:16+01:00] % 
1234-12-31T00:45:16+02:00
\enabledirectives[backend.date=1234-12-30 23:45:16-02:00] % 
1234-12-31T03:45:16+02:00
\enabledirectives[backend.date=1234-12-30 23:45:16+05:00] % 
1234-12-31T20:45:16+02:00

\starttext
dummy text

\startluacode
print("os.timezone(true)", os.timezone(true)) -- +02:00
print("os.fulltime()", os.fulltime()) -- 2021-10-22 17:38:38+02:00
print("os.localtime()", os.localtime())   -- 2021-10-22 17:38:38
print("os.now()", os.now())   -- 2021-10-22 15:38:38
\stopluacode
\stoptext

I don't claim to know LPEG so please check my work. I also know nothing
about XMP, so I didn't check that at all, sorry.

Is the timezone stuff what you wanted Pablo?

Full patch temporarily at this URL and also below:

https://github.com/contextgarden/context-mirror/compare/beta...vlasakm:dates

Michal

--- a/tex/context/base/mkiv/core-con.lua
+++ b/tex/context/base/mkiv/core-con.lua
@@ -17,7 +17,7 @@ slower but look nicer this way.
 --ldx]]--
 
 local floor = math.floor
-local osdate, ostime = os.date, os.time
+local osdate, ostime, ostimezone = os.date, os.time, os.timezone
 local concat, insert, reverse = table.concat, table.insert, table.reverse
 local lower, upper, rep, match, gsub = string.lower, string.upper, string.rep, 
string.match, string.gsub
 local utfchar, utfbyte = utf.char, utf.byte
@@ -1972,13 +1972,18 @@ implement {
 }
 
 local n = R("09")^1 / tonumber
+local sign = S("+-") / function(s) 

Re: [NTG-context] vertical align in combination

2021-10-22 Thread Pablo Rodriguez via ntg-context
On 10/22/21 5:46 PM, Hans Hagen via ntg-context wrote:
> On 10/22/2021 5:20 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> How could I get all lines with images vertically centered?
>
> maybe by using the command the right way ...
>
>\setupexternalfigure[location=default]
>\startcombination[nx=3, ny=2, location={middle}]
>{\externalfigure[mill.png][width=.25\textwidth]}  {}

Many thanks for your fast reply and your help, Hans.


Pablo
--
http://www.ousia.tk
___
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] another svg conversion=mp question

2021-10-22 Thread Hans Hagen via ntg-context

On 10/22/2021 3:58 PM, juh via ntg-context wrote:

Hi,

I include images with a variable via pandoc in a externalfigure
directive.

These images can be jpgs, pngs, pdfs and svgs.

Can I do any harm if I do:

\setupexternalfigures[conversion=mp]


probably not unless there is an mp conversion for the other formats

-
  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] vertical align in combination

2021-10-22 Thread Hans Hagen via ntg-context

On 10/22/2021 5:20 PM, Pablo Rodriguez via ntg-context wrote:

Dear list,

I have the following sample:

   \starttext
   \setupexternalfigure[location=default]
   \startcombination[nx=3, ny=2, location={middle}]
   {\externalfigure[mill.png][width=.25\textwidth]}
   {\externalfigure[cow.pdf][width=.25\textwidth]}
   {\externalfigure[cow.pdf][width=.25\textwidth]}
   {\externalfigure[spider.eps][width=.25\textwidth]}
   {\externalfigure[hacker.png][width=.25\textwidth]}
   {\externalfigure[mill.png][width=.25\textwidth]}
   \stopcombination
   \stoptext

The first line has the images vertically centered, but the second line
has them aligned to the top. Using "align=middle" made no difference.

How could I get all lines with images vertically centered?


maybe by using the command the right way ...

  \setupexternalfigure[location=default]
  \startcombination[nx=3, ny=2, location={middle}]
  {\externalfigure[mill.png][width=.25\textwidth]}  {}
  {\externalfigure[cow.pdf][width=.25\textwidth]}   {}
  {\externalfigure[cow.pdf][width=.25\textwidth]}   {}
  {\externalfigure[spider.eps][width=.25\textwidth]}{}
  {\externalfigure[hacker.png][width=.25\textwidth]}{}
  {\externalfigure[mill.png][width=.25\textwidth]}  {}
  \stopcombination



Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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
___




--

-
  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] some ConTeXt distribution's Fonts don't work

2021-10-22 Thread a badin via ntg-context
double-checking the fonts, two still don't switch. this example
procudes a pdf with Latin Modern instead ALM Fixed and Kurier. Any
ideas on how to use those?

\starttext
\switchtobodyfont[almfixed,tt] 123abc \par
\switchtobodyfont[almfixed] 123abc \par
\switchtobodyfont[kurier] 123abc \par
\switchtobodyfont[kurier,ss] 123abc
\stoptext

Luis, the folder you've mentioned does not contain anything that would
resemble Almfixed. Kurier does not have a .lfg file there - perhaps
these are hints at a solution, but I don't know.

Andrej

On Fri, 22 Oct 2021 at 09:28, Hans Hagen  wrote:
>
> On 10/22/2021 6:30 AM, Luis Montgomery via ntg-context wrote:
> > See in
> >
> > .../context/tex/texmf-context/tex/context/fonts/mkiv/
> >
> > The names have chsnged... Ex. antykwa
> >
> > For that reason
> >
> > unknown library 'antykwatorunska'
> >
> > Cheers,
> >
> > Luis Montgomery
> >
> >
> >
> > El jue., 21 de octubre de 2021 16:01, a badin via ntg-context
> > mailto:ntg-context@ntg.nl>> escribió:
> >
> > Hi all,
> > I suppose this is a bug or something unresolved, the following code
> > renders a pdf in LMRoman (lmserif) only:
> >
> > \starttext
> > \startitemize[none]
> > \switchtobodyfont[antykwatorunska] \item font-test 123
> > \switchtobodyfont[kurier] \item font-test 123
> > \switchtobodyfont[almfixed] \item font-test 123
> > \switchtobodyfont[neoeuler] \item font-test 123
> > \switchtobodyfont[stixtwotext] \item font-test 123
> > \stopitemize
> > \stoptext
> >
> > How to switch to these fonts? Could this be fixed by default? I'm on
> > ConTeXt  ver: 2021.10.21 19:57 LMTX.
> > I've tested all the fonts from
> > https://wiki.contextgarden.net/ConTeXt_distribution%27s_Fonts
> >  and
> > these are the only one that do not work.
> >
> > Kind regards and thanks for the great work on context, I just updated
> > and was able to run my previous code resulting in a slightly smaller
> > pdf, which I find great!
> > Andrej
> also, some are ss or tt
>
> \starttext
> \startitemize[none]
> \switchtobodyfont[antykwa] \item font-test 123
> \switchtobodyfont[kurier,ss]   \item font-test 123
> \switchtobodyfont[almfixed,tt] \item font-test 123
> \switchtobodyfont[eulernova]   \item font-test 123
> \switchtobodyfont[stixtwo] \item font-test 123
> \stopitemize
> \stoptext
>
> best wikify this
>
>
> -
>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] vertical align in combination

2021-10-22 Thread Pablo Rodriguez via ntg-context
Dear list,

I have the following sample:

  \starttext
  \setupexternalfigure[location=default]
  \startcombination[nx=3, ny=2, location={middle}]
  {\externalfigure[mill.png][width=.25\textwidth]}
  {\externalfigure[cow.pdf][width=.25\textwidth]}
  {\externalfigure[cow.pdf][width=.25\textwidth]}
  {\externalfigure[spider.eps][width=.25\textwidth]}
  {\externalfigure[hacker.png][width=.25\textwidth]}
  {\externalfigure[mill.png][width=.25\textwidth]}
  \stopcombination
  \stoptext

The first line has the images vertically centered, but the second line
has them aligned to the top. Using "align=middle" made no difference.

How could I get all lines with images vertically centered?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] \rotate[rotation=270] adds extra vertical space

2021-10-22 Thread Pablo Rodriguez via ntg-context
On 10/22/21 10:07 AM, Hans Hagen via ntg-context wrote:
> nicer demo:
> [...]
Hans,

many thanks for your reply and your sample.

A more visual version for me would be:

  \setupbodyfont[sans, 30pt]
  \setuppagenumbering[location=,]
  \showframe

  \starttext
   \topskip4cm
  \dostepwiserecurse{0}{360}{10}{
  \doloopoverlist{normal,default,depth,fit,broad,high,middle}{
  \ruledhbox{\rotate[rotation=\recurselevel, location=\recursestring]{%
  \framed
 [width=\textheight, height=\textwidth, rulethickness=5pt,
  depth=0cm, foregroundstyle=\bfd]
{\recursestring, \recurselevel°}
  }
  }
  }
  }
  \stoptext

I have just added it to
https://wiki.contextgarden.net/Scaling_Rotating_Mirroring_Clipping#Rotating_Figures.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] another svg conversion=mp question

2021-10-22 Thread Hans Hagen via ntg-context

On 10/22/2021 3:58 PM, juh via ntg-context wrote:

Hi,

I include images with a variable via pandoc in a externalfigure
directive.

These images can be jpgs, pngs, pdfs and svgs.

Can I do any harm if I do:

\setupexternalfigures[conversion=mp]

unrelated to svg

\startMPcode
fill fullcircle scaled 1cm withcolor 1;
\stopMPcode

a missing return in line 295 of mlib-pps.lmt:

return checked_color_pair(f_gray,s,s)



-
  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] mp-geo Metapost package with ConTeXt

2021-10-22 Thread Hans Hagen via ntg-context

On 10/22/2021 4:16 PM, Henning Hraban Ramm via ntg-context wrote:



Am 22.10.2021 um 11:31 schrieb Henning Hraban Ramm via ntg-context 
:



Am 17.07.2021 um 12:45 schrieb Hans Hagen :


\startMPpage
   draw lmt_openstreetmap [
   filename = "hasselt.osm"
   grid = "dots",
   ] ;
\stopMPpage

The hasselt osm file is sime 12 MB, the colorful hasselt pdf file just below 1 
MB so that's okay (3.7 sec processing time on my machine so if all claims are 
right sub seconds on a fast new apple).


I finally tried this, hoping to replace my Maperitive workflow.

With a Bonn map from https://download.bbbike.org/osm/bbbike/ of 724 MB I 
started it last night (~13 h before), and it still didn’t finish. No messages 
after:

openstreetmap   > processing file '/Users/hraban/Downloads/ConTeXt/Bonn.osm'
openstreetmap   > original size 713811948 bytes, stripped down to 603309215 
bytes


Maybe I should try smaller files ;)


Indeed:

openstreetmap   > processing file '/Users/hraban/Downloads/ConTeXt/Limburg.osm'
openstreetmap   > original size 12431810 bytes, stripped down to 8768209 bytes
openstreetmap   > xml data loaded
openstreetmap   > 859154 characters metapost code, preprocessing time 3.165 
seconds
...
pdfview | command: open "osm-test.pdf" 1>/dev/null 2>/dev/null &
mtx-context | pdfview overhead: 0.005 seconds
system  | total runtime: 9.211 seconds of 9.328 seconds

The PDF is 488 kB.


Redefining color works, if you know what you’re looking for – and it’s partly 
really strange what is marked how...
Seems like I should start to work on OSM again.


yes, and we need to add more heuristics (i already added some after 
rendering don knuths university site (apart from the many fast food 
venue research institutes are also marked 'interestingly')



Are there any plans for text labels, e.g. street names? (I guess these are 
really tricky.)

depends on how

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
___


Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-10-22 Thread Henning Hraban Ramm via ntg-context

> Am 22.10.2021 um 11:31 schrieb Henning Hraban Ramm via ntg-context 
> :
> 
> 
>> Am 17.07.2021 um 12:45 schrieb Hans Hagen :
>> 
>> 
>> \startMPpage
>>   draw lmt_openstreetmap [
>>   filename = "hasselt.osm"
>>   grid = "dots",
>>   ] ;
>> \stopMPpage
>> 
>> The hasselt osm file is sime 12 MB, the colorful hasselt pdf file just below 
>> 1 MB so that's okay (3.7 sec processing time on my machine so if all claims 
>> are right sub seconds on a fast new apple).
> 
> I finally tried this, hoping to replace my Maperitive workflow.
> 
> With a Bonn map from https://download.bbbike.org/osm/bbbike/ of 724 MB I 
> started it last night (~13 h before), and it still didn’t finish. No messages 
> after:
> 
> openstreetmap   > processing file '/Users/hraban/Downloads/ConTeXt/Bonn.osm'
> openstreetmap   > original size 713811948 bytes, stripped down to 603309215 
> bytes
> 
> 
> Maybe I should try smaller files ;)

Indeed:

openstreetmap   > processing file '/Users/hraban/Downloads/ConTeXt/Limburg.osm'
openstreetmap   > original size 12431810 bytes, stripped down to 8768209 bytes
openstreetmap   > xml data loaded
openstreetmap   > 859154 characters metapost code, preprocessing time 3.165 
seconds
...
pdfview | command: open "osm-test.pdf" 1>/dev/null 2>/dev/null &
mtx-context | pdfview overhead: 0.005 seconds
system  | total runtime: 9.211 seconds of 9.328 seconds

The PDF is 488 kB.


Redefining color works, if you know what you’re looking for – and it’s partly 
really strange what is marked how...
Seems like I should start to work on OSM again.

Are there any plans for text labels, e.g. street names? (I guess these are 
really tricky.)

Hraban
___
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] another svg conversion=mp question

2021-10-22 Thread juh via ntg-context
Hi,

I include images with a variable via pandoc in a externalfigure
directive.

These images can be jpgs, pngs, pdfs and svgs.

Can I do any harm if I do:

\setupexternalfigures[conversion=mp]

juh
-- 
Autoren-Homepage: . http://literatur.hasecke.com
Satiren & Essays: . http://www.sudelbuch.de
Privater Blog:  http://www.hasecke.eu
Netzliteratur-Projekt:  http://www.generationenprojekt.de




signature.asc
Description: PGP signature
___
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] svg conversion=mp renders wrong background

2021-10-22 Thread juh via ntg-context
Hi all,

I found a minimal example.

Am Fri, Oct 22, 2021 at 03:11:41PM +0200 schrieb juh via ntg-context:
> in a minimal example 
> 
> \starttext
> \externalfigure[test.svg][conversion=mp]
> \stoptext
> 
> renders fine.
> 
> I my real world project white background is rendered black. 
> 
> Any hints where I can start to debug?

\setupcolors[cmyk=no,rgb=yes]
\starttext
\externalfigure[icon-newsletter][conversion=mp]
\stoptext

renders black eyes. Without cmyk=no it renders fine. 

Anything explanation to add to the wiki? Or is it a bug?

juh
-- 
Autoren-Homepage: . http://literatur.hasecke.com
Satiren & Essays: . http://www.sudelbuch.de
Privater Blog:  http://www.hasecke.eu
Netzliteratur-Projekt:  http://www.generationenprojekt.de




signature.asc
Description: PGP signature
___
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] mp-geo Metapost package with ConTeXt

2021-10-22 Thread Hans Hagen via ntg-context

On 10/22/2021 11:31 AM, Henning Hraban Ramm via ntg-context wrote:



Am 17.07.2021 um 12:45 schrieb Hans Hagen :


\startMPpage
draw lmt_openstreetmap [
filename = "hasselt.osm"
grid = "dots",
] ;
\stopMPpage

The hasselt osm file is sime 12 MB, the colorful hasselt pdf file just below 1 
MB so that's okay (3.7 sec processing time on my machine so if all claims are 
right sub seconds on a fast new apple).


I finally tried this, hoping to replace my Maperitive workflow.

With a Bonn map from https://download.bbbike.org/osm/bbbike/ of 724 MB I 
started it last night (~13 h before), and it still didn’t finish. No messages 
after:

openstreetmap   > processing file '/Users/hraban/Downloads/ConTeXt/Bonn.osm'
openstreetmap   > original size 713811948 bytes, stripped down to 603309215 
bytes

Maybe I should try smaller files ;)


We hit a limti in lpeg that allocates memory by duplicating the size 
which then hits a top and falls back in allocating by + 1 every capture 
which then kind of stalls the xml interpretation. I can hack that to 
work (and need to check that with every lpeg update), but as we enter a 
next stage in th econversion mem starts going virtual anyway and I see 
my SSD being tortured so I aborted. More testing has to wait till I (if 
ever) have a faster machine, with (say) 64GB super fast memory.


On my machine the still ok size is some 200MB.

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] svg conversion=mp renders wrong background

2021-10-22 Thread juh via ntg-context
Hi all,

in a minimal example 

\starttext
\externalfigure[test.svg][conversion=mp]
\stoptext

renders fine.

I my real world project white background is rendered black. 

Any hints where I can start to debug?

juh
-- 
Autoren-Homepage: . http://literatur.hasecke.com
Satiren & Essays: . http://www.sudelbuch.de
Privater Blog:  http://www.hasecke.eu
Netzliteratur-Projekt:  http://www.generationenprojekt.de




signature.asc
Description: PGP signature
___
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] some ConTeXt distribution's Fonts don't work

2021-10-22 Thread a badin via ntg-context
Thank you, I've put it on the wiki.
Andrej

On Fri, 22 Oct 2021 at 09:28, Hans Hagen  wrote:
>
> On 10/22/2021 6:30 AM, Luis Montgomery via ntg-context wrote:
> > See in
> >
> > .../context/tex/texmf-context/tex/context/fonts/mkiv/
> >
> > The names have chsnged... Ex. antykwa
> >
> > For that reason
> >
> > unknown library 'antykwatorunska'
> >
> > Cheers,
> >
> > Luis Montgomery
> >
> >
> >
> > El jue., 21 de octubre de 2021 16:01, a badin via ntg-context
> > mailto:ntg-context@ntg.nl>> escribió:
> >
> > Hi all,
> > I suppose this is a bug or something unresolved, the following code
> > renders a pdf in LMRoman (lmserif) only:
> >
> > \starttext
> > \startitemize[none]
> > \switchtobodyfont[antykwatorunska] \item font-test 123
> > \switchtobodyfont[kurier] \item font-test 123
> > \switchtobodyfont[almfixed] \item font-test 123
> > \switchtobodyfont[neoeuler] \item font-test 123
> > \switchtobodyfont[stixtwotext] \item font-test 123
> > \stopitemize
> > \stoptext
> >
> > How to switch to these fonts? Could this be fixed by default? I'm on
> > ConTeXt  ver: 2021.10.21 19:57 LMTX.
> > I've tested all the fonts from
> > https://wiki.contextgarden.net/ConTeXt_distribution%27s_Fonts
> >  and
> > these are the only one that do not work.
> >
> > Kind regards and thanks for the great work on context, I just updated
> > and was able to run my previous code resulting in a slightly smaller
> > pdf, which I find great!
> > Andrej
> also, some are ss or tt
>
> \starttext
> \startitemize[none]
> \switchtobodyfont[antykwa] \item font-test 123
> \switchtobodyfont[kurier,ss]   \item font-test 123
> \switchtobodyfont[almfixed,tt] \item font-test 123
> \switchtobodyfont[eulernova]   \item font-test 123
> \switchtobodyfont[stixtwo] \item font-test 123
> \stopitemize
> \stoptext
>
> best wikify this
>
>
> -
>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] mp-geo Metapost package with ConTeXt

2021-10-22 Thread Henning Hraban Ramm via ntg-context

> Am 17.07.2021 um 12:45 schrieb Hans Hagen :
> 
> 
> \startMPpage
>draw lmt_openstreetmap [
>filename = "hasselt.osm"
>grid = "dots",
>] ;
> \stopMPpage
> 
> The hasselt osm file is sime 12 MB, the colorful hasselt pdf file just below 
> 1 MB so that's okay (3.7 sec processing time on my machine so if all claims 
> are right sub seconds on a fast new apple).

I finally tried this, hoping to replace my Maperitive workflow.

With a Bonn map from https://download.bbbike.org/osm/bbbike/ of 724 MB I 
started it last night (~13 h before), and it still didn’t finish. No messages 
after:

openstreetmap   > processing file '/Users/hraban/Downloads/ConTeXt/Bonn.osm'
openstreetmap   > original size 713811948 bytes, stripped down to 603309215 
bytes


Maybe I should try smaller files ;)


Hraban
___
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] The certificate of the mailman site has expired

2021-10-22 Thread Gerben Wierda via ntg-context
I got a warning about the certification elast night when I clicked the link in 
the mail footer. At that moment it was expired.

It is OK now, but will expire Oct 30.

Gerben Wierda (LinkedIn )
R Enterprise Architecture  (main site)
Book: Chess and the Art of Enterprise Architecture 
Book: Mastering ArchiMate 

> On 22 Oct 2021, at 02:21, Gerben Wierda via ntg-context  
> wrote:
> 
> Just to let you know: The certificate of the mailman site has expired
> 
> (This email is also a test for me, as I had some troubles locally where mail 
> was blocked so I want to see that it still arrives. Please ignore).
> 
> Gerben Wierda (LinkedIn )
> R Enterprise Architecture  (main site)
> Book: Chess and the Art of Enterprise Architecture 
> 
> Book: Mastering ArchiMate 
> 
> ___
> 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
> ___

___
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] \rotate[rotation=270] adds extra vertical space

2021-10-22 Thread Hans Hagen via ntg-context

On 10/21/2021 6:34 PM, Pablo Rodriguez via ntg-context wrote:

Dear list,

I have the following imposition sample:

   \startbuffer[newbuff]
   \showframe\showgrid
   \setuppapersize[A3, landscape]
   \setuplayout[width=middle]
   \starttext
   \dorecurse{4}{\null\page}
   \stoptext
   \stopbuffer
   \startmode[*first]
   \savebuffer[newbuff][A3page.tex, prefix=no]
   \executesystemcommand{context --purgeall A3page.tex}
   \stopmode
   \showframe
   \setuplayout[page]
   \setuppapersize[A5][A4, landscape]
   \setuparranging [2UP]
   \setupinteractionscreen[option={landscape, paper}]
   \starttext
   \doiffile{A3page.pdf}
   {\def\Doc{A3page.pdf}
   \getfiguredimensions[\Doc]
   \dorecurse{\noffigurepages}
 {\ifodd\recurselevel
   \rotate[rotation=90]
 {\externalfigure[\Doc][page=\recurselevel, width=\textheight]}
 \else\rotate[rotation=270]
 {\externalfigure[\Doc][page=\recurselevel, width=\textheight]}
 \fi}}
   \stoptext

I’m afraid that if rotation values are 270 or 180, the imposed page has
an extra vertical space before.

nicer demo:

\showframe

\starttext
\topskip4cm
\dostepwiserecurse{0}{360}{10}{

\ruledhbox{\rotate[rotation=#1]{\blackrule[width=\textheight,height=\textwidth,depth=0cm,color=darkred]}}
}
\dostepwiserecurse{0}{360}{10}{

\ruledhbox{\rotate[rotation=#1,location=high]{\blackrule[width=\textheight,height=\textwidth,depth=0cm,color=darkgreen]}}
}
\dostepwiserecurse{0}{360}{10}{

\ruledhbox{\rotate[rotation=#1,location=fit]{\blackrule[width=\textheight,height=\textwidth,depth=0cm,color=darkblue]}}
}
\dostepwiserecurse{0}{360}{10}{

\ruledhbox{\rotate[rotation=#1,location=middle]{\blackrule[width=\textheight,height=\textwidth,depth=0cm,color=darkcyan]}}
}
\dostepwiserecurse{0}{360}{10}{

\ruledhbox{\rotate[rotation=#1,location=depth]{\blackrule[width=\textheight,height=\textwidth,depth=0cm,color=darkmagenta]}}
}
\dostepwiserecurse{0}{360}{10}{

\ruledhbox{\rotate[rotation=#1,location=broad]{\blackrule[width=\textheight,height=\textwidth,depth=0cm,color=darkyellow]}}
}
\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 / 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] upload

2021-10-22 Thread Hans Hagen via ntg-context

On 10/21/2021 9:13 PM, Pablo Rodriguez via ntg-context wrote:

On 10/21/21 8:04 PM, Hans Hagen via ntg-context wrote:

Hi,

I cleaned up some more backend code.  There were some mails about dates
and such and although the date field in setupinteraction works ok a more
drastic overload is doen with directives. The reason is that the fact
that we can set the date (and traler) is only because it permits
generating pdf files that can be compared. No date as a bad idea anyway.

\setupinteraction[title=My Title]
% \enabledirectives[backend.date=2034-06-07]


Many thanks for the new version, Hans.

Is there a way to add time and timezone in backend.date?


Pablo : transparencies should work again (wrong alias fixed).


Many thanks for this fix too.

Sorry for insisting, but could you check what is wrong with an extra
blank space in rotated imposition
(https://mailman.ntg.nl/pipermail/ntg-context/2021/103909.html)?

.. it was not really a minimal example ...

\showframe

\starttext
\topskip4cm
\rotate[rotation=90] 
{\externalfigure[A3page.pdf][page=1,width=\textheight]}\page


\rotate[rotation=270]{\externalfigure[A3page.pdf][page=2,width=\textheight]}\page
\rotate[rotation=90] 
{\externalfigure[A3page.pdf][page=1,width=\textheight]}\page


\rotate[rotation=270]{\externalfigure[A3page.pdf][page=2,width=\textheight]}\page
\stoptext

so, you need to wrap it, like

\startpagemakeup \rotate[rotation=90] 
{\externalfigure[A3page.pdf][page=1,width=\textheight]}\stoppagemakeup
\startpagemakeup 
\rotate[rotation=270]{\externalfigure[A3page.pdf][page=2,width=\textheight]}\stoppagemakeup
\startpagemakeup \rotate[rotation=90] 
{\externalfigure[A3page.pdf][page=1,width=\textheight]}\stoppagemakeup
\startpagemakeup 
\rotate[rotation=270]{\externalfigure[A3page.pdf][page=2,width=\textheight]}\stoppagemakeup


and not make it 'sort of text that breaks or not across the page'. Now 
it is an interesting question why ... (spoiler: nice animation:)


\starttext
\topskip4cm
\dostepwiserecurse{0}{360}{1}{

\rotate[rotation=#1]{\externalfigure[A3page.pdf][page=1,width=\textheight]}
}
\stoptext

so we probably cross some threshold with some angles and because these 
are basically lines, we then get an interplay woth topskip, maxdepth etc 
(which normally goes unnoticed)


the good news is that you can play with it because rotate is normally 
configured for inline usage (so we get depth and height) you can use the 
location parameter to do otherwise:


% normal default depth fit broad high middle

\starttext
\topskip4cm
\dostepwiserecurse{0}{360}{1}{

\ruledhbox{\rotate[rotation=#1,location=high]{\externalfigure[A3page.pdf][page=1,width=\textheight]}}
}
\stoptext

irr it's actually shown somewhere in a manual but the source also has this

% \dostepwiserecurse{0}{360}{10}
%   {\startlinecorrection[blank]
%\hbox
%  {\expanded{\setuprotate[rotation=\recurselevel]}%
%   \traceboxplacementtrue
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=depth] 
{\ruledhbox{\bfb  (depth)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=fit] 
{\ruledhbox{\bfb(fit)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=broad] 
{\ruledhbox{\bfb  (broad)%
%   \hbox to 
.2\hsize{\hss\ruledhbox{\rotate[location=normal]{\ruledhbox{\bfb 
(normal)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=high] 
{\ruledhbox{\bfb   (high)}

%\stoplinecorrection}

% \def\Test{\ruledhbox{%
% \def\DemoX{\vl\kern.5\emwidth\vl}%
% \kern\emwidth\ruledhpack{\green\rotate[rotation=20] 
{\ruledhpack{\DemoX}}}%
% \kern\emwidth\ruledhpack{\blue \rotate[rotation=0] 
{\ruledhpack{\DemoX}}}%
% \kern\emwidth\ruledhpack{\red  \rotate[rotation=-20] 
{\ruledhpack{\DemoX}}}%
% \kern\emwidth\ruledhpack{\green\rotate[rotation=200] 
{\ruledhpack{\DemoX}}}%
% \kern\emwidth\ruledhpack{\blue \rotate[rotation=180] 
{\ruledhpack{\DemoX}}}%
% \kern\emwidth\ruledhpack{\red 
\rotate[rotation=-200]{\ruledhpack{\DemoX}}}%

% \kern\emwidth}}

% \startTEXpage[offset=10pt,align=middle]
% \setuprotate[location=fit] \Test \par 
{\infofont\setstrut\strut fit} \par
% \setuprotate[location=depth]   \Test \par 
{\infofont\setstrut\strut depth}   \par
% \setuprotate[location=broad]   \Test \par 
{\infofont\setstrut\strut broad}   \par
% \setuprotate[location=high]\Test \par 
{\infofont\setstrut\strut high}\par
% \setuprotate[location=middle]  \Test \par 
{\infofont\setstrut\strut middle}  \par
% \setuprotate[location=default] \Test \par 
{\infofont\setstrut\strut default} \par

% \stopTEXpage

so, not a bug but a features (that code hasn't been touched for ages, 
apart from maybe some lmtx interface adaptation), and if it's not in the 
wiki .. you know what to do now


Hans

-
  Hans Hagen | PRAGMA ADE
 

Re: [NTG-context] some ConTeXt distribution's Fonts don't work

2021-10-22 Thread Hans Hagen via ntg-context

On 10/22/2021 6:30 AM, Luis Montgomery via ntg-context wrote:

See in

.../context/tex/texmf-context/tex/context/fonts/mkiv/

The names have chsnged... Ex. antykwa

For that reason

unknown library 'antykwatorunska'

Cheers,

Luis Montgomery



El jue., 21 de octubre de 2021 16:01, a badin via ntg-context 
mailto:ntg-context@ntg.nl>> escribió:


Hi all,
I suppose this is a bug or something unresolved, the following code
renders a pdf in LMRoman (lmserif) only:

\starttext
\startitemize[none]
\switchtobodyfont[antykwatorunska] \item font-test 123
\switchtobodyfont[kurier] \item font-test 123
\switchtobodyfont[almfixed] \item font-test 123
\switchtobodyfont[neoeuler] \item font-test 123
\switchtobodyfont[stixtwotext] \item font-test 123
\stopitemize
\stoptext

How to switch to these fonts? Could this be fixed by default? I'm on
ConTeXt  ver: 2021.10.21 19:57 LMTX.
I've tested all the fonts from
https://wiki.contextgarden.net/ConTeXt_distribution%27s_Fonts
 and
these are the only one that do not work.

Kind regards and thanks for the great work on context, I just updated
and was able to run my previous code resulting in a slightly smaller
pdf, which I find great!
Andrej

also, some are ss or tt

\starttext
\startitemize[none]
\switchtobodyfont[antykwa] \item font-test 123
\switchtobodyfont[kurier,ss]   \item font-test 123
\switchtobodyfont[almfixed,tt] \item font-test 123
\switchtobodyfont[eulernova]   \item font-test 123
\switchtobodyfont[stixtwo] \item font-test 123
\stopitemize
\stoptext

best wikify this


-
  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] upload

2021-10-22 Thread Hans Hagen via ntg-context

On 10/21/2021 10:31 PM, Mikael Sundqvist via ntg-context wrote:


It works very nicely. I played with the test file you sent me, and I
find that in the .lfg file, the up parameter set to 0.06 instead of
0.1 looks better to me.
there are no ssty's for the quadruple prime in that font but if you need 
primes so badly you probably shouldn't use it anyway i guess (there are 
only super-textsize ssty variants for the 1/2/3 and their reverse)


anyway, as you desperately need these quads (why check otherwise), 
adding this to the lfg blob helps:


local four = characters[0x2057]
if four then
local one = characters[okay]
local owd = .75*one.width
local off = .6*one.height
four.width = 4*owd
four.commands = {
{ "offset", 0, off, okay },
{ "offset",   owd, off, okay },
{ "offset", 2*owd, off, okay },
{ "offset", 3*owd, off, okay },
}
else
-- we don't add (but we could), just patch, and there's no
-- reverse quad either
end

and no one will notice (unless you wikify al 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 / 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] The certificate of the mailman site has expired

2021-10-22 Thread Taco Hoekwater via ntg-context


> On 22 Oct 2021, at 02:21, Gerben Wierda via ntg-context  
> wrote:
> 
> Just to let you know: The certificate of the mailman site has expired

Which one exactly? 

Both https://lists.contextgarden.net/ and https://mailman.ntg.nl/ seem fine to 
me

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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
___