Re: [NTG-context] new upload

2022-01-21 Thread kauśika via ntg-context
On Saturday, January 22, 2022 1:07:22 PM IST Richard Mahoney via ntg-context 
wrote:
> I'm wondering, how have you found the new
> input/translation method with "Shobhika Regular," a font a few of us
> might be keen to use?

I have myself been using Shobhika with relative success for quite some time 
now. Due to its great conjunct support, it is a good font as well. In ConTeXt 
it is advisable to use it with the deva script tag. So, with 
features=devanagari-one

Please note that it is missing some IAST glyphs
ḻ (=ळ) l̥ ,are just two examples.
[For roman transliteration (IAST), I have seen that the Brill font has very 
good glyph coverage but it does not have vedic accents IIRC.]

However, there is one (minor) issue in the devanagari side of things:
See here (long read): 
https://www.mail-archive.com/ntg-context@ntg.nl/msg99691.html

TLDR: there are one set of conjuncts which don't work right-away, namely the 
र-based conjunct forms with the following consonant: छ, ट, ठ, ड, ढ with post-
base and below-base vowel marks, namely  ी, ा, ौ,  ु  and   ू 
For example छ्री will not render as expected in ConTeXt (with devanagari-one). 
To 
fix this one can temporarily switch to the devanagari-two feature set as 
follows
{\feature[=][devanagari-two] छ्री}
which can be wrapped into a macro.

Otherwise, all the features work well.

Best,
kauśika


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

2022-01-21 Thread Richard Mahoney via ntg-context
Kauśika,

I've been following this thread and the related critical edition
thread
with some interest. I'm wondering, how have you found the new
input/translation method with "Shobhika Regular," a font a few of us
might be keen to use?


Best, Richard



-- 
T +6433121699  M +64210640216
rmaho...@indica-et-buddhica.org
https://indica-et-buddhica.org/

Indica et Buddhica
Littledene  Bay Road  Oxford  NZ




-Original Message-
From: kauśika via ntg-context 
Reply-To: mailing list for ConTeXt users 
To: Hans Hagen via ntg-context 
Cc: kauśika , Aditya Mahajan via ntg-context

Subject: Re: [NTG-context] new upload
Date: Sat, 22 Jan 2022 12:51:51 +0530
X-Spam-Score: 0.0

On Saturday, January 22, 2022 11:36:57 AM IST Aditya Mahajan via ntg-
context 
wrote:
> I finally thought that I'd try out how typesetting Hindi works with
> ConTeXt,
> but I don't get the correct output.
> 
> Input: आदित्य (See complete attached file)
> 
> Output: See attached.
> 
> Note that ि  "vowel sign I" should be attached to  द "letter  da"
> but it is
> attached to  य "letter ya". Do I need to enable a particular
> feature?

Unfortunately some fonts don't work properly in ConTeXt. Noto Sans
Devanagari 
is one of them. The accompanying serif font (Noto Serif Devanagari)
works just 
fine (mostly, there are problems with that as well). 

In this specific case, there does not seem to be any fix (at least
that I could 
find).

I am trying to test many fonts and come up with a list of fonts which
work, 
partially work, don't work, etc. and fixes wherever possible.

kauśika


__
_
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] new upload

2022-01-21 Thread kauśika via ntg-context
On Saturday, January 22, 2022 11:36:57 AM IST Aditya Mahajan via ntg-context 
wrote:
> I finally thought that I'd try out how typesetting Hindi works with ConTeXt,
> but I don't get the correct output.
> 
> Input: आदित्य (See complete attached file)
> 
> Output: See attached.
> 
> Note that ि  "vowel sign I" should be attached to  द "letter  da" but it is
> attached to  य "letter ya". Do I need to enable a particular feature?

Unfortunately some fonts don't work properly in ConTeXt. Noto Sans Devanagari 
is one of them. The accompanying serif font (Noto Serif Devanagari) works just 
fine (mostly, there are problems with that as well). 

In this specific case, there does not seem to be any fix (at least that I could 
find).

I am trying to test many fonts and come up with a list of fonts which work, 
partially work, don't work, etc. and fixes wherever possible.

kauśika


___
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] Engine mismatch in Windows 8.1 (32 bits)

2022-01-21 Thread Jairo A. del Rio via ntg-context
Hi everyone! I've just installed ConTeXt on an old machine running Windows
8.1 (x86) and I've noticed the format is regenerated each time I process a
file. It can be read on the log (third line):

warning: engine mismatch (luv: This is LuaMetaTeX 2.09.36 <> bin: This is
LuaMetaTeX 2.09.34), forcing remake

grep -r '09.34' finds a coincidence in mtxrun.exe. Is anyone else facing
this issue?

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

2022-01-21 Thread Aditya Mahajan via ntg-context
On Fri, 21 Jan 2022, Hans Hagen via ntg-context wrote:

> - initial indic transliteration support .. recent indic (font) 
> experiences and transliteration tricks will be eplained by kauśika

I finally thought that I'd try out how typesetting Hindi works with ConTeXt, 
but I don't get the correct output.

Input: आदित्य (See complete attached file)

Output: See attached.

Note that ि  "vowel sign I" should be attached to  द "letter  da" but it is 
attached to  य "letter ya". Do I need to enable a particular feature?

Thanks,
Aditya

test.tex
Description: TeX document


test.pdf
Description: Adobe PDF document
___
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] Font scaling via sa in LMTX

2022-01-21 Thread Rik Kabel via ntg-context


On 2022-01-19 13:34, Hans Hagen wrote:

On 1/19/2022 6:24 PM, Rik Kabel wrote:

On 2021-12-01 10:40, Hans Hagen wrote:

On 11/30/2021 9:36 PM, Rik Kabel via ntg-context wrote:

Hello list,

It seems that font scaling to a letter is not working consistently 
in LMTX.


This example:

    \definefont[TitleA][Sans sa a]
    \definefont[TitleAB][Sansbold sa a]
    \starttext
    {\ssa This is ssa \TitleA and this is TitleA}\par
    {\ssbf This is ssbf \TitleAB and this is TitleAB}\par
    \contextbanner
    \stoptext

Produces different relevant output with each engine.

I suppose one could use numeric values instead of defined font size 
letters as a work-around, but that means lack of coordination with 
custom sizes in \definebodyfontenvironment.


fixed in the next upload (which is a bit experimental in the sense 
that some low level consistency renaming happened which always has 
the danger of disabling some feature)


Hans


This is still a problem using yesterday's upload.

I'll check it but you anyway need SansBold (B)


Thank you for the fix.
___
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] new upload

2022-01-21 Thread Henning Hraban Ramm via ntg-context

Am 21.01.22 um 20:28 schrieb Hans Hagen via ntg-context:
so we can have fixed values too .. will be explained in due time by 
Mikael (in manual) as we're still experimenting with all this


- initial indic transliteration support .. recent indic (font) 
experiences and transliteration tricks will be eplained by kauśika


I’m hoping for presentations / articles!

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

2022-01-21 Thread Hans Hagen via ntg-context

Hi,

Weekend uoload:

- more math parameter magic (plus a real ancient bug no one noticed fix):

\newdimen \mydimenA  \mydimenA 10pt
\newskip  \myskipA   \myskipA  10pt
\newmuskip\mymuskipA \mymuskipA10mu
\mugluespecdef\mymuskipB   10mu

\inherited\Umathfracfracspacing\allmathstyles \mydimenA  % dynamic
\inherited\Umathfracfracspacing\allmathstyles \mymuskipA % dynamic
\inherited\Umathfracfracspacing\allmathstyles \myskipA   % dynamic
\Umathfracfracspacing\allmathstyles\mymuskipA% frozen

% \alltextstyles \allscriptstyles \allmathstyles \allsplitstyles
% \resetmathstyles

\starttext
\startTEXpage[offset=3bp]
$\displaystyle\mathfrac {x}\mathfrac {x}$\par
$\textstyle   \mathfrac {x}\mathfrac {x}$\par
$\scriptstyle \mathfrac {x}\mathfrac {x}$\par
\stopTEXpage
\stoptext

so we can have fixed values too .. will be explained in due time by 
Mikael (in manual) as we're still experimenting with all this


- initial indic transliteration support .. recent indic (font) 
experiences and transliteration tricks will be eplained by kauśika


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] withcolor does not apply when anglestriped

2022-01-21 Thread Damien Thiriet via ntg-context
Thanks Hans,

I like very much your (meta)fun answers, since it
is less magic and more understandable for me. 
Let's play with it now…

Damien Thiriet

On Fri, Jan 21, 2022 at 01:01:23AM +0100, Hans Hagen wrote:
> 
> but this is way more (meta)fun:
> 
> draw (fullsquare scaled 4cm)
> withpattern image (
>   draw (bottomboundary p) rotated -60
>   withcolor "darkblue" ;
> )
> withpatternscale (1/10,1/10)
> withpen pencircle scaled 1mm
> ;
> 
> (examples in the test suite)
> 
> 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] Iterating over MP paths (was: Fuzzy lines)

2022-01-21 Thread Henning Hraban Ramm via ntg-context

Am 03.09.21 um 18:04 schrieb Henning Hraban Ramm via ntg-context:

Would it make sense to check if a point is an edge point (without curve 
controls)?


In a private reply to my old message, Hans explained to me why this was 
not possible like I thought (check if the point has control points), 
since every point has control points.


But I didn’t keep at it last fall, and the MP foo is still weak in this 
one, so, let’s try again:



If I iterate over the points of a path like in

beginfig(1);
path p;
p = (0,0) .. (2cm,4cm) -- (4cm,5cm) .. (5cm,6cm) .. (8cm,7cm);
draw p withpen pencircle scaled 2pt withcolor .7 white;
for t=0 upto length p:
  drawdot point t of p withpen pencircle scaled 4pt withcolor red;
endfor
endfig;

[2]
How can I check if the point is an edge?
(I want to randomize only the non-edge points.)

1. First or last point: if t=0 or t=length p.
   ... if the path is not closed: if not cycle p.
OK

2. Would it make sense to check curl or tension?
   Can I check if the connection is specified as -- ?
??

[2]
Other question on the examples from 
https://tex.stackexchange.com/questions/288259/how-to-draw-dots-equally-spaced-along-a-path, 
in the answer by Thruston:


I want to split the path between (edge) points in segments of the same 
length. So disregarding the "edge" issue for now, how do I get at the 
path segment between points (in the for loop above) so that I can use it 
as a new path q in:


for t=0 step s until arclength q:
  drawdot point arctime t of q of q withpen pencircle scaled 4pt 
withcolor red;

endfor

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] Reset environment between MetaPost graphics?

2022-01-21 Thread Vincent Hennebert via ntg-context
On Thu, 2022-01-20 at 15:47 +0100, Hans Hagen via ntg-context wrote:
> On 1/20/2022 3:26 PM, Aditya Mahajan via ntg-context wrote:
> 
> > AFAIK, there is no in-built support for this.
> 
> FYEO:
> 
> \starttext
> 
> \startMPcode
>  u = 123;
> \stopMPcode
> 
> \ctxlua{metapost.reset("metafun:1")}
> 
> \startMPcode
>  u = 123;
> \stopMPcode
> 
> \stoptext
> 
> (the instance is reported on the console)

Thanks Aditya and Hans! Glad to hear I wasn’t missing anything obvious.

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