Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-22 Thread amano.kenji via ntg-context
Wuh. That's a bit complex.

For distribution packages that depend on context for generation of PDF 
documents, having context as a system package is essential.

And, distribution maintainers can make things work if they understand TeX 
directory structure and texmfcnf.lua.

It comes down to care. If they care and they have installation guide, they will 
make it work.

--- Original Message ---
On Sunday, August 21st, 2022 at 7:13 PM, Michal Vlasák  
wrote:


> On Mon Aug 15, 2022 at 2:03 PM CEST, amano.kenji via ntg-context wrote:
> 
> > TexLive has texmfcnf.lua that doesn't really work with texlive-context 
> > installed by linux distributions.
> > 
> > Arch Linux has its own patched version of texmfcnf.lua.
> > 
> > It seems I'd be better off with a linux package for ConTeXt LMTX.
> > 
> > How can I build and install ConTeXt LMTX on Gentoo Linux or any linux 
> > distribution?
> > 
> > I wish it was as simple as ./configure, make, and make install.
> 
> 
> Some of the problems were mentioned in previous discussions. Like:
> 
> - you would need to maintain your own "snapshots" of the current
> ConTeXt (or make use of the public git mirror)
> - you currently can't build luametatex binary from source, you would
> have to download it prebuilt (and also keep snapshots of it)
> - different directory structure expected by Linux distributions (FHS,
> "file hierarchy standard") vs TeX (TDS, "TeX directory structure")
> 
> In addition, there are still many uncertain things, like how you want to
> handle fonts:
> 
> - install some with ConTeXt? (In that case you might distribute fonts
> already available in your Linux distribution)
> - use system ones? (Then your documents may be subject to breakages
> from uncoordinated updates - ConTeXt has goodie files tuned to
> particular versions of fonts)
> 
> Also, AFAIK, packages are diligent with keeping license information and
> documentation, you would have to decide how that information would be
> kept (this is mostly the directory structure problem).
> 
> With that said, taking Hans' instructions as a start:
> 
> On Fri Aug 19, 2022 at 3:11 PM CEST, Hans Hagen via ntg-context wrote:
> 
> > Not sure what you mean here but basically a (future) installation is:
> > 
> > - unzip the main zip file
> > - goto the source subtree
> > - run build.sh (assumes compiler and cmake installed)
> > - move the binary file to the relevant bin location
> > - set symlinks from luametatex to mtsrun and context
> > - copy mtxrun.lua and context.lue there too
> > - adapt your path
> > - maybe add texmf-fonts and texmf-projects
> > - and you're done
> 
> 
> You need two things from ConTeXt: texmf directories (there are two
> provided by ConTeXt "texmf-context" - what you really need, "texmf" -
> mostly fonts) and the luametatex binary.
> 
> For simplicity let's only include "texmf-context":
> 
> In that case you need to extract "mtxrun" (rename to "luametatex") from
> http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip and download
> the "texmf-context" texmf tree from
> http://lmtx.pragma-ade.nl/install-lmtx/texmf-context.zip.
> 
> This is how you get luametatex to execute script like mtxrun or context:
> 
> - luametatex binary gets executed with name (argv[0]) 

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-22 Thread Hans Hagen via ntg-context

On 8/22/2022 7:21 AM, 黄复雄 via ntg-context wrote:

Dear Hans.
Thank you very much for so many examples and guidance.

In fact, I have read one of the examples in the followingup.pdf,
and the https://github.com/Fusyong/vertical-typesetting module I made
is based on the example.

The examples all worked after I changed the font settings according to
my Win10 OS;
and surprisingly, the ruby module also worked with \setscript[hanzi]
  (they don't work together in the example Mr. Wolfgang provided).


I noticed an issu ewith multiple glyphs but am not sure why ... (so we 
need very small examples to figure it out).



The only problem is that the offsets of glyphs are a bit inaccurate,
which may be related to the font,
and I will look into it further.


in the vertical feature one can tune a bit.


The examples I have adjusted are attached,
and the output PDF of them is not attached for being too big to the
limit of 100 KB.
(Just now I received a reply from the mailing list system asking to
adjust a over-length email,
I mistakenly thought it was about the one to Mr. Wolfgang, so that one
was duplicated and submitted,
please deal with it.)


there are indeed limits


By the way, I've finished checking and adjusting type-imp-mscore.mkiv,
scrp-cjk.lua, and char-scr.lua so far,
but the changes are a bit much (or maybe you can say a bit reckless),
so I'm hesitant to get back to you in order to minimize your troubles.
And as mentioned partly in an earlier email, I've made 3 modules that
support Chinese
(about vertical-typesetting,  Jiazhu or inline cutting note and punctuation)
and I'd be happy to contribute them to the ConTeXt project repository
when they're ripe,
if that's in line with the project policy. Your comments and guidance
are very welcome.


hm, i can have a look at it but we shouldn't break japanese and korean

once you finished all we can see how it can either be integrated or 
become some third party module (has to do with maintainance)


can you also make a noto typescript for the different chinese setups 
(for some reason the CJK noto's failed so i used the non CJK ones as i 
couldn't locate the right files; one cannot longher download al-of-noto 
in one zip )


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] ConTeXt Mark IV mtxrun: If selfautoloc is /usr/bin and selfautodir is /usr, selfautoparent becomes "." instead of "/".

2022-08-22 Thread amano.kenji via ntg-context
I think it's a bug.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Clipping multiple PDFs

2022-08-22 Thread Jethro Djan via ntg-context

Thanks for the solution Pablo. It works well.

I wanted to add more pdfs (which also has many pages) and found it was easier 
for me to reason in the lua side of things. This is what I have at the moment:

\starttext
\startluacode
  local function doc(fil)
return fil..[[.pdf]]
  end

  local function disppdf(fname)
n = 1 
repeat 
  context.externalfigure({fname},{
page = n,
width = "200mm",
scale = "950"
  })
  n = n + 1
until n == context(context.noffigurepages)
  end

  local pdffiles = {"ass1", "ass2", "ass3", "ass4", "ass5", "ass6", "ass7", 
"ass8"}
  for index=1,#pdffiles do 
local f = doc(pdffiles[index])
context.getfiguredimensions({f})
disppdf(pdffiles[index])
  end
\stopluacode
\stoptext

I didn’t know how to get an array (or indexed table or whatever you call it) in 
ConTeXt/Tex. My problem is now with context(context.noffigurepages). Am I 
calling it wrong? All I want to do is call \noffigurepages from the lua side. 
Is there something I am missing?

Jethro

> On 21 Aug 2022, at 4:41 PM, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> On 8/18/22 02:13, jethro Reuel via ntg-context wrote:
>> Hello,
>> 
>> I am trying to put multiple PDF’s that were typeset differently into
>> one document without modifying the individual files themselves.
>> [...]
>> The problem is the original page numbers show and I’d prefer that it
>> did not. So I thought maybe I could clip all the page numbers from
>> every page (since they are all in the same position across all the
>> pages) but I don’t know how to do this with the \clip command. Any
>> ideas? I already tried using \input but it gives some weird output in
>> some places. It doesn’t have to use this method as long as it does
>> what I need it to do.
> 
> Hi Jethro,
> 
> it works using \clip with \externalfigure inside a loop (\dorecurse).
> 
> With \getfiguredimensions you get the number of pages of each PDF
> document (\noffigurepages).
> 
> The following source both generates the source PDF document and the
> imposed result with clipped pages (just to see a sample of the commands
> mentioned above):
> 
>  \startbuffer[newbuff]
>  \setuppapersize[A3]
>  \setupbodyfont[sans, 1200pt]
>  \starttext
>  \dorecurse{8}
>  {\startmakeup[page][pagestate=start, align=center, style=\bf]
>\recurselevel
>   \stopmakeup}
>  \stoptext
>  \stopbuffer
>  \startmode[*first]
>  \savebuffer[newbuff][source_page.tex, prefix=no]
>  \executesystemcommand{context --purgeall source_page.tex}
>  \stopmode
>  \setuplayout[page]
>  \setuppapersize[A6][A4]
>  \setuppaper[nx=2, ny=2]
>  \setuparranging [XY]
>  \starttext
>  \startnotmode[*first]
>  \def\Doc{source_page.pdf}
>  \getfiguredimensions[\Doc]
>  \dorecurse{\noffigurepages}
>{\clip[hoffset=96mm, voffset=136mm, width=105mm, height=148mm]
>{\externalfigure[\Doc][page=\recurselevel]}}
>  \stopnotmode
>  \stoptext
> 
> 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 / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Size of all subscripts

2022-08-22 Thread Fabrice Couvreur via ntg-context
Hello
How to reduce the size of all subscripts in math mode ?
Thanks
Fabrice

\usemodule[tikz]
 \protected\def\vector#1{%
 \starttikzpicture[baseline=(arg.base),>=stealth]
 \node[inner xsep=0pt] (arg) {\m{#1}};
 \draw[thick,->,shorten >=-1pt] (arg.north west) -- (arg.north east);
\stoptikzpicture%
}
\starttext
 \m{z_{\vector{U}}}
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Clipping multiple PDFs

2022-08-22 Thread Jethro Djan via ntg-context
Thanks for the solution Pablo. It works well.

I wanted to add more pdfs (which also has many pages) and found it was
easier for me to reason in the lua side of things. This is what I have
at the moment:

\starttext
\startluacode
  local function doc(fil)
return fil..[[.pdf]]
  end

  local function disppdf(fname)
n = 1
repeat
  context.externalfigure({fname},{
page = n,
width = "200mm",
scale = "950"
  })
  n = n + 1
until n == context(context.noffigurepages)
  end

  local pdffiles = {"ass1", "ass2", "ass3", "ass4", "ass5", "ass6", "ass7",
"ass8"}
  for index=1,#pdffiles do
local f = doc(pdffiles[index])
context.getfiguredimensions({f})
disppdf(pdffiles[index])
  end
\stopluacode
\stoptext

I didn’t know how to get an array (or indexed table or whatever you call
it) in ConTeXt/Tex. My problem is now with context(context.noffigurepages).
Am I calling it wrong? All I want to do is call \noffigurepages from the
lua side. Is there something I am missing?

Jethro

On 21 Aug 2022, at 4:41 PM, Pablo Rodriguez via ntg-context <
ntg-context@ntg.nl> wrote:

On 8/18/22 02:13, jethro Reuel via ntg-context wrote:

Hello,

I am trying to put multiple PDF’s that were typeset differently into
one document without modifying the individual files themselves.
[...]
The problem is the original page numbers show and I’d prefer that it
did not. So I thought maybe I could clip all the page numbers from
every page (since they are all in the same position across all the
pages) but I don’t know how to do this with the \clip command. Any
ideas? I already tried using \input but it gives some weird output in
some places. It doesn’t have to use this method as long as it does
what I need it to do.


Hi Jethro,

it works using \clip with \externalfigure inside a loop (\dorecurse).

With \getfiguredimensions you get the number of pages of each PDF
document (\noffigurepages).

The following source both generates the source PDF document and the
imposed result with clipped pages (just to see a sample of the commands
mentioned above):

 \startbuffer[newbuff]
 \setuppapersize[A3]
 \setupbodyfont[sans, 1200pt]
 \starttext
 \dorecurse{8}
 {\startmakeup[page][pagestate=start, align=center, style=\bf]
   \recurselevel
  \stopmakeup}
 \stoptext
 \stopbuffer
 \startmode[*first]
 \savebuffer[newbuff][source_page.tex, prefix=no]
 \executesystemcommand{context --purgeall source_page.tex}
 \stopmode
 \setuplayout[page]
 \setuppapersize[A6][A4]
 \setuppaper[nx=2, ny=2]
 \setuparranging [XY]
 \starttext
 \startnotmode[*first]
 \def\Doc{source_page.pdf}
 \getfiguredimensions[\Doc]
 \dorecurse{\noffigurepages}
   {\clip[hoffset=96mm, voffset=136mm, width=105mm, height=148mm]
   {\externalfigure[\Doc][page=\recurselevel]}}
 \stopnotmode
 \stoptext

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 /
https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Size of all subscripts

2022-08-22 Thread Hans Hagen via ntg-context

On 8/22/2022 4:59 PM, Fabrice Couvreur via ntg-context wrote:

Hello
How to reduce the size of all subscripts in math mode ?
Thanks
Fabrice

\usemodule[tikz]
  \protected\def\vector#1{%
  \starttikzpicture[baseline=(arg.base),>=stealth]
  \node[inner xsep=0pt] (arg) {\m{#1}};
  \draw[thick,->,shorten >=-1pt] (arg.north west) -- (arg.north east);
 \stoptikzpicture%
 }
\starttext
  \m{z_{\vector{U}}}
\stoptext

\protected\def\vector#1{%
 \starttikzpicture[baseline=(arg.base),>=stealth]
 \node[inner xsep=0pt] (arg) {\m{#1}};
 \draw[thick,->,shorten >=-1pt] (arg.north west) -- (arg.north east);
\stoptikzpicture
}
\starttext

\m{x + z_{\vector{U}} + x}

\m{x + \mathord{\vector{U}}^^z + x}

\m{x + \overrightarrow{U}^^z + x}

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Clipping multiple PDFs

2022-08-22 Thread Jethro Djan via ntg-context

Thanks for the solution Pablo. It works well.

I wanted to add more pdfs (which also has many pages) and found it was easier 
for me to reason in the lua side of things. This is what I have at the moment:

\starttext
\startluacode
  local function doc(fil)
return fil..[[.pdf]]
  end

  local function disppdf(fname)
n = 1 
repeat 
  context.externalfigure({fname},{
page = n,
width = "200mm",
scale = "950"
  })
  n = n + 1
until n == context(context.noffigurepages)
  end

  local pdffiles = {"ass1", "ass2", "ass3", "ass4", "ass5", "ass6", "ass7", 
"ass8"}
  for index=1,#pdffiles do 
local f = doc(pdffiles[index])
context.getfiguredimensions({f})
disppdf(pdffiles[index])
  end
\stopluacode
\stoptext

I didn’t know how to get an array (or indexed table or whatever you call it) in 
ConTeXt/Tex. My problem is now with context(context.noffigurepages). It doesn’t 
produce an integer so n is being compared to nil. Am I calling it wrong? All I 
want to do is call \noffigurepages from the lua side. Is there something I am 
missing?

Jethro

> On 21 Aug 2022, at 4:41 PM, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> On 8/18/22 02:13, jethro Reuel via ntg-context wrote:
>> Hello,
>> 
>> I am trying to put multiple PDF’s that were typeset differently into
>> one document without modifying the individual files themselves.
>> [...]
>> The problem is the original page numbers show and I’d prefer that it
>> did not. So I thought maybe I could clip all the page numbers from
>> every page (since they are all in the same position across all the
>> pages) but I don’t know how to do this with the \clip command. Any
>> ideas? I already tried using \input but it gives some weird output in
>> some places. It doesn’t have to use this method as long as it does
>> what I need it to do.
> 
> Hi Jethro,
> 
> it works using \clip with \externalfigure inside a loop (\dorecurse).
> 
> With \getfiguredimensions you get the number of pages of each PDF
> document (\noffigurepages).
> 
> The following source both generates the source PDF document and the
> imposed result with clipped pages (just to see a sample of the commands
> mentioned above):
> 
>  \startbuffer[newbuff]
>  \setuppapersize[A3]
>  \setupbodyfont[sans, 1200pt]
>  \starttext
>  \dorecurse{8}
>  {\startmakeup[page][pagestate=start, align=center, style=\bf]
>\recurselevel
>   \stopmakeup}
>  \stoptext
>  \stopbuffer
>  \startmode[*first]
>  \savebuffer[newbuff][source_page.tex, prefix=no]
>  \executesystemcommand{context --purgeall source_page.tex}
>  \stopmode
>  \setuplayout[page]
>  \setuppapersize[A6][A4]
>  \setuppaper[nx=2, ny=2]
>  \setuparranging [XY]
>  \starttext
>  \startnotmode[*first]
>  \def\Doc{source_page.pdf}
>  \getfiguredimensions[\Doc]
>  \dorecurse{\noffigurepages}
>{\clip[hoffset=96mm, voffset=136mm, width=105mm, height=148mm]
>{\externalfigure[\Doc][page=\recurselevel]}}
>  \stopnotmode
>  \stoptext
> 
> 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 / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-22 Thread Alan via ntg-context
Note that each system is different.
- FreeBSD is posix and follows different packaging conventions from
various linux distributions.
- MacOS has MacPorts as well as Brew, different systems with different
packaging conventions.
etc.

A package maintainer knows the requirements of the system being
maintained, not upstream developers.

Alan

On Thu, 18 Aug 2022 13:53:41 +
"amano.kenji"  wrote:

> Imagine installation instructions given by linux from scratch.
> 
> install.sh is like `apt-get install ConTeXt`.
> 
> Linux from scratch would document the following commands.
> 
> ```
> tar xf luametatex-2022.06.tar.xz
> cd /path/to/luametatex-2022.06
> make
> cp luametatex /usr/bin
> 
> tar xf context-2022.06.tar.xz
> cd /path/to/context-2022.06
> cp -r font /path/to/usr/share/texmf-dist
> ...
> ```
> 
> I want something like this.
> 
> --- Original Message ---
> On Thursday, August 18th, 2022 at 1:16 PM, Alan
>  wrote:
> 
> 
> > On Wed, 17 Aug 2022 17:42:18 +0200
> > Hans Hagen via ntg-context ntg-context@ntg.nl wrote:
> >   
> > > sorry, i just can't spent time on all the possible variant ways of
> > > installation .. that is up to volunteers  
> > 
> > 
> > OS distribution packages are the responsibility of maintainers.
> > "Upstream" developers can, and do, respond to requests for changes
> > that might make packaging for a particular OS easier, but this is
> > not directly the responsibility of developers.
> > 
> > Most OS packages require patches for particularities of that OS
> > environment. LMTX Context, being minimal and fully portable, should
> > be very easy to package as most paths, fonts, etc. are determined
> > dynamically. The Context distribution follows the TeX directory tree
> > structure, and this might not be the practice of some OS, which, for
> > example, might locate different resources on different branches of
> > the system directory structure. Some OS distributions are very
> > particular about this.
> > 
> > I cannot understand the thrust of this thread.
> > 
> > It appears that the only issue for now concerns the distribution of
> > the luametatex source tree. This is not yet the case as luametatex
> > has been undergoing much experimentation. A classic opensource
> > depository would disrupt this experimentation as more people get
> > involved in wanting to make modifications. I believe the intention
> > is to make a release once luametatex development settles into a
> > normal state.
> > 
> > Alan  

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-22 Thread Max Chernoff via ntg-context
Hi Amano,


> Wuh. That's a bit complex.

Not really. From a user perspective, all that you need to run is

   make install
   
From a developer perspective, this is essentially just the base ConTeXt
files, a modified texmfcnf.lua, and a fairly basic makefile.

> For distribution packages that depend on context for generation of PDF
> documents, having context as a system package is essential.

I'd say that ConTeXt *is* available in nearly every package manager, via
TeX Live. Very very few package managers would have no TeX Live. TeX
Live only includes MkIV, the "stable" version, but most users won't
notice many differences from MkXL/LMTX, the "experimental" version. 

By policy, TeX Live only updates its binaries once per year. This would
be pretty much unworkable with LuaMetaTeX due to its frequent upgrades.
At some point when LuaMetaTeX is stable, the source will be released and
almost certainly be incorporated in TeX Live. 

> And, distribution maintainers can make things work if they understand
> TeX directory structure and texmfcnf.lua.

Packaging/installing ConTeXt is actually much easier than doing so for
other TeX systems. With other systems, you need to fiddle around with
fonts and packages, but with ConTeXt, you can pretty much just unpack a
few files.

Here's a short paper that should give you an overview of how hard
packaging TeX can be:

   https://tug.org/TUGboat/tb34-3/tb108preining-distro.pdf

> It comes down to care. If they care and they have installation guide,
> they will make it work.

I'm not sure who you're talking about here. If you're talking about end-
users, then yes, it's pretty simple to install ConTeXt. I personally
find ConTeXt much easier to install than TeX Live.

If you're talking about packagers, then packaging ConTeXt is no more
complex than packaging TeX Live (which of course includes ConTeXt MkIV).
The installer documentation for ConTeXt LMTX certainly isn't as detailed
as it is for TeX Live, but LMTX is still beta software.

If you're trying to say that the ConTeXt developers don't care, then you
may be "right" in a sense, but missing the point entirely. There is no
one who is paid to work on ConTeXt: all of the developers work on it
either as volunteers or to support their own business needs. The current
installer works for them and for many other users. This isn't to say
that they don't care about the users, but rather that they are unlikely
to spend much time making a package for a fairly unpopular distro where
the official installer already works.

> On Sunday, August 21st, 2022 at 7:13 PM, Michal Vlasák  
> wrote:

Hi Michal,

> > I prepared a proof of concept, that I am ready to take down immediately
> > at Hans' request, since I don't handle license information properly, and
> > texmf-context is stripped down (just so that the downloads are not too
> > big for proof of concept).
> > 
> > https://github.com/vlasakm/context

That's quite impressive!

> > There is documentation about how it can be used. I hope its obvious how
> > I got "texmf" (texmf-context.zip, unzip, delete some files I didn't want
> > to take up space), 

One suggestion: instead of unpacking and committing "texmf-context.zip",
I'd recommend adding 

   https://github.com/contextgarden/context-mirror/
   
as a git submodule. That way, it's easy to keep the files up-to-date, your
repo will use less space, and there's a clearer separation between your
package files and ConTeXt itself.

> > A bit of a disclaimer: I don't really recommend pursuing this further.
> > Some time ago I was also that foolish to try to package TeX for Linux
> > distributions. Unfortunately I think that the result will never by
> > optimal - as demonstrated by the previous discussions, the usual
> > purposes of packages (to integrate software into the system) don't apply
> > much to TeX / ConTeXt - there one wants something more or less self
> > contained (so that updates are under control, no random non-essential
> > libraries brake things, etc.).

Well packaging the files into .rpm/.deb isn't really a bad idea; what's
bad is the weird modifications that distros make, plus the fact that
nearly every distro delays updates by quite some time. I generally agree
that installing TeX straight from the source is better, although I can
see why some users prefer to install from their distro repos.

Thanks,
-- Max

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___