Re: [NTG-context] Cannot access Lua function
On Saturday, October 30, 2021 9:16:15 PM IST Hans Hagen wrote: > cf the pdf speca: > > Creator: If the document was converted to PDF from another format, > the name of the PDF processor that created the original document from > which it was converted. > > Producer: If the document was converted to PDF from another format, > the name of the PDF processor that converted it to PDF. > > so changing that is kind of cheating. > > Hans Dear Hans, Thanks for the reference. Just to clarify, I only do this for VERY FEW documents I make, not all. In some cases, I need to keep the author of the document unidentifiable for purposes of security, since otherwise, people who know how to look for metadata can easily identify that I am the author given the small # of people using ConTeXt. In my department at university I am the only one using it as far as I know. The 'IKTS-VTR' values above are just an abbreviation for my lab/course. Anyway, since it is not good practice, I will try to make do without this. Thanks, 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] PDF text stream with delimitedtext
Am Sat, Oct 30, 2021 at 09:12:19PM +0100 schrieb Adam Reviczky via ntg-context: > Hi, > > I am trying to use quotation or blockquote in a document, but when > selecting and copying the text in poppler/pdf.js I get double marks. > > Looking at the minimal example below: > \nopdfcompression > \setuppagenumbering[location=] > \starttext > \startquotation Hello world! \stopquotation > \setupquotation[left=«,right=»] > \startquotation Hello world! \stopquotation > \setupquotation[left=‘,right=’] > \startquotation Hello world! \stopquotation > \setupdelimitedtext[blockquote][left=‘,right=’] > \startblockquote Hello world! \stopblockquote > “Hello world!”\\ > «Hello world!»\\ > ‘Hello world!’\\ > \startquote Hello world! \stopquote\\ > \quote{Hello world!}\\ > \stoptext > > The text stream seems to have an additional object for the quotation and > blockquote lines. > > Rendering the PDF in itself is fine but when copying the text I get mixed > results (poppler/evince and pdf.js give double marks but mupdf does not: > “Hello world!””,«Hello world!»»,‘Hello world!’’,‘Hello world!’’). > > Is this just an issue with poppler/pdf.js when trying to extract the text > (as the PDF rendering seems all fine)? > > Adam Hello Adam, I have made good experience with "\quotation{}": starttext \language[de] \quotation{Hello world!} \stoptext The command \language[de] cures for national quotation marks. I'm using ConTeXt ver: 2021.10.10 23:43 LMTX fmt: 2021.10.11 and xpdf or okular. Regards, Rudolf ___ 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] PDF text stream with delimitedtext
Hi, I am trying to use quotation or blockquote in a document, but when selecting and copying the text in poppler/pdf.js I get double marks. Looking at the minimal example below: \nopdfcompression \setuppagenumbering[location=] \starttext \startquotation Hello world! \stopquotation \setupquotation[left=«,right=»] \startquotation Hello world! \stopquotation \setupquotation[left=‘,right=’] \startquotation Hello world! \stopquotation \setupdelimitedtext[blockquote][left=‘,right=’] \startblockquote Hello world! \stopblockquote “Hello world!”\\ «Hello world!»\\ ‘Hello world!’\\ \startquote Hello world! \stopquote\\ \quote{Hello world!}\\ \stoptext The text stream seems to have an additional object for the quotation and blockquote lines. Rendering the PDF in itself is fine but when copying the text I get mixed results (poppler/evince and pdf.js give double marks but mupdf does not: “Hello world!””,«Hello world!»»,‘Hello world!’’,‘Hello world!’’). Is this just an issue with poppler/pdf.js when trying to extract the text (as the PDF rendering seems all fine)? Adam ___ 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] Bloody PDF boxes and cr*p marks!
I finally reworked the wiki page https://wiki.contextgarden.net/PDF_Boxes and also extended https://wiki.contextgarden.net/PDFX a bit. 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] Cannot access Lua function
On 10/30/2021 2:29 PM, kauśika cittūr wrote: On Saturday, October 30, 2021 4:57:07 PM IST Hans Hagen wrote: that function was only meant for internal (inter-lua-module communication) usage (also because there are some expectations abotu what is in there) what do you want change? Dear Hans, I want to (/used to) set the creator and producer in the following manner \startluacode local metadata = lpdf.getmetadata(); metadata['producer']='IKTS-VTR'; metadata['creator']='IKTS-VTR'; \stopluacode I was not able to do this using \setupinteraction, which I use to setup the title, subtitle and author. cf the pdf speca: Creator: If the document was converted to PDF from another format, the name of the PDF processor that created the original document from which it was converted. Producer: If the document was converted to PDF from another format, the name of the PDF processor that converted it to PDF. so changing that is kind of cheating. 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] Cannot access Lua function
On Saturday, October 30, 2021 4:57:07 PM IST Hans Hagen wrote: > that function was only meant for internal (inter-lua-module > communication) usage (also because there are some expectations abotu > what is in there) > > what do you want change? Dear Hans, I want to (/used to) set the creator and producer in the following manner \startluacode local metadata = lpdf.getmetadata(); metadata['producer']='IKTS-VTR'; metadata['creator']='IKTS-VTR'; \stopluacode I was not able to do this using \setupinteraction, which I use to setup the title, subtitle and author. Thanks, 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] Cannot access Lua function
On 10/30/2021 8:25 AM, kauśika cittūr via ntg-context wrote: Dear list, In one of my documents I have this lua block – \startluacode local metadata = lpdf.getmetadata(); ⋮ \stopluacode to modify some metadata fields. The file compiles with the latest LMTX (2021.10.28) without any errors but no PDF is produced. In the log, the following line is present : backend > blocked > function 'getmetadata' is not accessible I recall that this was working just fine some days back. Please advise. that function was only meant for internal (inter-lua-module communication) usage (also because there are some expectations abotu what is in there) what do you want change? 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] Cannot access Lua function
Dear list, In one of my documents I have this lua block – \startluacode local metadata = lpdf.getmetadata(); ⋮ \stopluacode to modify some metadata fields. The file compiles with the latest LMTX (2021.10.28) without any errors but no PDF is produced. In the log, the following line is present : backend > blocked > function 'getmetadata' is not accessible I recall that this was working just fine some days back. Please advise. Thanks, 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 ___