Re: [NTG-context] Adaptation of ConTeXt to Esperanto

2021-10-08 Thread Alain Delmotte via ntg-context
Le 8/10/2021 à 23:10, Henning Hraban Ramm via ntg-context a 
écrit :

Am 08.10.2021 um 22:07 schrieb Alain Delmotte via ntg-context 
:

I am using ConTeXt lmtx: "system > ConTeXt ver: 2021.09.26 17:00 LMTX fmt: 2021.9.30 
int: english/english"
But it looks like Esperanto is not loaded:  "languages > language 'en' is 
active"

Trying to use
\setuplabeltext[eo][figure={Figuro~}]
\setuplabeltext[eo][table={Tabelo~}]
doesn't help.

What canI do?

Are you sure you set \mainlanguage[eo]?

(Can’t help you further, sorry.)

Hraban


Yes of course I did!

Alain


___
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] Adaptation of ConTeXt to Esperanto

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

> Am 08.10.2021 um 22:07 schrieb Alain Delmotte via ntg-context 
> :
> 
> I am using ConTeXt lmtx: "system > ConTeXt ver: 2021.09.26 17:00 LMTX fmt: 
> 2021.9.30 int: english/english"
> But it looks like Esperanto is not loaded:  "languages > language 'en' is 
> active"
> 
> Trying to use 
> \setuplabeltext[eo][figure={Figuro~}]
> \setuplabeltext[eo][table={Tabelo~}]
> doesn't help.
> 
> What canI do?

Are you sure you set \mainlanguage[eo]?

(Can’t help you further, sorry.)

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] Adaptation of ConTeXt to Esperanto

2021-10-08 Thread Alain Delmotte via ntg-context

  
  
Hi,
Some time ago I did prepare the files to
  support Esperanto in Context (hyphenation and translation of
  terms).
I thought it was working, testing with
the command \date, which gives the correct format.
But today I remarked that the legends
for Figure and Table (and perhaps other) are in English.
The file lang-txt.lua is there and
contains the translations for Esperanto.
I am using ConTeXt lmtx: "system > ConTeXt ver: 2021.09.26 17:00
LMTX fmt: 2021.9.30 int: english/english"
But it looks like Esperanto is not loaded:  "languages
  > language 'en' is active"
Trying to
  use 
  \setuplabeltext[eo][figure={Figuro~}]
  \setuplabeltext[eo][table={Tabelo~}]
doesn't help.


What canI do?


Thanks,
Alain

  


___
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] hatching an area without drawing its borders (Hans Hagen)

2021-10-08 Thread Damien Thiriet via ntg-context
Hi, 

Many thanks for this quick addition to the codebase.
Best regards,

Damien Thiriet 
___
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] Something smells rotten in the state of luametatex...

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

On 10/8/2021 6:09 PM, Thomas A. Schmitz via ntg-context wrote:


Hi all,

I have a document here for one of my classes: xml processed via context, 
some layers, some two column paragraphs, a bibliography, nothing out of 
the ordinary. With mkiv, it compiles cleanly:


mkiv lua stats  > used engine: luatex version: 1.13, functionality 
level: 7420, banner: this is luatex, version 1.13.0 (tex live 2021)

mkiv lua stats  > used hash slots: 48846 of 65536 + 25
mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 212 MB, 
ctx: 210 MB, max: unknown MB, hash chars: min(64,40), symbol mask: utf 
(τεχ)
mkiv lua stats  > runtime: 2.775 seconds, 119 processed pages, 119 
shipped pages, 42.883 pages/second

system  | total runtime: 5.996 seconds

When I compile the same document with luametatex, things slow down to a 
crawl:


mkiv lua stats  > used engine: luametatex version: 2.0921, functionality 
level: 20210903, format id: 594, compiler: gcc
mkiv lua stats  > tex properties: 740039 hash slots used of 2097152, 
48372 control sequences, approximate memory usage: 36 MB
mkiv lua stats  > lua properties: engine: lua 5.4, used memory: 100 MB, 
ctx: 93 MB, max: 138 MB, symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 27.509 seconds, 119 processed pages, 119 
shipped pages, 4.326 pages/second

system  | total runtime: 139.458 seconds of 139.493 seconds

So, it takes more than 20 times as long... The CPU of my computer goes 
up to 100 %, and the entire machine sometimes becomes unresponsive 
during the run. Obviously, I can't provide a MWE, but this seems 
bizarre. One thing I see on my terminal: there are hundreds of lines 
like this


Overfull \hbox (0.8pt too wide) in paragraph at lines 18--18
6:17:  [glue][glue][glue][boundary][hlist][penalty][glue][hlist][penalty] >[glue][glue]


It's almost like some debug setting has been triggered. But that may be 
a red herring. Anyway, I just wanted to report this; maybe some bigger 
problem (with the binary or the format?) is lurking somewhere.
no, that's just a more verbose 'overfull box' message ... does adding 
\dontcomplain help? (After all you can live with .8pt which smells like 
2 * .4pt which is the default rule width so maybe some frame stricks out)


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] SciTE configuration Mac

2021-10-08 Thread MANUEL GONZALEZ SUAREZ via ntg-context
Hi everyone:
Could someone send me a minimal configuration for the SciTE editor of the files 
needed to work with ConTeXt? I work with MaC OS Big Sur.
Thanks.
M. González.
___
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] Something smells rotten in the state of luametatex...

2021-10-08 Thread Thomas A. Schmitz via ntg-context


Hi all,

I have a document here for one of my classes: xml processed via context, 
some layers, some two column paragraphs, a bibliography, nothing out of 
the ordinary. With mkiv, it compiles cleanly:


mkiv lua stats  > used engine: luatex version: 1.13, functionality 
level: 7420, banner: this is luatex, version 1.13.0 (tex live 2021)

mkiv lua stats  > used hash slots: 48846 of 65536 + 25
mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 212 MB, 
ctx: 210 MB, max: unknown MB, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 2.775 seconds, 119 processed pages, 119 
shipped pages, 42.883 pages/second

system  | total runtime: 5.996 seconds

When I compile the same document with luametatex, things slow down to a 
crawl:


mkiv lua stats  > used engine: luametatex version: 2.0921, functionality 
level: 20210903, format id: 594, compiler: gcc
mkiv lua stats  > tex properties: 740039 hash slots used of 2097152, 
48372 control sequences, approximate memory usage: 36 MB
mkiv lua stats  > lua properties: engine: lua 5.4, used memory: 100 MB, 
ctx: 93 MB, max: 138 MB, symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 27.509 seconds, 119 processed pages, 119 
shipped pages, 4.326 pages/second

system  | total runtime: 139.458 seconds of 139.493 seconds

So, it takes more than 20 times as long... The CPU of my computer goes 
up to 100 %, and the entire machine sometimes becomes unresponsive 
during the run. Obviously, I can't provide a MWE, but this seems 
bizarre. One thing I see on my terminal: there are hundreds of lines 
like this


Overfull \hbox (0.8pt too wide) in paragraph at lines 18--18
6:17:  [glue][glue][glue][boundary][hlist][penalty][glue][hlist][penalty] >[glue][glue]


It's almost like some debug setting has been triggered. But that may be 
a red herring. Anyway, I just wanted to report this; maybe some bigger 
problem (with the binary or the format?) is lurking somewhere.


All best

Thomas
___
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] Outlined text (from MP) inline in ConText has incorrect baseline (i.e. no depth)

2021-10-08 Thread Rudd, Kevin via ntg-context
thanks, Hans— that's so much simpler an approach. i'll have to look into text 
effects to see what else can be done. many many thanks! ---K

Kevin W. Rudd, Ph.D.
CAPT, USN (Ret)

Computer Architecture & Computer Engineering
Advanced Computing Systems (ACS) Research Program
Laboratory for Physical Sciences (LPS)

443-654-7878
ke...@lps.umd.edu

Visiting Research Professor
United States Naval Academy

r...@usna.edu


On Oct 8, 2021, at 07:36, Hans Hagen 
mailto:j.ha...@xs4all.nl>> wrote:

On 10/7/2021 4:14 PM, Rudd, Kevin via ntg-context wrote:
Hey---
I'm trying to insert outlined text (derived from MetaFun example code) into a 
document and it seems to work up to the point that the text has depth 
(descenders). There's a previous post that mentions using textcommand for 
titles to ensure that the appropriate baseline is used but I haven't figured 
out why that would work; for my purposes, I'm insert the text inline so that 
solution wouldn't work here. I have included a MWE that demonstrates the 
problem; I've tried putting both the text and the outlined text in a box, then 
adjusting the outlined text by the depth of the text itself but that doesn't 
seem to work. I expect that there's an easy way either in MP or ConTeXt, but I 
haven't found it yet.

% \OutlinedText[glyph][outline]{text}
\def\OutlinedText{\dodoubleempty\doOutlinedText}
\def\doOutlinedText[#1][#2]#3%
{%
% \type{#1}::\type{#2}::\type{#3}
\ifsecondargument
\makeOutlinedText{#1}{#2}{#3}%
\else\iffirstargument
\makeOutlinedText{#1}{black}{#3}%
\else
\makeOutlinedText{white}{black}{#3}%
\fi\fi
}
\def\makeOutlinedText#1#2#3%
{%
\startMPcode
draw outlinetext.b("#3")
 (withcolor "#1")
 (withcolor "#2" withpen pencircle scaled 1/16);
\stopMPcode
\autoinsertnextspace
}
\starttext
start
 \OutlinedText{aaa}
and  \OutlinedText{Bbb}
and  \OutlinedText{ggg}
and  \OutlinedText{Yyy}
finish
\stoptext

(Here is the code with my attemps to shift the baseline; the \dp & \wd approach 
seems to do nothing, and the \lower doesn't compile and I haven't pursued why 
yet.)

% \def\makeOutlinedText#1#2#3%
% {%
% \newbox\tBox
% \newbox\uBox
% \setbox\tBox\hbox{#3}
% \setbox\uBox
% \hbox{%
% \startMPcode
% draw outlinetext.b("#3")
%  (withcolor "#1")
%  (withcolor "#2" withpen pencircle scaled 1/16);
% \stopMPcode
% }%
% % \lower\uBox\dp\tBox
% \ht\uBox=\ht\tBox
% \dp\uBox=\dp\tBox
% \unbox\uBox
% \autoinsertnextspace
}

Any feedback or suggestions would be appreciated.

\defineeffect[MyEffect][alternative=outer,rulethickness=.1pt]

\starttext
   start
  {\effect[MyEffect]{aaa}} \OutlinedText{aaa}
   and  {\red  \effect[MyEffect]{Bbb}} \OutlinedText{Bbb}
   and  {\green\effect[MyEffect]{ggg}} \OutlinedText{ggg}
   and  {\blue \effect[MyEffect]{Yyy}} \OutlinedText{Yyy}
   finish
\stoptext


Kevin W. Rudd, Ph.D.
CAPT, USN (Ret)
Computer Architecture & Computer Engineering
Advanced Computing Systems (ACS) Research Program
Laboratory for Physical Sciences (LPS)
443-654-7878
ke...@lps.umd.edu 
Visiting Research Professor
United States Naval Academy
r...@usna.edu 
___
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://

Re: [NTG-context] Test suite fonts/features-005.tex failing for me

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

On 10/3/2021 1:41 AM, Bruce Horrocks via ntg-context wrote:

In the test suite, the file fonts/features-005.tex is failing for me on latest 
lmtx. All three items appear the same each time i.e. no small caps and no 
old-style digits on the second and third.



Can anyone else reproduce this, please?

shoul dbe:

What \recursedepth\recurselevel\space
\feature[+]{smallcaps}
What \recursedepth\recurselevel\space
\feature[+]{oldstyle}
What \recursedepth\recurselevel\space



-
  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] Short forms and abbreviations in bibliography

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

On 10/7/2021 6:38 AM, Joey McCollum via ntg-context wrote:
A concise solution that I found would work was to define a "shorthand" 
citation alternative and just print the shorthand with that:


```
% Shorthand citation setup
\startsetups btx:sbl:cite:shorthand
   \begingroup
   \def\currentbtxcategory{\btxfield{category}}
   \texdefinition{btx:sbl:inline:shorthand}
   \endgroup
   \removeunwantedspaces
   \removepunctuation
\stopsetups

...

\expanded{\abbreviation[\currentbtxtag]{\textcite[alternative=shorthand,lefttext=,righttext=][\currentbtxtag]}{\textcite[alternative=listsubcite,lefttext=,righttext=][\currentbtxtag]}}
```

Again, this works, although I'm still not sure why 
invoking \texdefinition{btx:sbl:inline:shorthand} directly doesn't.

I leave it to Alan to comment on this as he's the bib guru

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] Outlined text (from MP) inline in ConText has incorrect baseline (i.e. no depth)

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

On 10/7/2021 4:14 PM, Rudd, Kevin via ntg-context wrote:

Hey---

I'm trying to insert outlined text (derived from MetaFun example code) 
into a document and it seems to work up to the point that the text has 
depth (descenders). There's a previous post that mentions using 
textcommand for titles to ensure that the appropriate baseline is used 
but I haven't figured out why that would work; for my purposes, I'm 
insert the text inline so that solution wouldn't work here. I have 
included a MWE that demonstrates the problem; I've tried putting both 
the text and the outlined text in a box, then adjusting the outlined 
text by the depth of the text itself but that doesn't seem to work. I 
expect that there's an easy way either in MP or ConTeXt, but I haven't 
found it yet.




% \OutlinedText[glyph][outline]{text}
\def\OutlinedText{\dodoubleempty\doOutlinedText}

\def\doOutlinedText[#1][#2]#3%
{%
     % \type{#1}::\type{#2}::\type{#3}
     \ifsecondargument
         \makeOutlinedText{#1}{#2}{#3}%
     \else\iffirstargument
         \makeOutlinedText{#1}{black}{#3}%
     \else
         \makeOutlinedText{white}{black}{#3}%
     \fi\fi
}

\def\makeOutlinedText#1#2#3%
{%
     \startMPcode
     draw outlinetext.b("#3")
          (withcolor "#1")
          (withcolor "#2" withpen pencircle scaled 1/16);
     \stopMPcode
     \autoinsertnextspace
}

\starttext
     start
          \OutlinedText{aaa}
     and  \OutlinedText{Bbb}
     and  \OutlinedText{ggg}
     and  \OutlinedText{Yyy}
     finish
\stoptext




(Here is the code with my attemps to shift the baseline; the \dp & \wd 
approach seems to do nothing, and the \lower doesn't compile and I 
haven't pursued why yet.)





% \def\makeOutlinedText#1#2#3%
% {%
%     \newbox\tBox
%     \newbox\uBox
%     \setbox\tBox\hbox{#3}
%     \setbox\uBox
%     \hbox{%
%         \startMPcode
%         draw outlinetext.b("#3")
%              (withcolor "#1")
%              (withcolor "#2" withpen pencircle scaled 1/16);
%         \stopMPcode
%     }%
%     % \lower\uBox\dp\tBox
%     \ht\uBox=\ht\tBox
%     \dp\uBox=\dp\tBox
%     \unbox\uBox
%     \autoinsertnextspace
}




Any feedback or suggestions would be appreciated.


\defineeffect[MyEffect][alternative=outer,rulethickness=.1pt]

\starttext
start
   {\effect[MyEffect]{aaa}} \OutlinedText{aaa}
and  {\red  \effect[MyEffect]{Bbb}} \OutlinedText{Bbb}
and  {\green\effect[MyEffect]{ggg}} \OutlinedText{ggg}
and  {\blue \effect[MyEffect]{Yyy}} \OutlinedText{Yyy}
finish
\stoptext




Kevin W. Rudd, Ph.D.
CAPT, USN (Ret)

Computer Architecture & Computer Engineering
Advanced Computing Systems (ACS) Research Program
Laboratory for Physical Sciences (LPS)

443-654-7878
ke...@lps.umd.edu 

Visiting Research Professor
United States Naval Academy

r...@usna.edu 


___
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] hatching an area without drawing its borders

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

On 10/7/2021 9:45 PM, Damien Thiriet via ntg-context wrote:

path p;
p := fullcircle scaled 50 randomized 5;
draw p anglestriped (1,60,4);


i'll add option 0 as in:

draw p anglestriped (0,60,4);



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