Re: [NTG-context] Accessibility and Tagged PDFs: Bugs and Feature Requests
Am 05.07.15 um 13:11 schrieb Hans Hagen: On 7/4/2015 6:45 PM, Alan BRASLAU wrote: On Fri, 3 Jul 2015 19:19:58 +0200 Hans Hagen wrote: sure but in the meantime we need to find a way to determine what works and what not, for instance, as i mentioned that context already adds a rolemap 11 0 obj << /ParentTree 12 0 R /K 29 0 R /RoleMap << /sectiontitle /H /section /Sect /sectionnumber /H /document /Div >> /Type /StructTreeRoot >> endobj we have no way to check if that works (so maybe we need to have a page on the wiki with a viewer/functionality matrix) The whole rolemap thing and how Acrobat Pro handles it leaves me somewhat puzzled. Taking https://github.com/asdfjkl/tex-access/blob/master/rolemap.tex and compiling will give the rolemap as Hans described above. Looking at the Tag structure, this seems to be ignored by acrobat (but why?), see https://github.com/asdfjkl/tex-access/blob/master/rolemap.PNG What would be expected is this, right? After all, the rolemap should be interpreted, shouldn't it (mapping /H to /H1 was a mistake of mine, but it doesn't change the fact). https://github.com/asdfjkl/tex-access/blob/master/rolemap2.PNG After changing things manually in the tag editor in acrobat, and saving the pdf again, this is obtained: https://github.com/asdfjkl/tex-access/blob/master/rolemap_edited.pdf Note this: << /RoleMap << /document /Div /sectionnumber /H /sectiontitle /H /section /Sect >> /Type /StructTreeRoot /ParentTree 12 0 R /K 29 0 R >> and also the different structure elements at the start of the pdf... I am lost here... cheers - Dominik ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] New btx code problem with quote protrusion
On Sun, 5 Jul 2015 18:52:40 -0400 Rik Kabel wrote: > Is this a bug, or simply something not yet ready with the new regime, > or am I doing something wrong? This looks like a bug/interference in a situation that was not tested... Alan ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] New btx code problem with quote protrusion
List folk: In the MWE below, everything builds cleanly if the \setupdelimitedtext line is removed. With it removed, however, quote marks protrusion looks poor when nearby quote marks in non-quotation text is allowed to protrude. The happens when there is a citation in a footnote in the quoted text. Is this a bug, or simply something not yet ready with the new regime, or am I doing something wrong? % The next line should allow \startquotation to protrude quotes \setupdelimitedtext[quotation][method=font] % However, it causes the new bib code to fail when there is a % footnote containing a citation in the quote. See % http://www.mail-archive.com/ntg-context@ntg.nl/msg35580.html \definefontfeature [default][protrusion=quality] \setupalign[hz,hanging] \usebtxdataset [xx.bib] \starttext \startparagraph\noindent There is a citation in the footnote to this standard paragraph\footnote{This footnote has a citation \cite[One].} \stopparagraph \startquotation[right] There is a citation in the footnote to this block quotation\footnote{This footnote has a citation \cite[Two].} \stopquotation \startparagraph\noindent “There is a citation in the footnote to this standard paragraph\footnote{This footnote has a citation \cite[One].}” \stopparagraph \placelistofpublications \stoptext And the corresponding xx.bib file: @BOOK{One, author = {A. N. Author}, title= {A Book Title}, year = {2017}, publisher= {Self}, address = {sine loco}, } @ARTICLE{Two, author = {N. O. Author}, title= {A Pipe}, journal = {The Journal}, year = {2018}, volume = {32}, number = {3}, pages= {42--69}, } -- Rik Kabel ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] chapter only in bookmarks (not in text or in TOC)
Dear list, I have the following sample: \showframe \setupinteraction[state=start] \placebookmarks[chapter] \definehead[hiddentitle][chapter] \setuphead[hiddentitle][incrementnumber=no] \starttext \completecontent \hiddentitle{Prologue} aa\page aa \chapter{Foreword} aa \chapter{Introduction} \stoptext I would like to have a \hiddentitle command that doesn’t display the heading in text (and adds no extra space), that it doesn’t add it to the table of contents, but that it adds it as a bookmark. How should I define \hiddentitle to get that? 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Accessibility and Tagged PDFs: Bugs and Feature Requests
On 7/4/2015 6:45 PM, Alan BRASLAU wrote: On Fri, 3 Jul 2015 19:19:58 +0200 Hans Hagen wrote: (i'm pretty sure that context was one of the first to support for instance field (widget) trees but support for that in viewers changes each version so one never knows what is the right way as specs predate support in viewers) (in the same fashion tagging and layers is/are useless till it gets supported in other viewers than acrobat) Maybe a subject to discuss at the next ConTeXt meeting. sure but in the meantime we need to find a way to determine what works and what not, for instance, as i mentioned that context already adds a rolemap 11 0 obj << /ParentTree 12 0 R /K 29 0 R /RoleMap << /sectiontitle /H /section /Sect /sectionnumber /H /document /Div >> /Type /StructTreeRoot >> endobj we have no way to check if that works (so maybe we need to have a page on the wiki with a viewer/functionality matrix) (ok, we could peek into files produced by word and see what gets added there but even then) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] bug with bookmarks?
Dear list, I have the following sample: \setupinteraction[state=start] \placebookmarks [part,chapter,section,subsection,subsubsection] [part,chapter] \starttext \placelist[part,chapter] \startfrontmatter \chapter{Introduction} \stopfrontmatter \startbodymatter \dorecurse{2}{\part{Part} \dorecurse{3}{\chapter{Chapter} \dorecurse{5}{\section{Section \stopbodymatter \stoptext For some strange reason, with front and body matters the bookmarks for parts don’t contain bookmarks for chapters (although chapter bookmarks do contain section bookmarks). Removing \placelist[part,chapter] shows the same issue (part bookmarks not containing chapter bookmarks). And replacing \placelist[part,chapter] with \completecontent places bookmarks from front matter after the ones from the body matter. (Besides the fact that I don’t want to have sections in the TOC.) I suspect this may be a bug. Could you confirm it or explain me what I’m missing? 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \appendtoks for options
Dear list, I have the following sample: \appendtoks \let\sethyphenationfeatures[underscore]\space \to \simplifiedcommands \setupinteraction[state=start] \placebookmarks[chapter] \starttext \chapter{\sethyphenationfeatures[underscore] code} \stoptext Is there a way that I can add the whole "\sethyphenationfeatures[underscore]" to \simplifiedcommands? All I want is to have the whole command removed from the PDF bookmarks. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___