Re: [NTG-context] Accessibility and Tagged PDFs: Bugs and Feature Requests
On 7/5/2015 10:04 PM, Dr. Dominik Klein wrote: 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 pra...@wxs.nl 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 i always suspect a chicken-egg issue there: someone wants a feature, it gets added to pdf, then there is waiting for some typesetting engine to support it, and then acrobat might do something with it and afterwards the spec gets adapted (or interpretation is adapted) .. it happened with widgets and such the interesting thing about tex is that we can easily adapt to such new features but have no way of testing it (some relates to the fact that pdf is both a document format and a storage format for e.g. illustrator so it's some hybrid) maybe it's just: if we have tags it is accessible by definition, no matter if it can be used or not 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 maybe the H etc is only used with reflow ... and reflow is weird in itself as one can then better provide an html file alongside the pdf it makes me wonder how a complex doc with mostly H's would look / be interpreted as that is then the dominant structure thing 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... the order of /Key values in the dicts is not important and hashes are often unordered (different per application or even per run for some applications for security reasons); when you play with widgets you will also observe that acrobat adds rendered content to the file as addition to the key/values 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 ___
Re: [NTG-context] \appendtoks for options
On 7/5/2015 11:12 AM, Pablo Rodriguez wrote: 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. you can test: \unexpanded\def\resethyphenationfeatures {\hyphenationattribute\attributeunsetvalue} \resethyphenationfeatures and \appendtoks \resethyphenationfeatures \to \simplifiedcommands untested of course - 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 ___
Re: [NTG-context] font features in XeTeX
Hans Hagen wrote: On 7/6/2015 9:13 AM, Robert Zydenbos wrote: Dear ConTeXt folk, Is there any simple way to pass font features as a parameter to XeConTeXt? i am thinking of things like what in LaTeX would be (between square brackets) \setromanfont [AutoFakeSlant=0.5, AutoFakeBold=0.5] {Doulos SIL Phon}. There has to be some way to do this, but I seem unable to find it in the documentatioin I have. you can just append the directives to the font names (see type -xtx.mkii for examples). I don't know if AutoFakeBold is some built in feature. Is there a reason why you can't use mkiv with luatex? I would like to, but I need to use TrueType fonts for Indian scripts in my work that are supported in XeTeX but not (yet) in LuaTeX. As an experiment, I tried to use the so-called 'long s' in a Fraktur font, which comes out well in XeTeX with LaTeX, but I must be doing something wrong in ConTeXt. Robert Example: % The 'StylisitcSet 11' in the font UnifrakturMaguntia should contain the so-called 'long s'. % Somehow it doesn't work. \starttext \definetypeface [hauptfont] [rm] [Xserif] [Charis SIL] \definetypeface [schoenfont] [rm] [Xserif] [UnifrakturMaguntia] [default] [features={StylisticSet=11}] \switchtobodyfont [hauptfont] Dies ist mit Features, denke ich. {\switchtobodyfont [schoenfont] Und jetzt schreiben wir etwas in Fraktur, das ist ja schöner.} \stoptext ___ 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] font features in XeTeX
On 7/6/2015 9:13 AM, Robert Zydenbos wrote: Dear ConTeXt folk, Is there any simple way to pass font features as a parameter to XeConTeXt? i am thinking of things like what in LaTeX would be (between square brackets) \setromanfont [AutoFakeSlant=0.5, AutoFakeBold=0.5] {Doulos SIL Phon}. There has to be some way to do this, but I seem unable to find it in the documentatioin I have. you can just append the directives to the font names (see type -xtx.mkii for examples). I don't know if AutoFakeBold is some built in feature. Is there a reason why you can't use mkiv with luatex? 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] Smallmatrix not implemented
Smallmatrix from AMS-TeX is not implemented in ConTeXt (Tex Live 2015), though crossed out in m-newmat.tex. I found this old post: http://www.ntg.nl/pipermail/ntg-context/2005/013146.html ___ 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] rsync server down?
Hi, for several days, I've seen errors while using first-setup.sh to upgrade to the latest version; the rysnc command fails because of server error. I tried on different computers and several networks, so I guess it's not just me but something is amiss there. Is it the heat? But the garden works normally... All best Thomas ___ 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] Math alignment
The example below shows the intended output when using original TeX code (compiled with ‘context' of TeX Live 2015): a pair of left braced formulas. The first comment shows what works in AMS-LaTeX. However, when trying similar ConTeXt commands, I get the error shown in the comment below. What ConTeXt command might use here? --- \setupformulas[location=left] \starttext \def\equlb#1{\left\{\eqalign{#1}\right.} %equation left braced % AMS-LaTeX %\def\equlb#1{\left\{ \begin{aligned} #1 \end{aligned}\right.} % equation left braced % ConTeXt error: You can't use `\halign' in math mode. %\def\equlb#1{\left\{ \startalign #1 \stopalign\right.} %\def\equlb#1{\left\{ \startmathalignment #1 \stopmathalignment\right.} \startformula \placeformula[JcoordDef] J^j:\equlb{ω^0 → 0 \cr ω^j → 0} \quad \equlb{ω^k → ω^l \cr ω^l → -ω^k} \stopformula \stoptext --- ___ 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] Integral spacing
I get too much spacing after the integrals when using ‘context’ (TeX Live 2015) - see first example below. Cf. the second example below, compiled with luatex. In ConTeXt, the result is the same regardless of body font, and also if using original TeX \int. --- context --- \setupbodyfont[xits,10pt] %\setupbodyfont[stix,10pt] \starttext \startformula ⟨φ|ψ⟩ ≔ ∫… ∫ dx_1 … dx_n\, φ(x_1, …, x_n)^* ψ(x_1, …, x_n) \stopformula \startformula ⟨φ|ψ⟩ ≔ \int … \int dx_1 … dx_n\, φ(x_1, …, x_n)^* ψ(x_1, …, x_n) \stopformula \stoptext --- --- luatex --- $$ \left\phi|\psi\right = \int \ldots \int dx_1 \ldots dx_n\, \phi(x_1, \ldots, x_n)^* \psi(x_1, \ldots, x_n) $$ \end --- ___ 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] font features in XeTeX
Robert Zydenbos mailto:cont...@zydenbos.net 6. Juli 2015 12:15 I would like to, but I need to use TrueType fonts for Indian scripts in my work that are supported in XeTeX but not (yet) in LuaTeX. As an experiment, I tried to use the so-called 'long s' in a Fraktur font, which comes out well in XeTeX with LaTeX, but I must be doing something wrong in ConTeXt. Robert Example: % The 'StylisitcSet 11' in the font UnifrakturMaguntia should contain the so-called 'long s'. % Somehow it doesn't work. \starttext \definetypeface [hauptfont] [rm] [Xserif] [Charis SIL] \definetypeface [schoenfont] [rm] [Xserif] [UnifrakturMaguntia] [default] [features={StylisticSet=11}] \switchtobodyfont [hauptfont] Dies ist mit Features, denke ich. {\switchtobodyfont [schoenfont] Und jetzt schreiben wir etwas in Fraktur, das ist ja schöner.} \stoptext Below is a MkIV example where I enabled the Stylistic Set 11 for the Fraktur font. \definefontfeature [longs] [ss11=yes] \definefontfamily [hauptfont] [rm] [Charis SIL] \definefontfamily [schoenfont] [rm] [Unifraktur Maguntia] [features={default,longs}] \setupbodyfont[hauptfont] \starttext Dies ist mit Features, denke ich. {\switchtobodyfont[schoenfont]Und jetzt schreiben wir etwas in Fraktur, das ist ja schöner.} \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] rsync server down?
I have the same issue and download links like minimals.contextgarden.net/setup/context-setup-win64.zip don't work. Regards, Florian Am 06.07.2015 um 10:27 schrieb Thomas A. Schmitz thomas.schm...@uni-bonn.de: Hi, for several days, I've seen errors while using first-setup.sh to upgrade to the latest version; the rysnc command fails because of server error. I tried on different computers and several networks, so I guess it's not just me but something is amiss there. Is it the heat? But the garden works normally... All best Thomas ___ 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 ___ signature.asc Description: Message signed with OpenPGP using GPGMail ___ 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] rsync server down?
Hi Thomas and Florian, I have just updated the ConTeXt and it worked fine. Both commands gave no errors: rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . ./first-setup.sh --modules=all Just kidding (and I’m afraid I cannot say it in English): »vielleicht haben die Server in Deutschland hitzefrei ;-)«. Just in case it helps, Pablo On 07/06/2015 07:15 PM, Florian Rudt wrote: I have the same issue and download links like minimals.contextgarden.net/setup/context-setup-win64.zip don't work. Regards, Florian Am 06.07.2015 um 10:27 schrieb Thomas A. Schmitz: Hi, for several days, I've seen errors while using first-setup.sh to upgrade to the latest version; the rysnc command fails because of server error. I tried on different computers and several networks, so I guess it's not just me but something is amiss there. Is it the heat? But the garden works normally... All best Thomas -- 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] chapter only in bookmarks (not in text or in TOC)
On 07/06/2015 05:56 PM, Hans Hagen wrote: [...] \setupinteraction[state=start] \placebookmarks[chapter,hiddentitle] \definehead[hiddentitle][chapter] \setuphead[hiddentitle][incrementnumber=list] \starttext \completecontent \hiddentitle{Prologue} aa\page aa \chapter{Foreword} aa \chapter{Introduction} \stoptext [Sorry if this message is duplicated, but I’m afraid my email client is misbehaving.] Many thanks for your reply, Hans. Only the second solution worked fine (the first solution had a problem similar to a one I reported before [I don’t remember which one :-(]). I need that there is no \hiddentile in the text itself, so I removed all space after and before. But I cannot make vertical spaces in makeups work: \setupinteraction[state=start] \placebookmarks[chapter,hiddentitle] \definehead[hiddentitle][chapter] \setuphead [hiddentitle] [placehead=empty, incrementnumber=list, number=no, before=, after=] \starttext \completecontent \startmakeup[copyright][top=] \hiddentitle{[Copyright]} This document is released to the public... \stopmakeup \chapter{Foreword} aa \chapter{Introduction} \stoptext Is there any way to remove all spaces in \hiddentitle, so that makeups work fine? 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] rsync server down?
Hi Pablo, everything is working again. Thanks for looking. Hitzefrei ist vorbei, no Feierabend, leaning ConTeXt ;-) Cheers, Florian Am 06.07.2015 um 21:04 schrieb Pablo Rodriguez oi...@gmx.es: Hi Thomas and Florian, I have just updated the ConTeXt and it worked fine. Both commands gave no errors: rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . ./first-setup.sh --modules=all Just kidding (and I’m afraid I cannot say it in English): »vielleicht haben die Server in Deutschland hitzefrei ;-)«. Just in case it helps, Pablo On 07/06/2015 07:15 PM, Florian Rudt wrote: I have the same issue and download links like minimals.contextgarden.net/setup/context-setup-win64.zip don't work. Regards, Florian Am 06.07.2015 um 10:27 schrieb Thomas A. Schmitz: Hi, for several days, I've seen errors while using first-setup.sh to upgrade to the latest version; the rysnc command fails because of server error. I tried on different computers and several networks, so I guess it's not just me but something is amiss there. Is it the heat? But the garden works normally... All best Thomas -- 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 ___ signature.asc Description: Message signed with OpenPGP using GPGMail ___ 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] Math alignment
[I do not get copies from the list, though having signed up.] Wolfgang Schuster wrote: On 6 Jul 2015, at 11:24, Hans Aberg haber...@telia.com wrote: The example below shows the intended output when using original TeX code (compiled with ‘context' of TeX Live 2015): a pair of left braced formulas. The first comment shows what works in AMS-LaTeX. However, when trying similar ConTeXt commands, I get the error shown in the comment below. What ConTeXt command might use here? Take a look at the wiki page [1] for multiline equations and also the linked PDF at the start of the page. [1] http://wiki.contextgarden.net/Multiline_equations#Cases The spacing is different in cases - TeX also has such a variation. Specifically, there is extra space before the conditionals. In addition, it seems \startmathcases ... \stopmathcases is not working with UTF-8: in the example below, the ω’s on the second line, after the arrows, disappear in my PDF. \startformula J^j:\startmathcases\NC ω^0 \NC→ 0 \NR \NC ω^j \NC→ 0 \stopmathcases \quad \startmathcases \NC ω^k \NC→ ω^l \NR \NC ω^l \NC→ -ω^k \stopmathcases \stopformula ___ 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] Smallmatrix not implemented
[I do not get copies from the list, though having signed up.] Smallmatrix from AMS-TeX is not implemented in ConTeXt (Tex Live 2015), though crossed out in m-newmat.tex. You can create your own matrix environment for inline use: \definemathmatrix [smallmatrix] [left=\Big(, right=\Big), style=\scriptstyle, strut=0.7, distance=.25em] \starttext This is a example \m{ \startsmallmatrix \NC a \NC b \NR \NC c \NC d \NR \stopsmallmatrix } for a smallmatrix environment. It looks pretty much like the AMS-LaTeX variation. Below is another example of use, as a displayed formula. % Defines a small two-by-two matrix. \def\twomatrix#1#2#3#4{\startsmallmatrix\NC{#1}\NC{#2}\NR\NC{#3}\NC{#4}\NR\stopsmallmatrix} % The Pauli spin matrices, explicit forms. \def\pspint{{\twomatrix1001}} \def\pspinx{{\twomatrix0110}} \def\pspiny{{\twomatrix0{-핚}핚0}} \def\pspinz{{\twomatrix100{-1}}} Pauli spin matrices \startformula σ^0 ≔ \pspint, \quad σ^3 ≔ \pspinz, \quad σ^1 ≔ \pspinx, \quad σ^2 ≔ \pspiny \stopformula ___ 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] Smallmatrix not implemented
Hans Aberg mailto:haber...@telia.com 6. Juli 2015 11:03 Smallmatrix from AMS-TeX is not implemented in ConTeXt (Tex Live 2015), though crossed out in m-newmat.tex. I found this old post: http://www.ntg.nl/pipermail/ntg-context/2005/013146.html You can create your own matrix environment for inline use: \definemathmatrix [smallmatrix] [left=\Big(, right=\Big), style=\scriptstyle, strut=0.7, distance=.25em] \starttext This is a example \m{ \startsmallmatrix \NC a \NC b \NR \NC c \NC d \NR \stopsmallmatrix } for a smallmatrix environment. \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math alignment
Hans Aberg mailto:haber...@telia.com 7. Juli 2015 01:46 [I do not get copies from the list, though having signed up.] The spacing is different in cases - TeX also has such a variation. Specifically, there is extra space before the conditionals. In addition, it seems \startmathcases ... \stopmathcases is not working with UTF-8: in the example below, the ω’s on the second line, after the arrows, disappear in my PDF. This is explained in section 8 of the document: There are two ways of specifying the second column — \MC (Math Column) and \NC (New Column). If \MC is used, the second column is in \math mode, with \NC it is in ‘text mode’. \startformula J^j:\startmathcases\NC ω^0 \NC→ 0 \NR \NC ω^j \NC→ 0 \stopmathcases \quad \startmathcases \NC ω^k \NC→ ω^l \NR \NC ω^l \NC→ -ω^k \stopmathcases \stopformula Please send always working minimal examples like this: \starttext \startformula J^j : \startmathcases[distance=\spaceamount] \NC ω^0 \MC → 0 \NR \NC ω^j \NC → 0 \NR \stopmathcases \quad \startmathcases[distance=\spaceamount] \NC ω^k \MC → ω^l \NR \NC ω^l \MC → -ω^k \NR \stopmathcases \stopformula \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://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
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 pra...@wxs.nl 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 ___
[NTG-context] font features in XeTeX
Dear ConTeXt folk, Is there any simple way to pass font features as a parameter to XeConTeXt? i am thinking of things like what in LaTeX would be (between square brackets) \setromanfont [AutoFakeSlant=0.5, AutoFakeBold=0.5] {Doulos SIL Phon}. There has to be some way to do this, but I seem unable to find it in the documentatioin I have. RZ ___ 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] chapter only in bookmarks (not in text or in TOC)
On 7/5/2015 7:54 PM, Pablo Rodriguez wrote: 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? something \setupinteraction[state=start] \placebookmarks[chapter,hiddentitle] \definehead[hiddentitle][chapter] \starttext \completecontent \writetolist[hiddentitle]{!!}{xxx} aa\page aa \chapter{Foreword} aa \chapter{Introduction} \stoptext or \setupinteraction[state=start] \placebookmarks[chapter,hiddentitle] \definehead[hiddentitle][chapter] \setuphead[hiddentitle][incrementnumber=list] \starttext \completecontent \hiddentitle{Prologue} aa\page aa \chapter{Foreword} aa \chapter{Introduction} \stoptext - 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 ___
Re: [NTG-context] \appendtoks for options
On 07/06/2015 10:11 AM, Hans Hagen wrote: On 7/5/2015 11:12 AM, Pablo Rodriguez wrote: [...] 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. you can test: \unexpanded\def\resethyphenationfeatures {\hyphenationattribute\attributeunsetvalue} \resethyphenationfeatures and \appendtoks \resethyphenationfeatures \to \simplifiedcommands untested of course Many thanks for your help, Hans. I’m not sure I’m doing it right, but I’m afraid it doesn’t work. 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 ___