[NTG-context] compression for multimedia objects
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? (I know that those mp4 files are crappy, but I can’t control the crap others generate.) 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] paper dimensions for TEXpage
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? 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 ___
Re: [NTG-context] Unicode normalization and Hebrew in ConTeXt
Hans, 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: 1. If a *shin *with a *sin *dot (שׂ) is pointed with a *holam *(the vowel point placed high and on the left), then the *shin*, *sin *dot, and *holam *are combined into a single ligature that depicts the *sin *dot and *holam *merged into a single point. 2. If a *shin *with a *shin *dot (שׁ) follows another letter pointed with a *holam *(except for *vav*, which must be pointed with a *holam haser*), then the shin and shin dot are replaced with a ligature that moves the *shin* dot a bit to the right (so that it appears to be merged with the preceding *holam*), and the combination of the preceding letter and the actual holam is changed to just the preceding letter (thus effectively stripping the old *holam*). I've tested both of these features in FontForge, and they work as expected there. Likewise, if I test them in the following XeLaTeX script, XeLaTeX handles both rules correctly: ``` \documentclass{article} %Set fonts and font features: \usepackage{fontspec} \setmainfont[Path=../fonts/KeterYG/, UprightFont = *-Medium, Script=Hebrew, Ligatures=Discretionary]{KeterYG} % I'm using a local copy of the attached font \begin{document} שֹׂבַע עָשׂוֹר קֹשֶׁט שֹׁשַׁנִּים עָשׂוֹר מֹשֶׁה שַׁלֹשׁ \end{document} ``` But in ConTeXt, only rule (1) above works as expected. Here is a minimal (non-)working example: ``` \starttypescriptcollection[keteryg] \starttypescript[serif][keteryg] \definefontsynonym[Serif][file:../fonts/KeterYG/KeterYG-Medium.ttf][features=hebrew] % use a local copy of the attached font, with all the necessary Hebrew features (this includes dlig by default) \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] \starttext שֹׂבַע עָשׂוֹר קֹשֶׁט שֹׁשַׁנִּים עָשׂוֹר מֹשֶׁה שַׁלֹשׁ \stoptext ``` In examples 3, 4, 6, and 7, the *holam *dot still appears before the *shin* -with-merged-*shin*-dot-and-*holam *ligature, when it should be absent. (I realize that it may be difficult to tell; in the last two examples, the presence of two dots is easier to make out.) Do you have any idea why this might be happening in ConTeXt? Does the glyph reordering in font-imp-combining.lua take place before any OpenType features in the font are applied? Thanks again! Joey On Thu, Apr 30, 2020 at 4:17 PM Joey McCollum wrote: > Okay! I have not figured out how to add a new page to the wiki, but I was > able to add a section to the end of the "Arabic and Hebrew" page ( > https://www.contextgarden.net/Arabic_and_Hebrew) discussing the issue, > providing a test, and briefly describing the fix. > > Joey > > On Thu, Apr 30, 2020 at 11:14 AM Hans Hagen wrote: > >> On 4/30/2020 4:28 PM, Joey McCollum wrote: >> > Thanks so much, Hans! I should be able to add a wiki page summarizing >> > the tests before the end of the week. >> > >> > For reference purposes, do you know which version of ConTeXt has (or >> > will have) this update included? >> todays upload >> >> >> - >>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] How not to display the header of the chapter page on the page with the table of contents ?
Fabrice Couvreur via ntg-context schrieb am 16.08.2021 um 12:18: Hi Wolfgang, Pablo's solution works, but I tried yours without success. Here are the main lines of my project begin project \startproject[terminale-environment] \environment[terminale-style] ... \stopproject end project Do you need a project file? begin component \project[terminale-environment] \startcomponent[terminale_recurrence] ... \endcomponent end component You ignored the order for \startcomponent and \project. The environment (or project) file has to be loaded *after* \startcomponent, otherwise the *component mode is set after the style is already loaded. 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] Adjustment in the table of contents
Fabrice Couvreur via ntg-context schrieb am 16.08.2021 um 11:24: Hi, I wish to have the table of contents as the attached image. The result is almost as expected except for the margin of the subsection. \setuplist [chapter,section,subsection] [width=fit,distance=\spaceamount] \setuplist [chapter] [alternative=b] \setuplist [chapter][style=bold] \setuplist [section] [margin=1em] \setuplist [subsection] [margin=2.75em] Use fixed values for the width. \setuplist [chapter] [width=1em] \setuplist [section] [margin=1em,% chapter width width=1.75em] \setuplist [subsection] [margin=2.75em,% chapter width + section width width=2em] 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] Strange behavior of a macro
On 8/16/2021 4:28 PM, Fabrice Couvreur via ntg-context wrote: Hello, I don't understand why this macro works with this simple example but return the following error if I use it for chapters in my book. Thanks Fabrice \setupbodyfont [newcomputermodern-book,11pt] \unexpanded\def\N{\math{\mathbb{N}}\autoinsertnextspace} \defineenumeration [test] [title=yes, text={Test}, style=italic] \starttext \N \starttest \m{\forall n \in \N} \stoptest \stoptext tex error > tex error on line 64 in file ./terminale_suites_2.tex: Use of \N doesn't match its definition maybe it gets redefined someplace? just before the error you can say \show\N or \meaning\N or \tracingall and see what the machinery expects - 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 ___
[NTG-context] Strange behavior of a macro
Hello, I don't understand why this macro works with this simple example but return the following error if I use it for chapters in my book. Thanks Fabrice \setupbodyfont [newcomputermodern-book,11pt] \unexpanded\def\N{\math{\mathbb{N}}\autoinsertnextspace} \defineenumeration [test] [title=yes, text={Test}, style=italic] \starttext \N \starttest \m{\forall n \in \N} \stoptest \stoptext tex error > tex error on line 64 in file ./terminale_suites_2.tex: Use of \N doesn't match its definition Soient \u, \v deux suites définies sur \N, \m{l} et \m{l'} deux réels. 54 \startitem 55 \u converge vers \m{l}, 56 \stopitem 57 \stopitemize 58 alors \m{l\geqslant 0}. 59 \stopproposition 60 \startremarque 61 Nous retiendrons que le passage à la limite sur une inégalité stricte restitue une inégalité large. 62 \stopremarque 63 \startcorollaire 64 >>Soient \u, \v deux suites définies sur \N, \m{l} et \m{l'} deux réels. 65 66 Si 67 68 \startitemize 69 \startitem 70 les suites \u et \v convergent respectivement vers \m{l} et \m{l'}, 71 \stopitem 72 \startitem 73 \m{\forall n \in\mathbb{N}, \thinspace u_n>v_n}, 74 \stopitem If you say, e.g., '\def\a1{...}', then you must always put '1' after '\a', since control sequence names are made up of letters only. The macro here has not been followed by the required stuff, so I'm ignoring it. mtx-context | fatal error: return code: 256 ___ 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] result saved in file: ./file.pdf
On 8/16/2021 1:46 PM, Peter Münster via ntg-context wrote: Hi, The latest version of ConTeXt writes "result saved in file: ./file.pdf" instead of "saved in file: file.pdf", that breaks the error-checker of AucTeX. Is this wanted? Or are you going to change it back to a filename without the "./"? i can strip that but technically it's the same 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] compatibility with AucTeX (was: result saved in file: ./file.pdf)
On 8/16/2021 2:18 PM, Peter Münster via ntg-context wrote: On Mon, Aug 16 2021, Peter Münster via ntg-context wrote: that breaks the error-checker of AucTeX. No, sorry. It's something else, that breaks it: lines, that begin like "4:5: [glue]<1: ...". Such lines look like errors to AucTeX. What does "4:5" mean? Is this going to change? it has been like that for a while ... it means: grouplevel:inputlevel (and actually i added :catcodetable too) if you don't want that you can say: \tracinglevels\zerocount you can set bits 1 : grouplevel 2 : inputlevel 4 : catcodetable but anyway, logging is more granular on the one hand and more compact on the other and that is not going to change (we have way more relevant info in lua(metatex) available and opening up with lua also means that we need to report a bit more) (just try \tracingall) 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 ___
[NTG-context] '--noconsole' or '--batchmode` still logs to console? | 1.04 Aug-10 version
Hi, I noticed that (in the latest version) that context command with '--batchmode' or '--noconsole` still logs to the console? Not sure if this is a regression issue. I am using the 1.04 Aug-10 version. best regards, Ramkumar ___ 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] compatibility with AucTeX (was: result saved in file: ./file.pdf)
On Mon, Aug 16 2021, Peter Münster via ntg-context wrote: > that breaks the error-checker of AucTeX. No, sorry. It's something else, that breaks it: lines, that begin like "4:5: [glue]<1: ...". Such lines look like errors to AucTeX. What does "4:5" mean? Is this going to change? TIA, -- Peter ___ 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] result saved in file: ./file.pdf
Hi, The latest version of ConTeXt writes "result saved in file: ./file.pdf" instead of "saved in file: file.pdf", that breaks the error-checker of AucTeX. Is this wanted? Or are you going to change it back to a filename without the "./"? TIA, -- Peter ___ 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] How not to display the header of the chapter page on the page with the table of contents ?
Hi Wolfgang, Pablo's solution works, but I tried yours without success. Here are the main lines of my project begin product \startproduct[terminale-manual] \project[terminale-environment] \startdocument \startfrontmatter ... \stopfrontmatter \startbodymatter \component[terminale_recurrence] ... \stopbodymatter \stopdocument \stopproduct end product begin project \startproject[terminale-environment] \environment[terminale-style] ... \stopproject end project begin component \project[terminale-environment] \startcomponent[terminale_recurrence] ... \endcomponent end component begin environment \startenvironment[terminale-style] ... \startsetups [section:chapter] \setuphead [chapter] [align=flushright, textcommand=\groupedcommand{\blank[medium]}{}, numbercolor=darkgray, textstyle=ChapterTextStyle, numberstyle=ChapterNumberStyle, before=\startChapterFrame, after=\stopChapterFrame, header=high] \stopsetups \startsectionblockenvironment [bodypart] \directsetup{section:chapter} \stopsectionblockenvironment \doifmode{*component}{\directsetup{section:chapter}} ... \endenvironment end environment Le dim. 15 août 2021 à 19:03, Wolfgang Schuster via ntg-context < ntg-context@ntg.nl> a écrit : > Pablo Rodriguez via ntg-context schrieb am 15.08.2021 um 18:33: > > On 8/15/21 6:02 PM, Fabrice Couvreur via ntg-context wrote: > >> A small note : this method works if I compile the project but if I > >> compile only one chapter, the header no longer appears. > > Hi Fabrice, > > > > I have never used projects and chapters (or whatever the right name is). > > > > I’m not sure I get what you’re experiencing: with a single chapter, do > > you have the fancy layout or not? > > > > It would make sense that the fancy chapter doesn’t appear only compiling > > a chapter. I guess there is no \startbodymatter...\stopbodymatter > > wrapping it. > > > > Another approach would be: > > > > [...] > > Setting values for \title is a way to avoid the chapter setup for the > table of contents etc. > but there is a way to set values which are used only when you process a > component file. > > To make it work one has to load the environment file after > \startcomponent because you > can use the *component mode to check whether the parent file is a > product or a component. > > begin product > \startproduct [*] > > \environment [...] > > \startfrontmatter > ... > \stopfrontmatter > > \startbodymatter > \component [...] > \stopbodymatter > > \stopproduct > end product > > begin component > \startcomponent [*] > > \environment [...] > > ... > > \stopcomponent > end component > > begin environment > \startenvironment [*] > > \startsetups [section:chapter] > > \setuphead > [chapter] > [...] > > \stopsetups > > \startsectionblockenvironment [bodypart] > \directsetup{section:chapter} > \stopsectionblockenvironment > > \doifmode{*component}{\directsetup{section:chapter}} > > \stopenvironment > end environment > > 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 ___
[NTG-context] Adjustment in the table of contents
Hi, I wish to have the table of contents as the attached image. The result is almost as expected except for the margin of the subsection. \setuplist [chapter,section,subsection] [width=fit,distance=\spaceamount] \setuplist [chapter] [alternative=b] \setuplist [chapter][style=bold] \setuplist [section][margin=1em] \setuplist [subsection] [margin=2.75em] Thanks Fabrice ___ 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 ___