Re: [NTG-context] Aligning subsection head with following paragraph in tagged pdf output
Thanks for your assistance. Was unaware of using the setupheads command incorrectly. Good information to have. I am still not able to produce an automatic period (.) at the end of the section title using the after keyword. is this correct? On Friday, March 31, 2017, 7:01:28 PM, Rik writes: > alternative=text is working, but \startparagraph is starting a > new paragraph after the heading. \start\stopparagraph is not > happy with the text alternative. I am wondering if this is just not going to work with the tagging subsystem. The subsection aligns if I remove the start/stop paragraph following the heading. But if I add a second paragraph in that subsection it breaks again. I use tagged pdfs for output because they are more accessible with my screen reader. Without tagging, all one gets is long blocks of undifferentiated text. With the correct tags, paragraphs, headings, lists, and tables get created that make more sense with auditory output. To my knowledge, ConTeXt is the only alternative for producing accessible pdfs beyond working with Acrobat pro or MS. Word. After writing a 70-page academic project in Word, I'm seeking alternatives! Perhaps one can just use in-paragraph bolding and mark that text for the table of contents as an alternative. This is required for heading level 3 content in APA style. Thanks for your assistance. I'm a newbie and appreciate the help. Todd ___ 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] Aligning subsection head with following paragraph in tagged pdf output
On 2017-03-31 19:05, Todd DeVries wrote: Hello, I would like to align a subsection heading with the following paragraph. For example: Subsectiontext. The data presented in this section will ... What I get is: Subsection Text The data presented in this section will ... What recipe should be used with the \setupheads command to produce this output? I've tried several variations including the snippit below. \setuppapersize[letter][letter] \setuptagging[state=start] \setupheads[subsection][style=\bf, number=no, after={. }, alternative=text] \starttext \startsection[reference=sec:deep, title=Deep Thoughts \startparagraph Oh Hum, its too windy to play out side, so perhaps I'll write a while... \startsubsection[reference=first, title=First Subsection] \startparagraph \input knuth \stopparagraph \stopsubsection \stopsection \stoptext First, add a closing ] to \startsubsection... Then remove the \startparagraph following it, and the \stopparagraph after knuth. alternative=text is working, but \startparagraph is starting a new paragraph after the heading. \start\stopparagraph is not happy with the text alternative. You should also add a \stopparagraph after the Oh Hum line. Then change \setupheads to \setuphead. \setupheads should have only one []. That [] contains key/value option pairs that apply to all heading levels. \setuphead[sectionlevel][] is used to provide key/value option pairs for sectionlevel headings (and for lower-level heads for inherited options). -- Rik ___ 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] Aligning subsection head with following paragraph in tagged pdf output
Hello, I would like to align a subsection heading with the following paragraph. For example: Subsectiontext. The data presented in this section will ... What I get is: Subsection Text The data presented in this section will ... What recipe should be used with the \setupheads command to produce this output? I've tried several variations including the snippit below. \setuppapersize[letter][letter] \setuptagging[state=start] \setupheads[subsection][style=\bf, number=no, after={. }, alternative=text] \starttext \startsection[reference=sec:deep, title=Deep Thoughts \startparagraph Oh Hum, its too windy to play out side, so perhaps I'll write a while... \startsubsection[reference=first, title=First Subsection] \startparagraph \input knuth \stopparagraph \stopsubsection \stopsection \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] How do I insert characters before \par
ConTeXters, I am stymied trying to insert characters into a buffer, or failing that, to back up, removing the \par, and adding characters after the buffer is loaded. The code I am working with reduces to this: 1. % macros=mkvi engine=luajittex 2. \starttexdefinition unexpanded startABC 3.\begingroup 4.\dosingleempty\dostartABC 5. \stoptexdefinition 6. \starttexdefinition dostartABC [#SETUPS] 7. \getrawparameters[ABC][inset=2em,#SETUPS] 8. \grabbufferdata[bu:ABC][startABC][stopABC] 9. \stoptexdefinition 10. \starttexdefinition stopABC 11. \setupnarrower[left=\ABCinset] 12. \startnarrower[left,right] 13.\startlines 14. (\,\inlinebuffer[bu:ABC]\,) 15.\stoplines 16. \stopnarrower 17.\endgroup 18. \stoptexdefinition 19. \starttext 20. \startsubject[title={Test of ABC}] 21. \startABC[inset=5em] 22.“Hope” is the thing with feathers\,— 23. That perches in the soul\,— 24. And sings the tune without the words\,— 25. And never stops\,—\,at all\,— 26. \stopABC 27. \startABC 28. ABCDEFG 29. \stopABC 30. \stoptext In line 14, I prefix the buffer with(\, but\,) ends up on another line, after the \par inserted at the end of the buffer. Inlining a second buffer which contains the closing bits with (\inlinebuffer[a,b]) does the same. Can somebody suggest a path? --- Rik ___ 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] Two hyphens do not replaced on em—dash when dejavu,14pt
On 3/31/2017 11:52 AM, Marco Patzer wrote: On Fri, 31 Mar 2017 11:46:00 +0300 Kostiryawrote: Two hyphens do not replaced on em—dash when dejavu,14pt Use the tlig font feature \definefontfeature [tlig] [default] [tlig=yes] \definefontfeature [default] [default] [tlig=yes] - 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] Two hyphens do not replaced on em—dash when dejavu,14pt
It did not help. But why it is this the case, only for 14pt? When font size is 10pt, 12pt or 16, then it is all right. P.S. I also found error at switchtobodyfont with dejavu font. In the below example, switchtobodyfont not correctly worked. This is only observed when I switch from 16pt to 14pt. Switching must be across a different font. \setupbodyfont[dejavu,16pt] \starttext \showbodyfont \blank \switchtobodyfont[gentium] \switchtobodyfont[dejavu,14pt] \showbodyfont \stoptext 2017-03-31 12:52 GMT+03:00 Marco Patzer: > On Fri, 31 Mar 2017 11:46:00 +0300 > Kostirya wrote: > >> Two hyphens do not replaced on em—dash when dejavu,14pt > > Use the tlig font feature > > \definefontfeature > [tlig] > [default] > [tlig=yes] > > Marco > ___ > 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 ___
Re: [NTG-context] Two hyphens do not replaced on em—dash when dejavu,14pt
On Fri, 31 Mar 2017 11:46:00 +0300 Kostiryawrote: > Two hyphens do not replaced on em—dash when dejavu,14pt Use the tlig font feature \definefontfeature [tlig] [default] [tlig=yes] Marco ___ 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] symbol sets
Hello all, i tried Wolfgang's tma method and wrote the attached symb-imp-win.mkiv. Perhaps is it useful for someone else. (wingdng2 and wingdng3 are included) Greetings Lutz P.S. Scheif virtuelle Tastatur Am 31. März 2017 10:56:20 MESZ schrieb Henning Hraban Ramm: >Am 2017-03-30 um 23:35 schrieb Wolfgang Schuster > : > >>> Henning Hraban Ramm 30. März 2017 um 13:14 via Postbox >>> I’m trying to define a symbolset: >>> >>> \definefontsynonym [Webdings] [file:Webdings.ttf] >>> \def\WebdingsSymbol#1{\getglyphstyled{Webdings}{\tochar{x:#1}}} >>> >>> \startsymbolset[webdings] >>> \definesymbol [spider] [\WebdingsSymbol{f021}] >>> \definesymbol [spiderweb] [\WebdingsSymbol{f022}] >>> \definesymbol [sunglasses] [\WebdingsSymbol{f024}] >>> \definesymbol [award] [\WebdingsSymbol{f026}] >>> \definesymbol [ribbon] [\WebdingsSymbol{f02d}] >>> \definesymbol [plane] [\WebdingsSymbol{f0f1}] >>> % … >>> \stopsymbolset >>> >>> \usesymbols[webdings] >>> \showsymbolset[webdings] >>> \symbol[webdings][spider] >>> >>> The font is included in my pdf, \showsymbolset[webdings] lists the >names, but the symbols never show up. >>> I also tried other fonts. >>> What’s wrong? >> You can get the right number for each symbol from webdings.tma (look >at the end of the file). >> >> \definefontsynonym [Webdings] [file:Webdings.ttf] >> >> \def\WebdingsSymbol#1{\getglyphstyled{Webdings}{\tochar{d:#1}}} >> >> \startsymbolset[webdings] >> \definesymbol [spider] [\WebdingsSymbol{983044}] >> \definesymbol [web][\WebdingsSymbol{983045}] >> \definesymbol [cool] [\WebdingsSymbol{983047}] >> \stopsymbolset >> >> \starttext >> \symbol[webdings][spider] >> \symbol[webdings][web] >> \symbol[webdings][cool] >> \stoptext > >Thank you! > >There seems to be a problem with Webdings.ttf: Fontexplorer shows glyph >numbers with an 0xf000 offset, i.e. spider at 0xf021 instead of 0x0021. >But ConTeXt can’t seem to find the glyphs even at the correct location, >but by name it works. > >So I exported the name list with fontforge and created the attached set >- feel free to add it to the distribution. >Also Wingdings. > >Access by number works with other fonts, e.g. with Symbola.otf – I just >introduced an error when I copied the webdings code and forgot to >change the font name reference. > >Greetlings, Hraban >--- >http://www.fiee.net >http://wiki.contextgarden.net >GPG Key ID 1C9B22FD -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. symb-imp-win.mkiv Description: Binary data \usesymbols[win] \starttext \tfa {\tfc Wingding} \blank[2*big] \showsymbolset[wingding] \page {\tfc Webdings} \blank[2*big] \showsymbolset[webdings] \page {\tfc Wingdng2} \blank[2*big] \showsymbolset[wingdngii] \page {\tfc Wingdng3} \blank[2*big] \showsymbolset[wingdngiii] \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Two hyphens do not replaced on em—dash when dejavu,14pt
No, It is not worked. I mistakenly used a Unicode character in another test. 2017-03-31 12:13 GMT+03:00 Kostirya: > I apologize. > It is not hyphen symbol. It is unicode. > Everything is working! > > 2017-03-31 11:46 GMT+03:00 Kostirya : >> Hello. >> Two hyphens do not replaced on em—dash when dejavu,14pt >> :-( >> >> >> >> \starttext >> 1-2 11--22 >> >> \switchtobodyfont[dejavu,14pt] >> 1-2 11--22 >> >> \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Two hyphens do not replaced on em—dash when dejavu,14pt
I apologize. It is not hyphen symbol. It is unicode. Everything is working! 2017-03-31 11:46 GMT+03:00 Kostirya: > Hello. > Two hyphens do not replaced on em—dash when dejavu,14pt > :-( > > > > \starttext > 1-2 11--22 > > \switchtobodyfont[dejavu,14pt] > 1-2 11--22 > > \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] symbol sets
Am 2017-03-30 um 23:35 schrieb Wolfgang Schuster: >> Henning Hraban Ramm 30. März 2017 um 13:14 via Postbox >> I’m trying to define a symbolset: >> >> \definefontsynonym [Webdings] [file:Webdings.ttf] >> \def\WebdingsSymbol#1{\getglyphstyled{Webdings}{\tochar{x:#1}}} >> >> \startsymbolset[webdings] >> \definesymbol [spider] [\WebdingsSymbol{f021}] >> \definesymbol [spiderweb] [\WebdingsSymbol{f022}] >> \definesymbol [sunglasses] [\WebdingsSymbol{f024}] >> \definesymbol [award] [\WebdingsSymbol{f026}] >> \definesymbol [ribbon] [\WebdingsSymbol{f02d}] >> \definesymbol [plane] [\WebdingsSymbol{f0f1}] >> % … >> \stopsymbolset >> >> \usesymbols[webdings] >> \showsymbolset[webdings] >> \symbol[webdings][spider] >> >> The font is included in my pdf, \showsymbolset[webdings] lists the names, >> but the symbols never show up. >> I also tried other fonts. >> What’s wrong? > You can get the right number for each symbol from webdings.tma (look at the > end of the file). > > \definefontsynonym [Webdings] [file:Webdings.ttf] > > \def\WebdingsSymbol#1{\getglyphstyled{Webdings}{\tochar{d:#1}}} > > \startsymbolset[webdings] > \definesymbol [spider] [\WebdingsSymbol{983044}] > \definesymbol [web][\WebdingsSymbol{983045}] > \definesymbol [cool] [\WebdingsSymbol{983047}] > \stopsymbolset > > \starttext > \symbol[webdings][spider] > \symbol[webdings][web] > \symbol[webdings][cool] > \stoptext Thank you! There seems to be a problem with Webdings.ttf: Fontexplorer shows glyph numbers with an 0xf000 offset, i.e. spider at 0xf021 instead of 0x0021. But ConTeXt can’t seem to find the glyphs even at the correct location, but by name it works. So I exported the name list with fontforge and created the attached set - feel free to add it to the distribution. Also Wingdings. Access by number works with other fonts, e.g. with Symbola.otf – I just introduced an error when I copied the webdings code and forgot to change the font name reference. Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD symb-imp-webdings.mkiv Description: Binary data symb-imp-wingdings.mkiv Description: Binary data ___ 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] Two hyphens do not replaced on em—dash when dejavu,14pt
Hello. Two hyphens do not replaced on em—dash when dejavu,14pt :-( \starttext 1-2 11--22 \switchtobodyfont[dejavu,14pt] 1-2 11--22 \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___