[NTG-context] Re: Best way to input UTF-8

2024-02-18 Thread Marco Patzer
On Mon, 19 Feb 2024 09:45:03 +0800
黄复雄  wrote:

> I recommend you to always show missing font markers in PDF documents
> with \replacemissingcharacters

Or let context throw an error in case a font/char is missing:

  %% alternative:
  %% context --errors='*' 
  \enabledirectives [logs.errors=*]

  %% missing font
  \definefontfamily [foo] [serif] [no font here really]
  \setupbodyfont [foo]

  \starttext
%% missing characters
풜
  \stoptext

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Best way to input UTF-8

2024-02-18 Thread 黄复雄
I recommend you to always show missing font markers in PDF documents with
\replacemissingcharacters

On Mon, Feb 19, 2024 at 12:46 AM Shiv Shankar Dayal
 wrote:
>
> Hi all,
>
> What is the best way to input UTF-8 in LuaMetaTex? If I use the UTF-8 
> characters then do not come out in text with Modern font.
>
> --
> Respect,
> Shiv Shankar Dayal
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: New upload doesn't work on macOS 10.13.6

2024-02-18 Thread Gavin via ntg-context
Hi Ralf

I keep TeX Live on my Mac. It’s a great fall-back when I have new version 
surprises with ConTeXt.

   tug.org/mactex/

TeX Live has a friendly installer. Updates are easy with TeX Live Utility. TeX 
Live has a version of ConTeXt from last May, and it’s quite a good version, in 
my opinion. (ConTeXt  ver: 2023.05.05 18:36 LMTX  fmt: 2023.12.18)

If you need any LaTeX stuff for some reason, it’s all there in TeX Live.

Gavin


> On Feb 18, 2024, at 1:01 PM, Ralf Heinrich Arning  wrote:
> 
> Hi list,
> 
> after having tried to update with the new upload, ConTEXt doesn't run 
> anymore. 
> 
> According to the output the new version requires a more recent system. I 
> still use macOS 10.13.6 (High Sierra).
> 
> This is what I get:
> 
> =
> context TestCode.tex
> dyld: lazy symbol binding failed: Symbol not found: chkstk_darwin
> Referenced from: 
> /Applications/TeX/context-osx-64/tex/texmf-osx-64/bin/context (which was 
> built for Mac OS X 12.7)
> Expected in: /usr/lib/libSystem.B.dylib
> 
> dyld: Symbol not found: chkstk_darwin
> Referenced from: 
> /Applications/TeX/context-osx-64/tex/texmf-osx-64/bin/context (which was 
> built for Mac OS X 12.7)
> Expected in: /usr/lib/libSystem.B.dylib
> 
> /bin/bash: line 2:  1569 Abort trap: 6   context TestCode.tex
> context TestCode.tex
> dyld: lazy symbol binding failed: Symbol not found: chkstk_darwin
> Referenced from: 
> /Applications/TeX/context-osx-64/tex/texmf-osx-64/bin/context (which was 
> built for Mac OS X 12.7)
> Expected in: /usr/lib/libSystem.B.dylib
> 
> dyld: Symbol not found: chkstk_darwin
> Referenced from: 
> /Applications/TeX/context-osx-64/tex/texmf-osx-64/bin/context (which was 
> built for Mac OS X 12.7)
> Expected in: /usr/lib/libSystem.B.dylib
> 
> /bin/bash: line 4:  1579 Abort trap: 6   context TestCode.tex
> ===
> 
> Trying to install again, I get:
> 
> 
> sh install.sh
> dyld: lazy symbol binding failed: Symbol not found: chkstk_darwin
> Referenced from: /Applications/TeX/context-osx-64/bin/mtxrun (which was built 
> for Mac OS X 12.7)
> Expected in: /usr/lib/libSystem.B.dylib
> 
> dyld: Symbol not found: chkstk_darwin
> Referenced from: /Applications/TeX/context-osx-64/bin/mtxrun (which was built 
> for Mac OS X 12.7)
> Expected in: /usr/lib/libSystem.B.dylib
> 
> install.sh: line 105:  1693 Abort trap: 6   $PWD/bin/mtxrun --script 
> ./bin/mtx-install.lua --update --server="$LMTXSERVER" 
> --instance="$LMTXINSTANCE" --platform="$PLATFORM" --erase 
> --extras="$LMTXEXTRAS"
> 
> ==
> 
> 
> What can I do?
> 
> Do I have to reinstall an older version? How can I do this?
> 
> Desperately,
> 
> Ralf
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: New upload doesn't work on macOS 10.13.6

2024-02-18 Thread Mojca Miklavec
Dear Ralf,

On Sun, 18 Feb 2024 at 21:07, Ralf Heinrich Arning wrote:
>
> after having tried to update with the new upload, ConTEXt doesn't run anymore.
>
> According to the output the new version requires a more recent system.

We had some technical difficulties on our build farm, so Hans built
the binaries on a (too) recent macOS version.

A binary built on an older version can be found here:

https://build.contextgarden.net/dl/luametatex/main/x86_64-darwinlegacy/luametatex
but you would need to remove some flag first, else the security system
won't let you start it (I would have to check what command exactly
needs to be called; the installer does it automatically for you).
I think that "context" is just a copy of that same binary.

Maybe Hans can rebuild the binary installers using the above binary.

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: manuals

2024-02-18 Thread Jean-Pierre Delange

Hello everyone!
 As an eternal newbie (with a memory like a goldfish), I started by 
building my own documentation from the web pages constructed by Bertrand 
Masson (prehistory archaeologist in Northern France) "les fiches à 
Bébert" (obsolete version here: http://bertrandmasson.free.fr/; new 
recommended version here: 
http://lesfichesabebert.fr/TeX/context/context-intro.html). As 
mentionned by Alain Delmotte.
Bertrand Masson always keeps his site up to date, as he gives references 
to the documentation compiled by Garulfo (Joaquín Ataz López ), 
available in several languages, which I personally found well-done, 
useful and welcome. It's interesting to note with a rather positive 
smile that documentations, even if they're never really up to date in 
the details of ConTeXt's evolution, copy each other: that's what I did 
to write the beginning of a Wikibook in French 
(https://fr.wikibooks.org/wiki/ConTeXt/Qu%27est-ce_que_ConTeXt_%3F). I 
took things written by Bertrand Masson and was partially taken over by 
Garulfo and so on.
Fortunately, the ConTeXT discussion list offers MWEs: all you have to do 
is to test them and save these examples on your system in the CTX-TESTS 
document folder. The next step is to classify these examples under the 
appropriate headings, then insert them into a coding system for a 
complex document that always calls for requests for explanations from 
discussion list participants.


This question of documentation seems to me to be an age-old snake, not 
only on a technical subject which can be complex, as ConTeXt can be, but 
also concerning other types of documentation. For my part, although I 
haven't yet exhausted all the available documentation resources, whether 
internal to the distribution, or online like the ConTeXt Garden wiki, I 
think (but this has been better expressed here by others than me) that a 
real documentation refresh could be carried out collectively, with the 
great ambition of keeping obsolete documentation in an archive, while 
proposing a wiki with the date of update visible, in correlation with 
the PDF version. I have no idea how this documentation update could be 
achieved, but the fact is that it would be desirable to devote a section 
to the purely technical and basic aspects of CTX installation and font 
availability on Windows, Mac OS, Linux, BSD, etc., with MWEs and 
examples a little more detailed. Once this documentation has been passed 
as an introductory part (itself containing chapters explaining how this 
page of documentation was put together, with notes in the margins, 
etc.), this book could introduce MKIV, LuaTeX, MetaPost and so on, but 
with a clear distinction between the objectives sought: writing 
documentation with figures, writing a thesis in mathematics and physics, 
how to construct figures, or a bibliography. Not to mention the handling 
of photographs in an aesthetically demanding layout; all this with the 
possibility of showing complete or partial examples of work produced...


In a nutshell: even if I give the impression that I'm asking you to 
reinvent the wheel, in reality it's a question of collating relevant 
existing information in a way that is intelligible and clear to the 
neophyte, but that also meets the demands of experienced users, who 
don't all use ConTeXt for the same reasons. Don't get me wrong: I'm not 
telling you what to do, I'm just giving you my opinion. Basically, I'm 
saying: documentation exists, but it has to be reliable, up to date, 
easy to find and enable you to make progress in difficult situations. As 
I said, I found Garulfo's work very welcome. It's not obsolete and 
doesn't need replacing. But perhaps it could be amended on certain 
points and completed and made available both in PDF and online in the 
ConTeXt Garden wiki pages?


So, if by hypothesis the relevant documentation exists, here and there, 
but it's in the middle of pages that are in the past, it can be 
considered a daunting task to go looking for information that you 
realize is no longer up to date, because experience shows that it's no 
longer reliable. If confusion reigns, those seeking to apply what 
they've read risk turning away from ConTeXt, or asking the same 
questions over and over again.


So there's plenty of food for thought to be had when it comes to methods 
for overhauling existing documentation. It's not a question of thinking 
long and hard about the availability of this documentation (on line or 
as a PDF?), but rather of knowing whether to build an encyclopedia, or a 
series of manuals, each of which is intended to circumscribe as closely 
as possible the problems encountered when attempting this or that form 
of page layout.


I remember being astonished to discover, when I first started learning 
ConTeXt, all the vocabulary that existed around page layout (in French: 
Grand fond, petit fond, blanc de tête, blanc de pied, etc.), vocabulary 
that we ignore when we come from Word office automation (see 

[NTG-context] New upload doesn't work on macOS 10.13.6

2024-02-18 Thread Ralf Heinrich Arning
Hi list,

after having tried to update with the new upload, ConTEXt doesn't run anymore. 

According to the output the new version requires a more recent system. I still 
use macOS 10.13.6 (High Sierra).

This is what I get:

=
context TestCode.tex
dyld: lazy symbol binding failed: Symbol not found: chkstk_darwin
  Referenced from: 
/Applications/TeX/context-osx-64/tex/texmf-osx-64/bin/context (which was built 
for Mac OS X 12.7)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: chkstk_darwin
  Referenced from: 
/Applications/TeX/context-osx-64/tex/texmf-osx-64/bin/context (which was built 
for Mac OS X 12.7)
  Expected in: /usr/lib/libSystem.B.dylib

/bin/bash: line 2:  1569 Abort trap: 6   context TestCode.tex
context TestCode.tex
dyld: lazy symbol binding failed: Symbol not found: chkstk_darwin
  Referenced from: 
/Applications/TeX/context-osx-64/tex/texmf-osx-64/bin/context (which was built 
for Mac OS X 12.7)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: chkstk_darwin
  Referenced from: 
/Applications/TeX/context-osx-64/tex/texmf-osx-64/bin/context (which was built 
for Mac OS X 12.7)
  Expected in: /usr/lib/libSystem.B.dylib

/bin/bash: line 4:  1579 Abort trap: 6   context TestCode.tex
===

Trying to install again, I get:


sh install.sh
dyld: lazy symbol binding failed: Symbol not found: chkstk_darwin
  Referenced from: /Applications/TeX/context-osx-64/bin/mtxrun (which was built 
for Mac OS X 12.7)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: chkstk_darwin
  Referenced from: /Applications/TeX/context-osx-64/bin/mtxrun (which was built 
for Mac OS X 12.7)
  Expected in: /usr/lib/libSystem.B.dylib

install.sh: line 105:  1693 Abort trap: 6   $PWD/bin/mtxrun --script 
./bin/mtx-install.lua --update --server="$LMTXSERVER" 
--instance="$LMTXINSTANCE" --platform="$PLATFORM" --erase --extras="$LMTXEXTRAS"

==


What can I do?

Do I have to reinstall an older version? How can I do this?

Desperately,

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Best way to input UTF-8

2024-02-18 Thread Marco Patzer
On Sun, 18 Feb 2024 22:12:25 +0530
Shiv Shankar Dayal  wrote:

> What is the best way to input UTF-8 in LuaMetaTex?

“Best” is subjective. What might be a good way for me might not be
your preferred way.

LuaMetaTex doesn't care at all *how* you input the characters into
your text editor. The characters end up in the tex file and that's
what's processed by context.

  \starttext
Ωµ±åö←§…
  \stoptext

Methods:

  - custom keyboard layout (my preferred way)
  - compose key
  - symbol input tables (provided by your OS)
  - copy-pasting symbols from somewhere else
  - …

> If I use the UTF-8 characters then do not come out in text with
> Modern font.

You need to select a font containing the characters you need. Or set
up a fallback for a certain range:

  https://wiki.contextgarden.net/Command/definefallbackfamily

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] lmt_shade fails

2024-02-18 Thread Keith McKay

Hi all

I went to use the lmt_shade function and it fails with two error 
messages. the first one is:


/metafun > log > error: Not a cycle/
followed by lots of trace messages, then:
/metafun > log > That contour should have ended with '.. cycle' or '& 
cycle'. So I'll not change/

/anything just now./
//
The MWE I used is as follows:
\starttext
\startMPpage
definecolor [ name = "MyColor3", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1) ] ;
definecolor [ name = "MyColor4", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1) ] ;

draw lmt_shade [
path = fullsquare scaled 5cm,
direction = "up",
alternative = "linear",
colors = { "red", "green" },
];
\stopMPpage
\stoptext

 I'm using:

/system  > ConTeXt  ver: 2024.02.14 13:38 LMTX  fmt: 2024.2.15  
int: english/english/


on a mac mini M1.

Any thougths?

Best wishes

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Best way to input UTF-8

2024-02-18 Thread Shiv Shankar Dayal
Hi all,

What is the best way to input UTF-8 in LuaMetaTex? If I use the UTF-8
characters then do not come out in text with Modern font.

-- 
Respect,
Shiv Shankar Dayal
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___