Re: [NTG-context] Two minor questions

2022-06-06 Thread Stefan Nedeljkovic via ntg-context
Thank you very much Wolfgang! But, there is still something weird going on
with the font. I updated the files on Drive. Please see line 19, the last
word "and". It is clearly out of alignment with the gid. I tested the
alignment in MP and it should work, ie 2 characters are indeed one grid
cell (semms from the fact that IBM Plex Mono was designed from a typewriter
typeface where 12 characters are exactly 1 inch long).

On Mon, Jun 6, 2022 at 10:52 PM Wolfgang Schuster via ntg-context <
ntg-context@ntg.nl> wrote:

>
>
> Stefan Nedeljkovic via ntg-context schrieb am 06.06.2022 um 22:07:
> > Wolfgang, Aditya, thank you both very much!
> >
> > I have 2 more questions:
> >
> > Observe the files here:
> >
> https://drive.google.com/drive/folders/18ve5_F-BKOa-TxCWmD02mhPqNXQvNyWK?usp=sharing
> >
> > 1. I'd like to shift the text area down so that the red lines
> > align with the blue lines (I think this amount is called depth). How
> > would I do that?
>
> Quick and dirty:
>
> \setuplayout
>[...,
> topspace=\dimexpr5\measured{base}+2bp+\strutdp\relax,
> ...]
>
> > 2. The font is such that exactly 2 characters fit into the grid cell,
> > but I see that towards the end of the line it gets out of sync with
> > the grid. How would I ensure that all text rendered is strictly
> > monospaced without any stretching/shrinking trickery?
>
> Change the text alignment:
>
> \setupalign[flushleft,broad]
>
> Wolfgang
>
>
> ___
> 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] Contractions in ligature suppression word list

2022-06-06 Thread Thangalin via ntg-context
Here's a short example (version 2022.05.11 11:36):

\setuplanguage[en][goodies={lang-en.llg}]

\starttext
  % Expected: no ligature; actual: as expected
  wolfish

  % Expected: no ligatures; actual: ligature
  wolfing
  wolfin'
  wolfin’
\stoptext
___
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] Contractions in ligature suppression word list

2022-06-06 Thread Denis Maier via ntg-context
Could you please share a complete MWE. Makes it easier to test if the problem 
occurs here as well.
Best,
Denis

Von: ntg-context  Im Auftrag von Thangalin via 
ntg-context
Gesendet: Montag, 6. Juni 2022 23:56
An: Bruce Horrocks 
Cc: Thangalin ; mailing list for ConTeXt users 

Betreff: Re: [NTG-context] Contractions in ligature suppression word list

Thanks for the response, Bruce.


1) The file you attached doesn't include the word "wolfing", nor "wolfin". I 
assume they need to be

The suffixes section accounts for this. Wolfing and wolfish both suppress the 
ligature correctly.

I removed the comma separators, good catch. No difference, though.

Looks like I edited 
/opt/context/tex/texmf-context/tex/context/patterns/mkxl/lang-en.llg instead of 
the LMTX file. SMH.

I've now tried both files, lmtx and mkxl:

suffixes = [[
in
in'
in’
ing
]],

Wolfish works fine, the ligature is suppressed as expected. Wolfing, wolfin, 
and wolfin' aren't suppressed. I'd have thought that defining the word "wolf" 
with a suffix of "ing" (and variations thereof) would suppress ligatures at the 
suffix boundary?

Maybe that's not the case. If so, then it means having to define all the *f-ing 
words (heh) a few times for the different suffixes (in', in’, and ing), which 
seems to defeat the purpose of separating suffixes?

Help is appreciated.
___
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] Contractions in ligature suppression word list

2022-06-06 Thread Thangalin via ntg-context
Thanks for the response, Bruce.


1) The file you attached doesn't include the word "wolfing", nor "wolfin".
> I assume they need to be


The suffixes section accounts for this. Wolfing and wolfish both suppress
the ligature correctly.

I removed the comma separators, good catch. No difference, though.

Looks like I edited
/opt/context/tex/texmf-context/tex/context/patterns/mkxl/lang-en.llg
instead of the LMTX file. SMH.

I've now tried both files, lmtx and mkxl:

suffixes = [[
in
in'
in’
ing
]],

Wolfish works fine, the ligature is suppressed as expected. Wolfing,
wolfin, and wolfin' aren't suppressed. I'd have thought that defining the
word "wolf" with a suffix of "ing" (and variations thereof) would suppress
ligatures at the suffix boundary?

Maybe that's not the case. If so, then it means having to define all the
*f-ing words (heh) a few times for the different suffixes (in', in’, and
ing), which seems to defeat the purpose of separating suffixes?

Help is appreciated.
___
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] Typesetting modern Greek (UTF8) with ConTeXt

2022-06-06 Thread Henning Hraban Ramm via ntg-context

Am 06.06.22 um 19:14 schrieb Pablo Rodriguez via ntg-context:


\language[gr], but beware since it uses patterns for ancient Greek.


That is documented in the manual languages-mkiv.pdf

I can’t remember where I found the information that el-monoton 
(synonymous to el and gr) and el-polyton (synonymous to agr and grc) 
should be available.


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] Two minor questions

2022-06-06 Thread Wolfgang Schuster via ntg-context



Stefan Nedeljkovic via ntg-context schrieb am 06.06.2022 um 22:07:

Wolfgang, Aditya, thank you both very much!

I have 2 more questions:

Observe the files here: 
https://drive.google.com/drive/folders/18ve5_F-BKOa-TxCWmD02mhPqNXQvNyWK?usp=sharing


1. I'd like to shift the text area down so that the red lines 
align with the blue lines (I think this amount is called depth). How 
would I do that?


Quick and dirty:

\setuplayout
  [...,
   topspace=\dimexpr5\measured{base}+2bp+\strutdp\relax,
   ...]

2. The font is such that exactly 2 characters fit into the grid cell, 
but I see that towards the end of the line it gets out of sync with 
the grid. How would I ensure that all text rendered is strictly 
monospaced without any stretching/shrinking trickery?


Change the text alignment:

\setupalign[flushleft,broad]

Wolfgang

___
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] Improving pandoc's ConTeXt output

2022-06-06 Thread Henning Hraban Ramm via ntg-context

Am 05.06.22 um 16:30 schrieb Albert Krewinkel via ntg-context:

2. Similarly, I'd like to start wrapping paragraphs with
     `\startparagraph`/`\stopparagraph`. It is important for me to get
     properly tagged PDF, 



\startparagraph can lead to unwanted side effects (I can't remember the details)
and \bpar ... \epar is the safer alternative to add tags.


Thank you Wolfgang, I wasn't aware! Searching the wiki brought me to
. It states:


In places where \startparagraph does not work, such as itemizations,
where it causes a blank line after the bullet and before the item
text, use \bpar (and closing \epar) to tag paragraphs.


It's probably more consistent then to use \bpar ... \epar everywhere.


If I understood Hans right, \start/stopparagraph is not necessary any 
more to get properly tagged XML. I didn’t check it yet myself – my 
DOCX-to-ConTeXt converter still produces this markup.


One case where it’s probably in the way is if you need settings like 
\looseness – before \startparagraph is too early, and after it is too 
late (in LMTX), you need \updateparagraphproperties in such cases, but 
you can possible avoid that without \startparagraph – need to check...


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] Two minor questions

2022-06-06 Thread Stefan Nedeljkovic via ntg-context
Wolfgang, Aditya, thank you both very much!

I have 2 more questions:

Observe the files here:
https://drive.google.com/drive/folders/18ve5_F-BKOa-TxCWmD02mhPqNXQvNyWK?usp=sharing

1. I'd like to shift the text area down so that the red lines align with
the blue lines (I think this amount is called depth). How would I do that?
2. The font is such that exactly 2 characters fit into the grid cell, but I
see that towards the end of the line it gets out of sync with the grid. How
would I ensure that all text rendered is strictly monospaced without any
stretching/shrinking trickery?

Sincerely,
Stefan

On Mon, Jun 6, 2022 at 5:50 PM Aditya Mahajan  wrote:

> On Mon, 6 Jun 2022, Stefan Nedeljkovic via ntg-context wrote:
>
> > Dear list,
> >
> > I have 2 small questions:
> >
> > 1. In \setuplayout if I try to set topspace=5\measured{base} +
> > \dimexpr2bp I get an error. How should I add these 2bp?
>
> (Untested)
>
> \dimexpr\measure{base}+2bp\relax
>
> or
>
> \dimexpr\measured{base}+2bp\relax
>
> should work.
>
> > 2. I have an mp graphic defined in the file "graphic.mp" which has the
> > exact same dimensions as my page. I'd like to set that graphic as a
> > background. How do I do this?
>
> (Again, untested)
>
> \startuseMPgraphic{background-image}
>   input graphic.mp;
> \stopuseMPgraphic
>
> \defineoverlay[background-image][\useMPgraphic{background-image}]
>
> \setupbackgrounds[page][background={background-image}]
>
> Aditya
>
___
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] interwordspace error after update

2022-06-06 Thread Hans Hagen via ntg-context

On 6/6/2022 8:12 PM, Steffen Wolfrum via ntg-context wrote:


with my last ConTeXt ver 2022.01.21 20:31 LMTX (arm64) this work:

\startsetups footnotesetup
\interwordspace 2.75pt % \setuptolerance[NEUNspace] hat hier keine Wirkung!
\interwordstretch 1.7pt
\interwordshrink 0.9pt
\setupinterlinespace[line=11pt, height=.79,depth=.21]
\lineskiplimit-\maxdimen
\setupwhitespace[0pt]
\stopsetups
You're using the wrong skip. These interwors* things are not meant to be 
set, as they are basically font dimensions (and in traditional tex you'd 
then set them global for each shared font) .. consider them constants 
(which is also why they are lexed as such in syntax highlighting) .. you 
were just lucky and in lmtx we're more restrictive. If you want to go 
low level you can try:


\spaceskip 12.75pt plus 1.8pt minus 0.9pt

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] Contractions in ligature suppression word list

2022-06-06 Thread Bruce Horrocks via ntg-context


> On 6 Jun 2022, at 06:37, Thangalin via ntg-context  wrote:
> 
> Attached are tweaked endings for words like "wolf" to include contracted 
> endings, but they are being ignored. This makes for a minor inconsistency:
> 
>   wolfing -- no ligature
>   wolfish -- no ligature
>   wolfin -- no ligature (incorrect spelling, though)
>   wolfin' -- ligature
> 
> Any ideas? I tried adding various -in suffixes without luck:
> 
> suffixes = [[
> in,
> in',
> in’,
> ing
> ]],
> 
> See https://wiki.contextgarden.net/Ligatures#Word_suppression for an example 
> usage.
> 
> Thank you!
> 

I'm probably missing something here but...

1) The file you attached doesn't include the word "wolfing", nor "wolfin". I 
assume they need to be added into the f|i section? Wolfish *is* present so I'm 
not sure why it's being ignored unless there is an error being generated as a 
result of point (2) below, causing the whole file to be ignored.

2) Your suffixes list has comma separators - all the other word lists use 
whitespace as a separator.

3) Lastly, dumb question but... have you checked that you edited the right 
file? In my ConTeXt install there are two "lang-en.llg" files - one under 
/context-osx-64/tex/texmf-context/tex/context/patterns/lmtx and the other 
under .../patterns/mkxl

—
Bruce Horrocks
Hampshire, UK

___
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] interwordspace error after update

2022-06-06 Thread Steffen Wolfrum via ntg-context
Hi,

with my last ConTeXt ver 2022.01.21 20:31 LMTX (arm64) this work:

\startsetups footnotesetup
\interwordspace 2.75pt % \setuptolerance[NEUNspace] hat hier keine Wirkung!
\interwordstretch 1.7pt
\interwordshrink 0.9pt
\setupinterlinespace[line=11pt, height=.79,depth=.21]
\lineskiplimit-\maxdimen
\setupwhitespace[0pt]
\stopsetups


Now, with ver 2022.05.11 11:36 LMTX (arm64) the same document gives an error:

tex error   > tex error on line 4 in file ./01_Fara.tex: You can't use 
'\scaledinterwordspace' in internal vertical mode

 \22>:footnotesetup 
   #1->\interwordspace 
   2.75pt\clubpenalty =1\widowpenalty =1\displaywidowpenalty 
=1\brokenpenalty =0\setupinterlinespace [line=11pt, 
height=.79,depth=.21]\lineskiplimit -\maxdimen \setupwhitespace [0pt]
 
 \m_syst_setups_asked 
   \clf_autosetups {\m_syst_setups_asked }
   \relax 
 \handlenoteinsert 
   ...ngroup \edef \currentnote {#1}\strc_constructions_initialize 
{#1}\strc_notes_synchronize \the \everybeforenoteinsert \insert 
\currentnoteinsertionnumber \bgroup \the \everyinsidenoteinsert \relax 
\usesetupsparameter \noteparameter 
   \useinterline ...
 \currentconstructionsynchronize 
   ...es \global \settrue \postponednote \orelse \ifconditional 
\c_strc_notes_flushed \handlenoteitself \currentnote \currentnotenumber \orelse 
\ifconditional \c_strc_notes_delayed \else \handlenoteinsert \currentnote 
\currentnotenumber 
   \fi \endgroup ...
 \currentconstructionsynchronize 
   \csname \??constructionnotehandler \currentconstructionhandler \endcsname 
   \strc_constructions_finalize \strc_notations_finalize 
 
   \stopfootnote
   }


Is there any chance my setup might work again?

Steffen

___
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] pages with facing text

2022-06-06 Thread Pablo Rodriguez via ntg-context
Dear list,

mixing the info that Wolfgang posted on this list some time ago
(https://mailman.ntg.nl/pipermail/ntg-context/2016/087629.html), I tried
to create a sample for facing pages with different streams:

  \showframe\showgrid\showstruts
  \starttext

  \startoutputstream[one]
 \startcolor[darkred]
 \dorecurse{10}{\section{Knuth}\pushoutputstream

 \inouter{first}\input knuth\footnote{note}\par\pushoutputstream}
 \stopcolor
  \stopoutputstream

  \startoutputstream[two]
 \startcolor[darkgreen]
 \dorecurse{10}{\section{Zapf}\pushoutputstream

 \inouter{second}\input zapf\footnote{note}\par\pushoutputstream}
 \stopcolor
  \stopoutputstream

  \synchronizestreams[one,two]

  \setbox\scratchboxone\outputstreambox[one]
  \setbox\scratchboxtwo\outputstreambox[two]

  \input zapf\page

  \doloop
   {\ifvoid\scratchboxone
  \exitloop
\else
  \setbox\scratchboxfour\vsplit\scratchboxone to \textheight
  \vbox to \vsize{\box\scratchboxfour\vss}%
  \setbox\scratchboxfive\vsplit\scratchboxtwo to \textheight
  \vbox to \vsize{\box\scratchboxfive\vss}%
\fi}
  \stoptext

I’m afraid that after my mixture, matching paragraphs don’t even start
at the same page height.

Would it be also possible to have notes, margin data and independent
section numbering for each stream?

Many thanks for your help,

Pablo
___
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] Typesetting modern Greek (UTF8) with ConTeXt

2022-06-06 Thread Pablo Rodriguez via ntg-context
On 6/6/22 02:19, Gerben Wierda via ntg-context wrote:
> For Russian I have:
> 
> \setuplanguage[ru][patterns={ru}]\mainlanguage[ru]
> \definefallbackfamily
>   [archimate]
>   [ss]
>   [Helvetica]
>   [preset=range:cyrillic,
>    tf=style:light,
>    it=style:lightoblique,
>    bf=style:regular,
>    bi=style:oblique,
>    force=yes,
>  rscale=1.0]
> \definefontfamily [archimate] [ss] [Optima]
> \setupbodyfont[archimate]
> 
> I can’t find out from ConTeXtgarden what code I must use for modern
> Greek (‘el’?) and what range I must use for Greek characters (I guess
> ‘greekandcoptic’ which I’ve seen mentioned somewhere).
> 
> Correct?

Hi Gerben,

\language[gr], but beware since it uses patterns for ancient Greek.

preset=range:greek is what you intend.

Another approach would be to use \setuplanguage[gr] and configure the
font in setups.

Here you have a minimal sample with both approaches:

\mainlanguage[en]
\definefallbackfamily
  [archimate]
  [ss]
  [MgOpenCosmetica]
  [preset=range:greek,
   force=yes]
\definefontfamily [archimate] [ss] [Optima]
\setupbodyfont[archimate]

\definefontfamily
  [mgopencosm]
  [ss]
  [MgOpenCosmetica]
  [preset=range:greek,
   force=yes]
\startsetups[greek-typeface]
\switchtobodyfont[mgopencosm]
\stopsetups

\setuplanguage[agr][setups={greek-typeface}]

\startbuffer
Ο κόσμος θα ήταν απίστευτα φτωχός αν δεν υπήρχαν οι
Έλληνες. Μάλιστα, αν θέλουμε να είμαστε ειλικρινείς, δεν θα
υπήρχε καθόλου κόσμος, χωρίς τις επιστήμες, τη δημοκρατία,
τις πόλεις, τα φωνήεντα, τη φέτα, το φραπέ, το ούζο και το
χταποδάκι στα κάρβουνα.
\stopbuffer

\starttext
\gr \getbuffer\par
\agr \getbuffer
\stoptext

MgOpenCosmetica can be downloaded from
https://web.archive.org/web/20090309063533/www.ellak.gr/fonts/mgopen/index.en.html
(direct link:
https://web.archive.org/web/20090309063533/www.ellak.gr/fonts/mgopen/files/MgOpenCosmetica.tar.gz).

Just in case it might help,

Pablo
___
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] Two minor questions

2022-06-06 Thread Aditya Mahajan via ntg-context
On Mon, 6 Jun 2022, Stefan Nedeljkovic via ntg-context wrote:

> Dear list,
> 
> I have 2 small questions:
> 
> 1. In \setuplayout if I try to set topspace=5\measured{base} +
> \dimexpr2bp I get an error. How should I add these 2bp?

(Untested)

\dimexpr\measure{base}+2bp\relax

or 

\dimexpr\measured{base}+2bp\relax

should work.

> 2. I have an mp graphic defined in the file "graphic.mp" which has the
> exact same dimensions as my page. I'd like to set that graphic as a
> background. How do I do this?

(Again, untested)

\startuseMPgraphic{background-image}
  input graphic.mp;
\stopuseMPgraphic

\defineoverlay[background-image][\useMPgraphic{background-image}]

\setupbackgrounds[page][background={background-image}]

Aditya
___
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] Two minor questions

2022-06-06 Thread Wolfgang Schuster via ntg-context

Stefan Nedeljkovic via ntg-context schrieb am 06.06.2022 um 07:55:

Dear list,

I have 2 small questions:

1. In \setuplayout if I try to set topspace=5\measured{base} + 
\dimexpr2bp I get an error. How should I add these 2bp?


\setuplayout
  [topspace=\dimexpr 5\measured{base} + 2bp\relax]

2. I have an mp graphic defined in the file "graphic.mp 
" which has the exact same dimensions as my page. 
I'd like to set that graphic as a background. How do I do this?


\startreusableMPgraphic{backgroundgraphic}
    input graphic.mp;
\stopreusableMPgraphic

\defineoverlay [backgroundimage] [\reuseMPgraphic{backgroundgraphic}]

\setupbackgrounds [page] [background=backgroundimage]

Wolfgang

___
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] Regular online-meetup

2022-06-06 Thread Henning Hraban Ramm via ntg-context

You’re invited to join this Wednesday, June 8th, 15:00 CEST (UTC+2)

at https://lecture.senfcall.de/hen-rbr-rku-oke

ConTeXt users of all levels are welcome!

Hans will probably give a Q session again – please announce subjects 
you’d like to discuss ASAP, so that he can prepare.




(Same blurb as every time:)

[Howto]
* No special software installation required; most modern browsers should 
work (WebRTC required).

* Open the above URL, accept the privacy statement,
* enter your name,
* click "join" (or "start" if you’re the first),
* click "with microphone", allow your browser to access it, check the audio.
* Your microphone is muted if you join. Activate microphone and/or 
camera with the buttons at the bottom.

* Minimize the default presentation with the "screen" button, bottom right.

* If you’d like to share your screen or upload a file, you can make 
yourself the presenter: Click on your user name, change the setting, 
then you’ll see the "screen sharing" button beside the camera button; 
also there’s now "manage presentations" behind the "plus" button. Beware 
there is only one presenter, so don’t kill someone else’s presentation.


[Technical hints]
* Sound is usually better if you use a headset (less noise for everyone).

* Connection problems are mostly due to low bandwidth or high latency on 
your side, e.g. with mobile connections.

* If audio/video doesn’t work for you, you can still use the text chat.
* Screen sharing needs a lot of bandwidth.

[Netiquette]
* Please use a name that we recognize from here. Some feel uncomfortable 
with anonymous lurkers.

* Mute your microphone while you’re not talking.
* It’s nice to show your face at least when you join.
* If there are connection problems, stop camera sharing.
* The room is set to “everyone’s a moderator“, I trust you...

See you, 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] Can I simplify this to some sort of logic so it scales better?

2022-06-06 Thread Wolfgang Schuster via ntg-context

Gerben Wierda via ntg-context schrieb am 06.06.2022 um 13:34:

I have this:

\definemode[EN,FR,RU,PT][keep]
\doifmodeelse{EN}
{
    \disablemode[FR]
    \disablemode[RU]
  \disablemode[PT]
  }
  {
\doifmodeelse{FR}
    {
      \disablemode[EN]
      \disablemode[RU]
      \disablemode[PT]
    }
    {
      \doifmodeelse{RU}
      {
      \disablemode[EN]
\disablemode[FR]
\disablemode[PT]
      }
      {
      \doifmodeelse{PT}
        {
          \disablemode[EN]
          \disablemode[FR]
          \disablemode[RU]
        }
      {
\enablemode[EN]
        }
      }
  }
  }

But for every language added this becomes more and more complex. I was 
wondering what would be a good approach to simplify it.


I want to make sure that one and only one of these modes is active and 
that if no mode is entered on the command line the mode is EN.


%\enablemode[EN]
\enablemode[FR]
%\enablemode[RU]
%\enablemode[PT]

\definemode[EN,FR,RU,PT][keep]

\startmodeset
    [EN]  {\disablemode[FR,RU,PT]}
    [FR]  {\disablemode[EN,RU,PT]}
    [RU]  {\disablemode[EN,FR,PT]}
    [PT]  {\disablemode[EN,FR,RU]}
    [default] {\enablemode[EN]}
\stopmodeset

\starttext
\doifmode{EN}{english}
\doifmode{FR}{french}
\doifmode{RU}{russian}
\doifmode{PT}{portuguese}
\stoptext

Wolfgang

___
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] Can I simplify this to some sort of logic so it scales better?

2022-06-06 Thread Gerben Wierda via ntg-context
I have this:

\definemode[EN,FR,RU,PT][keep]
\doifmodeelse{EN}
  {
\disablemode[FR]
\disablemode[RU]
\disablemode[PT]
  }
  {
\doifmodeelse{FR}
{
  \disablemode[EN]
  \disablemode[RU]
  \disablemode[PT]
}
{
  \doifmodeelse{RU}
  {
\disablemode[EN]
\disablemode[FR]
\disablemode[PT]
  }
  {
\doifmodeelse{PT}
{
  \disablemode[EN]
  \disablemode[FR]
  \disablemode[RU]
}
{
  \enablemode[EN]
}
  }
}
  }

But for every language added this becomes more and more complex. I was 
wondering what would be a good approach to simplify it. 

I want to make sure that one and only one of these modes is active and that if 
no mode is entered on the command line the mode is EN.

Gerben Wierda (LinkedIn )
R IT Strategy  (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
___