Re: [NTG-context] Unicode normalization and Hebrew in ConTeXt

2021-08-17 Thread Joey McCollum via ntg-context
Thankfully, it looks like this was just a problem with my implementation of
the OpenType feature and not with ConTeXt's handling of it! (I worried that
it might be ConTeXt when I saw that XeLaTeX was handing the feature
correctly.) Hans graciously helped me identify the problem, and everything
looks good now!

Joey

On Tue, Aug 17, 2021 at 8:56 AM Joey McCollum 
wrote:

> Shouldn't dlig automatically be enabled under the "hebrew" feature set? In
> font-pre.mkiv, hebrew inherits from semitic-complete, which sets dlig=yes.
>
> Still, if I explicitly add dlig, as in the following example, things
> change, but they still aren't right:
>
> ```
>
> \starttypescriptcollection[keteryg]
>
> \starttypescript[serif][keteryg]
>
> \definefontsynonym[Serif][file:../fonts/KeterYG/KeterYG-Medium.ttf][features=hebrew]
> % all the necessary Hebrew features, including dlig
>
> \stoptypescript
>
>
> \starttypescript[keteryg]
>
> \definetypeface[keteryg][rm][serif][keteryg][default]
>
> \stoptypescript
>
> \stoptypescriptcollection
>
>
> %Set up the main font:
>
> \setupbodyfont[keteryg]
>
> %Set up right-to-left alignment:
>
> \setupalign[r2l]
>
> %Explicitly add dlig (in case it wasn't there already):
>
> \definefontfeature[plus-dlig][dlig=yes]
>
>
> \starttext
>
> \addff{plus-dlig}
>
> שֹׂבַע
>
> עָשׂוֹר
>
> קֹשֶׁט
>
> שֹׁשַׁנִּים
>
> עָשׂוֹר
>
> מֹשֶׁה
>
> שַׁלֹשׁ
>
> \stoptext ``` In examples 1, 3, 4, and 6, the *holam *of the preceding
> letter (which should have been stripped in the contextual substitution)
> just seems to have been moved farther up. In fact, the output looks like it
> would look if I turned off the reordercombining feature. (And indeed, if I
> manually reorder the glyphs to the Hebrew Layout Intelligence order, then
> the results look like they did when I just used the "hebrew" feature.)
>
>
> I may have forgotten to attach the font file I was using for this test. If
> that is the case, it is available at
> https://github.com/jjmccollum/Keter-YG.
>
>
> Joey
>
> On Tue, Aug 17, 2021 at 5:19 AM Hans Hagen  wrote:
>
>> On 8/17/2021 2:07 AM, Joey McCollum wrote:
>>
>> > Sorry to bring this up after over a year, but I just noticed something
>> > that doesn't seem right. I implemented some contextual substitutions in
>> > my own fork of the Keter YG Hebrew font (.ttf file attached) under the
>> > "dlig" feature that should do the following two things:
>> but you don't enable dlig
>>
>> -
>>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] file to buffer

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

On 8/17/2021 8:44 PM, Wolfgang Schuster via ntg-context wrote:

Hans van der Meer via ntg-context schrieb am 17.08.2021 um 15:15:
Is it possible to retrieve the contents of a file directly into a 
buffer? On the Wiki I could not find such a command. That is, 
equivalent to something like:

\startbuffer[from file]
contents of the file
\stopbuffer


Yes and no. The \samplefile command used to read file for example
stores the content of a file in a buffer to avoid rereading the file each
time the content is output but there is no way to suppress the output
neither to change the name of the buffer.

\starttext

\startnointerference
\samplefile{knuth}
\stopnointerference

\typebuffer[knuth]

\getbuffer[knuth]

\stoptext

\starttext

\ctxlua{buffers.assign(
"hvdm-is-not-afraid-of-some-lua",
io.loaddata(resolvers.findfile("tufte.tex"))
)}

\typebuffer[hvdm-is-not-afraid-of-some-lua]

\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 / 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] file to buffer

2021-08-17 Thread Wolfgang Schuster via ntg-context

Hans van der Meer via ntg-context schrieb am 17.08.2021 um 15:15:
Is it possible to retrieve the contents of a file directly into a 
buffer? On the Wiki I could not find such a command. That is, 
equivalent to something like:

\startbuffer[from file]
contents of the file
\stopbuffer


Yes and no. The \samplefile command used to read file for example
stores the content of a file in a buffer to avoid rereading the file each
time the content is output but there is no way to suppress the output
neither to change the name of the buffer.

\starttext

\startnointerference
\samplefile{knuth}
\stopnointerference

\typebuffer[knuth]

\getbuffer[knuth]

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


Re: [NTG-context] lua

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

On 8/17/2021 4:47 PM, Taco Hoekwater via ntg-context wrote:

Hi Hans,


On 17 Aug 2021, at 16:39, Hans van der Meer via ntg-context 
 wrote:

I am still interested in this luacondition 733 allthough the culprit has been 
spotted. Very nasty typo and hard to spot fo me.


The “luacondition 733” is the \ifxmlatt . You get these numbers because the 
command is
defined using lua ‘interfaces.implement’ (lxml-ini.lua) instead of directly as 
a TeX conditional.

And yes indeed, the new lua-defined commands are hard to derive from the log 
information
(for the other Hans: is this reporting not controlled via ‘public=true’ ? ).
no, that's just namespacing, but we have a trick that can be used to 
resolve it and I simply hadn't that one plugged into the conditions 
stuff (only in functions) ... so i did that and next time HvdM will see:


(\end occurred when luacondition \ifxmlatt on line 13 was incomplete)

although of course he will never make that mistake again so he will not 
notice this new feature


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] lua

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

On 8/17/2021 4:39 PM, Hans van der Meer via ntg-context wrote:
I am still interested in this luacondition 733 allthough the culprit has 
been spotted. Very nasty typo and hard to spot fo me.

Shudder and enjoy:

\ifxmlatt{#1}{regime}{xml}\let\Flush\ModuleFlushXML\else\let\FlushModuleFlushTEX\fi


wel, that let something to \fi and thereby gobles the \fi so you never 
end \ifxmlatt



instead of
\ifxmlatt{#1}{regime}{xml}\let\Flush\ModuleFlushXML\else\let\FlushModule\FlushTEX\fi

dr. Hans van der Meer


On 17 Aug 2021, at 15:49, Hans van der Meer via ntg-context 
mailto:ntg-context@ntg.nl>> wrote:


Where is this message on luacondition 733 coming from? I would be glad 
to get rid of it. The message does not pinpoint the problem location 
enough for me to find its cause.


close source    > level 2, order 7, name './modules-docs.tex'
close source    > level 1, order 7, name 'cont-yes.mkiv'
(\end occurred when luacondition 733 on line 8 was incomplete)


dr. Hans van der Meer


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




--

-
  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] lua

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

On 8/17/2021 3:49 PM, Hans van der Meer via ntg-context wrote:
Where is this message on luacondition 733 coming from? I would be glad 
to get rid of it. The message does not pinpoint the problem location 
enough for me to find its cause.


close source    > level 2, order 7, name './modules-docs.tex'
close source    > level 1, order 7, name 'cont-yes.mkiv'
(\end occurred when luacondition 733 on line 8 was incomplete)

quite likely a missing \fi

-
  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] Using Lua to format lecture titles

2021-08-17 Thread Wolfgang Schuster via ntg-context

noib3 via ntg-context schrieb am 17.08.2021 um 16:43:
I'm trying to create a new lecture environment starting from the base 
section.


I'd like its title to be `Lecture : ` if a title is 
provided, and `Lecture ` if it isn't. This title should also be 
reported in the left footer and in the table of contents.


This is the code I have so far:

[...]

Unfortunately none of them are reported correctly. The title in the body 
is formatted simply as `Lecture`, the one in the left footer is 
formatted as `Lecture`, and the one in the table of 
contents isn't affected at all.


Why do you need Lua to format the list entries and section titles?

\definehead
  [lecture]
  [section]

\define[1]\LectureTextCommand
  {\doiftext{#1}{: #1}}

\setuphead
  [lecture]
  [bodypartlabel=lecture,
   distance=0pt,
   textcommand=\LectureTextCommand,
   style=\bfc]

\setuplabeltext
  [en]
  [lecture={Lecture }]

\setupcombinedlist
  [content]
  [list={lecture}]

\define[3]\LectureListCommand
  {\labeltext{lecture}#1\doiftext{#2}{: #2}\filler[dotfill]#3\par}

\setuplist
  [lecture]
  [alternative=command,
   command=\LectureListCommand]

\startsetups [footer:left]
\labeltext{lecture} \getmarking[lecturenumber]
\doiftext{\getmarking[lecture]}{: \getmarking[lecture]}
\stopsetups

\setupfootertexts
  [\directsetup{footer:left}] []

\starttext

\completecontent

\startlecture [title={Foo}]
Foo bar baz
\stoplecture

\page

\startlecture
Foo bar baz
\stoplecture

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


Re: [NTG-context] lua

2021-08-17 Thread Taco Hoekwater via ntg-context
Hi Hans,

> On 17 Aug 2021, at 16:39, Hans van der Meer via ntg-context 
>  wrote:
> 
> I am still interested in this luacondition 733 allthough the culprit has been 
> spotted. Very nasty typo and hard to spot fo me. 

The “luacondition 733” is the \ifxmlatt . You get these numbers because the 
command is
defined using lua ‘interfaces.implement’ (lxml-ini.lua) instead of directly as 
a TeX conditional.

And yes indeed, the new lua-defined commands are hard to derive from the log 
information
(for the other Hans: is this reporting not controlled via ‘public=true’ ? ).

Best wishes,
Taco

> Shudder and enjoy:
> 
> \ifxmlatt{#1}{regime}{xml}\let\Flush\ModuleFlushXML\else\let\FlushModuleFlushTEX\fi
> instead of
> \ifxmlatt{#1}{regime}{xml}\let\Flush\ModuleFlushXML\else\let\FlushModule\FlushTEX\fi
> 
> dr. Hans van der Meer
> 
> 
>> On 17 Aug 2021, at 15:49, Hans van der Meer via ntg-context 
>>  wrote:
>> 
>> Where is this message on luacondition 733 coming from? I would be glad to 
>> get rid of it. The message does not pinpoint the problem location enough for 
>> me to find its cause.
>> 
>> close source> level 2, order 7, name './modules-docs.tex'
>> close source> level 1, order 7, name 'cont-yes.mkiv'
>> (\end occurred when luacondition 733 on line 8 was incomplete)
>> 
>> 
>> dr. Hans van der Meer
>> 
>> 
>> ___
>> 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
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Using Lua to format lecture titles

2021-08-17 Thread noib3 via ntg-context
I'm trying to create a new lecture environment starting from the base
section.

I'd like its title to be `Lecture : ` if a title is
provided, and `Lecture ` if it isn't. This title should also be
reported in the left footer and in the table of contents.

This is the code I have so far:

```
\definehead
  [lecture]
  [section]

\setuphead
  [lecture]
  [
command=\Lecture,
style=\bfc,
  ]

\setuplabeltext
  [lecture={Lecture}]

\define[2]\Lecture{\ctxlua{
  userdata.format_lecture_title({
label = context.labeltext('lecture'),
number = [==[#1]==],
title = [==[#2]==],
  })
}}

\setupfootertexts
  [\ctxlua{
userdata.format_lecture_title({
  label = context.labeltext('lecture'),
  number = context.getmarking({'lecturenumber'}),
  title = context.getmarking({'lecture'}),
})
  }]
  [pagenumber]

\startluacode
  userdata = userdata or {}

  function userdata.format_lecture_title(args)
if args.title and args.title ~= '' then
  context('%s %s: %s', args.label, args.number, args.title)
else
  context('%s %s', args.label, args.number)
end
  end
\stopluacode

\setupcombinedlist
  [content]
  [list={lecture}]

\setuplist
  [lecture]
  [
alternative=c,
command=\Lecture, % this seems to have no effect?
  ]

\starttext

\completecontent

% Both title and left footer should be 'Lecture 1: Foo'
\startlecture [title={Foo}]
Foo bar baz
\stoplecture

\page

% Both title and left footer should be 'Lecture 2'
\startlecture []
Foo bar baz
\stoplecture

\stoptext
```

Unfortunately none of them are reported correctly. The title in the body is
formatted simply as `Lecture`, the one in the left footer is formatted as
`Lecture`, and the one in the table of contents isn't
affected at all.

What am I doing wrong?
___
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] lua

2021-08-17 Thread Hans van der Meer via ntg-context
I am still interested in this luacondition 733 allthough the culprit has been 
spotted. Very nasty typo and hard to spot fo me. 
Shudder and enjoy:

\ifxmlatt{#1}{regime}{xml}\let\Flush\ModuleFlushXML\else\let\FlushModuleFlushTEX\fi
instead of
\ifxmlatt{#1}{regime}{xml}\let\Flush\ModuleFlushXML\else\let\FlushModule\FlushTEX\fi

dr. Hans van der Meer


> On 17 Aug 2021, at 15:49, Hans van der Meer via ntg-context 
>  wrote:
> 
> Where is this message on luacondition 733 coming from? I would be glad to get 
> rid of it. The message does not pinpoint the problem location enough for me 
> to find its cause.
> 
> close source> level 2, order 7, name './modules-docs.tex'
> close source> level 1, order 7, name 'cont-yes.mkiv'
> (\end occurred when luacondition 733 on line 8 was incomplete)
> 
> 
> dr. Hans van der Meer
> 
> 
> ___
> 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] compression for multimedia objects

2021-08-17 Thread Pablo Rodriguez via ntg-context
On 8/17/21 12:46 PM, Hans Hagen via ntg-context wrote:
> On 8/17/2021 6:06 AM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> I don’t know whether this is intended. In that case, could we have an
>> option to compress embedded multimedia objects?
>
> indeed intended because zipping already compressed files makes no sense
>
>> (I know that those mp4 files are crappy, but I can’t control the crap
>> others generate.)
> i'll add 'compress' to the options

Many thanks for the new option, Hans.

Pablo
--
http://www.ousia.tk
___
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] paper dimensions for TEXpage

2021-08-17 Thread Pablo Rodriguez via ntg-context
On 8/17/21 9:30 AM, Hans Hagen via ntg-context wrote:
> On 8/17/2021 5:56 AM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> I don’t get the layer in the TEXpage.
>>
>> How could I get it with the TEXpage dimensions?
> only by first boxing (using framed or so) and then taking those dimensions

Many thanks for your reply, Hans.

I’m afraid I don’t know how to make the commands work:

  \setupexternalfigures[location=default]
  \definelayer[hi]
   [x=.5\dimexpr\framedwidth\relax, y=.5\dimexpr\framedheight\relax]
  \setupbackgrounds[page][background={foreground, hi}]
  \starttext
  \startTEXpage
  \framed[frame=off, offset=none]
  {\setlayer[hi]{\color[red]{hi}}
  \externalfigure[cow-brown]\framedheight}
  \stopTEXpage
  \stoptext

In this case, \getfiguredimensions would work, but I don’t know how to
deal with a pure text box.

BTW, is there a way to have TEXpages numbered? "pagestate=start" seems
not to work here.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] lua

2021-08-17 Thread Hans van der Meer via ntg-context
Where is this message on luacondition 733 coming from? I would be glad to get 
rid of it. The message does not pinpoint the problem location enough for me to 
find its cause.

close source> level 2, order 7, name './modules-docs.tex'
close source> level 1, order 7, name 'cont-yes.mkiv'
(\end occurred when luacondition 733 on line 8 was incomplete)


dr. Hans van der Meer


___
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] file to buffer

2021-08-17 Thread Hans van der Meer via ntg-context
Is it possible to retrieve the contents of a file directly into a buffer? On 
the Wiki I could not find such a command. That is, equivalent to something like:
\startbuffer[from file]
contents of the file
\stopbuffer

dr. Hans van der Meer


___
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] Unicode normalization and Hebrew in ConTeXt

2021-08-17 Thread Joey McCollum via ntg-context
Shouldn't dlig automatically be enabled under the "hebrew" feature set? In
font-pre.mkiv, hebrew inherits from semitic-complete, which sets dlig=yes.

Still, if I explicitly add dlig, as in the following example, things
change, but they still aren't right:

```

\starttypescriptcollection[keteryg]

\starttypescript[serif][keteryg]

\definefontsynonym[Serif][file:../fonts/KeterYG/KeterYG-Medium.ttf][features=hebrew]
% all the necessary Hebrew features, including dlig

\stoptypescript


\starttypescript[keteryg]

\definetypeface[keteryg][rm][serif][keteryg][default]

\stoptypescript

\stoptypescriptcollection


%Set up the main font:

\setupbodyfont[keteryg]

%Set up right-to-left alignment:

\setupalign[r2l]

%Explicitly add dlig (in case it wasn't there already):

\definefontfeature[plus-dlig][dlig=yes]


\starttext

\addff{plus-dlig}

שֹׂבַע

עָשׂוֹר

קֹשֶׁט

שֹׁשַׁנִּים

עָשׂוֹר

מֹשֶׁה

שַׁלֹשׁ

\stoptext ``` In examples 1, 3, 4, and 6, the *holam *of the preceding
letter (which should have been stripped in the contextual substitution)
just seems to have been moved farther up. In fact, the output looks like it
would look if I turned off the reordercombining feature. (And indeed, if I
manually reorder the glyphs to the Hebrew Layout Intelligence order, then
the results look like they did when I just used the "hebrew" feature.)


I may have forgotten to attach the font file I was using for this test. If
that is the case, it is available at https://github.com/jjmccollum/Keter-YG.


Joey

On Tue, Aug 17, 2021 at 5:19 AM Hans Hagen  wrote:

> On 8/17/2021 2:07 AM, Joey McCollum wrote:
>
> > Sorry to bring this up after over a year, but I just noticed something
> > that doesn't seem right. I implemented some contextual substitutions in
> > my own fork of the Keter YG Hebrew font (.ttf file attached) under the
> > "dlig" feature that should do the following two things:
> but you don't enable dlig
>
> -
>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] compression for multimedia objects

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

On 8/17/2021 6:06 AM, Pablo Rodriguez via ntg-context wrote:

Hi Hans,

some days ago (after the patch from
https://mailman.ntg.nl/pipermail/ntg-context/2021/103011.html), I
included two mp4 files in a PDF document.

They where so generated, that they could be compressed in a zip file
from 254MB into less than 25MB. The resulting PDF file was less than 25MB.

With the current latest, compression for multimedia objects is disabled.
The same PDF document takes about 254MB.

I don’t know whether this is intended. In that case, could we have an
option to compress embedded multimedia objects?


indeed intended because zipping already compressed files makes no sense


(I know that those mp4 files are crappy, but I can’t control the crap
others generate.)

i'll add 'compress' to the options

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] Unicode normalization and Hebrew in ConTeXt

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

On 8/17/2021 2:07 AM, Joey McCollum wrote:

Sorry to bring this up after over a year, but I just noticed something 
that doesn't seem right. I implemented some contextual substitutions in 
my own fork of the Keter YG Hebrew font (.ttf file attached) under the 
"dlig" feature that should do the following two things:

but you don't enable dlig

-
  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] paper dimensions for TEXpage

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

On 8/17/2021 5:56 AM, Pablo Rodriguez via ntg-context wrote:

Dear list,

I have the following sample:

   \definelayer[hi][x=.5\paperwidth, y=.5\paperheight]
   \setupbackgrounds[page][background=hi]
   \starttext
   \setlayer[hi]{hi}
   \startTEXpage[offset=10em]
   \null
   \stopTEXpage
   \stoptext

I don’t get the layer in the TEXpage.

How could I get it with the TEXpage dimensions?

only by first boxing (using framed or so) and then taking those dimensions

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