[NTG-context] \externalfigure problem with displaying external images via https://live.contextgarden.net
Hello. A few years ago I created a PHP application for printing filled forms with PDF background. PHP application is generating ConTeXt source code, that is subsequently translated using the online application https://live.contextgarden.net. I have now discovered that the application is not functional because the https://live.contextgarden.net application is unable to retrieve the external PDF file from our organization's URL. Oddly, this source code at https://live.contextgarden.net does not generate a PDF file with the form in the background: \starttext \externalfigure[http://gyza.cz/iapp/opisvysv/498540_SS_16_predmetu_str1_PDF.pdf] % PDF FILE ON OUR ORGANIZATION (SCHOOL) HOSTING \stoptext This is despite the fact that the PDF file exists at the URL and the browser is able to display it. On the other side the source code: \starttext \externalfigure[http://hajtmar.cz/iapp/opisvysv/498540_SS_16_predmetu_str1_PDF.pdf] % PDF FILE ON MY PRIVAT HOSTING \stoptext or source code: \starttext \externalfigure[http://www.pragma-ade.nl/show-gra.pdf] % PDF FILE ON PRAGMA-ADE.NL WEB \stoptext without any problems will generate a correct PDF file. Does anyone know what the problem might be? Why online ConTeXt is not read my PDF file and on other side read another PDF file? What does onlineConText not like? I need to get my application for printing archive certificates working again... Thanks. Jaroslav ___ 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] How to display the pages of a particular section in another PDF?
I can use this code to display page 5 from a PDF:\externalfigure[filename.pdf][page=5]I am making a teacher's guide for a workbook (workbook.pdf). I need to be able to display on the page all pages of a particular section. The teacher's guide uses the same section titles as the workbook, e.g.: 17-A: Title 17-B: Title In other words, there is 1:1 pairing of section titles in the teacher's guide and the workbook. Is there any way to tell ConTeXt to display all of the pages for a particular section? \externalfigure[filename.pdf][section=17A] --Joel ___ 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] two issues with variable fonts
Am 04.12.22 um 11:53 schrieb Hans Hagen via ntg-context: the fact that some were not processed relates to a 'fix' of a while back ... also keep in mind that the variable font code was written long ago when there were only a handful of experimental (and often somewhat buggy) fonts around showing off the new tricks .. since then there has not been much interest in variables fonts from the perspective of tex An increasing number of fonts in the Google repository is (becoming) variable. So far, I only used the additionally provided fixed versions... Hraban ___ 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] issue with OT feature in LMTX
On 12/4/22 13:34, Hans Hagen via ntg-context wrote: > On 12/3/2022 2:04 PM, Pablo Rodriguez via ntg-context wrote: >> [...] >> Am I missing something or have I hit a bug in LMTX? > more a bug in your approach: you specify a range where you also > overwrite private slots (that happen to be used for caps) .. at t he > cost of runtime i'll add a check against overwriting these Many thanks for the fix, Hans. 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 ___
Re: [NTG-context] two issues with variable fonts
On 12/4/22 11:53, Hans Hagen via ntg-context wrote: >> [...] > i'll check if we can deal with tags instead of names as not all fonts > have nice names for the axis defined (which might be why one ends up > with all these predefined instances) Many thanks for your reply, Hans. Tags instead of names seems more consistent to me. At least when comparing it with OpenType features. And I think that "optical size" was the first key I see containing a space. Many thank sfor your 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 ___
Re: [NTG-context] issue with OT feature in LMTX
On 12/3/2022 2:04 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample (using current latest from 2022.12.01 13:05): \definefallbackfamily[mainface][rm][Noto Emoji] [range={0x1F004-0xFE837}, force=yes] \definefontfamily[mainface][rm][TeX Gyre Pagella] \setupbodyfont[mainface] \definestructureconversionset [sectionnumbers] [0,n,Characters,g,n] [n] \definefontfeature[section] [smcp=yes, c2sc=yes] \setupheads[sectionconversionset=sectionnumbers] \setuphead[section][style={\feature[+][section]}] \starttext \section{Just text} {\feature[+][section]Just text} \stoptext LMTX outputs no small caps and it fallbacks to Noto Emoji. LuaTeX gives the right output. Am I missing something or have I hit a bug in LMTX? more a bug in your approach: you specify a range where you also overwrite private slots (that happen to be used for caps) .. at t he cost of runtime i'll add a check against overwriting these 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 ___
Re: [NTG-context] two issues with variable fonts
On 12/3/2022 10:29 AM, Pablo Rodriguez via ntg-context wrote: On 12/3/22 01:01, Hans Hagen via ntg-context wrote: On 12/2/2022 8:17 PM, Hans Hagen via ntg-context wrote: Also in the last instances (at least, pages 19 to 25), kerning or interletter spacing clearly needs to be improved. no clue (ok, a little) sort of fixed but no upload yet (probably next week) Many thanks for all your fixes, Hans. BTW, using https://github.com/googlefonts/amstelvar/tree/main/fonts with the following source: \usemodule[fonts-variable] \starttext \showfontvariations[font=file:Amstelvar-Roman.ttf] \showfontvariations[font=file:Amstelvar-Italic.ttf] \stoptext Font is missing in instances from pages 4, 8-11 (regular font) and 21-23 (italic font). Glyphs seem wrong on pages 12-13 (regular font) and interletter spacing is clearly not right in the instance from pages 24-25. I don’t know whether this has already been fixed with your improvements yesterday. the fact that some were not processed relates to a 'fix' of a while back ... also keep in mind that the variable font code was written long ago when there were only a handful of experimental (and often somewhat buggy) fonts around showing off the new tricks .. since then there has not been much interest in variables fonts from the perspective of tex assuming that i can motivate myself (read: the fonts look nice) i can probably sort out all the side effects i'll check if we can deal with tags instead of names as not all fonts have nice names for the axis defined (which might be why one ends up with all these predefined instances) 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 ___