[NTG-context] Textbackground issue with margin pictures

2017-04-02 Thread Tom
Hi,

today I updated from ConTeXt 2015.11.19 to the recent Beta 2017.03.26 16:15.

I noticed that my textbackgrounds now interfere with margin pictures, that is,
if there is a margin picture at the side of a textbackground, then the 
textbackground is suppressed for the entire height of the margin picture.


Here is a minimal:

\setuplayout [
leftmargin=0mm,
rightmargin=45mm,
height=fit,
width=fit,
]

\definetextbackground [test] 

\starttext

\placefigure [margin]{}{}

\starttextbackground [test]
\dorecurse{3}{\readfile{ward}{}{}}
\stoptextbackground

\stoptext


With the ConTeXt Current from 2016.05.19 13:43 I don’t see the issue, 
everything’s fine there.

Here are two screenshots:

Desired behavior (Ctx Current): http://d.pr/i/Xgtc
Non-desired behavior (Ctx Beta): http://d.pr/i/1gyi

Is this a bug?

Thanks for any help.

-- 
Thomas Floeren


___
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

2017-04-02 Thread Todd DeVries
Thank you for this information.

Wolfgang Schuster  writes:
> The inline heading in your example doesn’t work because \startparagraph
> forces the end of a paragraph for the preceding text.
>
> As you want only tags for the content of your paragraph you can enclose
> your text in \bpar … \epar instead of \startparagraph … \stopparagraph.

That seems to work.  I don't have the ability to directly examine the
pdf's tags table, but the document appears to read
correctly. Sections/subsections/paragraphs are identified. The subsection
is inline with the following paragraph.  I'm not sure what are the
differences between \bpar and \startparagraph, so have used the later
construction for the second paragraph in the subsection.

\setuppapersize[letter]
\setuptagging[state=start]
\setuphead[chapter][style=\bf, number=no, align=middle]
\setuphead[section][style=\bf, number=no]
\setuphead[subsection][style=\bf, number=no, commandafter={.~},
  textdistance=0cm, alternative=text]
\starttext
\startchapter[title=Chapter I]
  \startsection[title=Introduction]
\startparagraph
  Beginning with the passage of section 504 of the Rehabilitation
  Act of 1974, students with disabilities are participating in
  higher education in increasing numbers (Madaus, 2011). Students
  with psychiatric, learning, and cognitive impairment who once
  considered college out of reach are taking the plunge. …
\stopparagraph
\startsubsection[title=Demo Subsection]
  \bpar Numbers for all students moving from high school through a
  bachelors degree in Idaho are worse than in most of the
  nation. Go-on Idaho (2014), an organization dedicated to
  furthering our state's educational outcomes , relates …\epar
  \startparagraph
The U. S. Bureau of Labor Statistics (2016) report that a
person's level of education are linked to increased income
and levels of unemployment. The more education a person has,
the higher is the average wage and the lower the level of
unemployment. Educational attainment matters. …
  \stopparagraph
\stopsubsection
  \stopsection
  \stopchapter
\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] Aligning subsection head with following paragraph in tagged pdf output

2017-04-02 Thread Wolfgang Schuster



Todd DeVries 
2. April 2017 um 01:47via Postbox 


Hello everyone,

Thanks to all who helped me better understand the issues surrounding my
question. The document style I am following requires that the
first three headings are included in the table of contents. Headings
one and two are easy, as they stand on lines by themself. Heading three
must be aligned with the left margin in bold and followed by a period.
The rest of the paragraph or paragraphs folllow.

This style makes sense visually, bold text at the margin represents a
change in topic. less so when reading or editing with audio output (My
computer does not have a monitor attached.) Using good sectioning
allows one to fold the document for navigation and organization.
Consider how Org-mode in Emacs works as an analogue. I started thinking
that life would be easier if heading level 3 sections could be both
structural, for navigation, and visual, inline with their first
paragraph.

This idea holds true both in source text and in the pdf output.
Properly tagged pdf documents allow one to jump by structural elements
(heading to heading, paragraph to paragraph. In a perfect world one
could have it both ways: a structural element like a section, but placed
inline as though it were just another layout token. The audio using
tagged structure indicates a topic change, while those using their eyes
just see the bold text.

Hopefully this short explanation adequately describes my reason for
addressing the list.


The inline heading in your example doesn’t work because \startparagraph
forces the end of a paragraph for the preceding text.

As you want only tags for the content of your paragraph you can enclose
your text in \bpar … \epar instead of \startparagraph … \stopparagraph.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hieroglyphic font query

2017-04-02 Thread Alan Bowen
Thanks, Wolfgang. That works very nicely!

I ended up setting the glyphs at 8pt (to fit the text) and adjusted my list
of bodyfont sizes accordingly. A great tip/reminder!

Alan

On Sun, Apr 2, 2017 at 2:35 PM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

>
> Alan Bowen 
> 2. April 2017 um 20:19 via Postbox
> 
> Hi, Pablo—thanks for the suggestions. I was not able to get them to work.
> Here is my test file.
>
> \definefallbackfamily[mainface][sans][NewGardiner][range=131FC,132F9]
> %\definefallbackfamily[mainface][sans][NewGardiner-
> Medium][range=131FC,132F9]
>
> \definefontfamily[mainface][serif][Brill]
>
> \setupbodyfont[mainface,18pt]
>
>
> \starttext
>
> Hello world! 1234
>
> αβγ
>
> {
> ㇼ㋹
> }
>
> and that is all.
>
> \stoptext
>
> There is a problem when you change the font size to a value which isn’t
> pre defined
> (e.g. 14pt causes problems while 14.4pt works) and you have to add
> \definebodyfont[...]
> (e.g. \definebodyfont[14pt]) to your document.
>
> %\starttypescript[sans][newgardiner]
> %\setups[font:fallback:sans]
> %\definefontsynonym[Sans][file:newgardinersmp]
> %\stoptypescript
> %
> %\definetypeface[newgardiner][ss][sans][newgardiner][
> default][features=default]
>
> \definefontfamily[newgardiner][rm][NewGardiner]
>
> \starttext
>
> {\definedfont[file:newgardinersmp at 14.4pt]ㇼ㋹}
>
> \switchtobodyfont[newgardiner,14.4pt]ㇼ㋹
>
> \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://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
___

[NTG-context] wrong sending (was new version at Gitlab)

2017-04-02 Thread Pablo Rodriguez
Dear list,

the original message was a private communication to Jean-Pierre.

I automatically selected the ConTeXt mailing list as recipient address
instead of his.

My apologies to Jean-Pierre for the public outcome (although there is
nothing secret in it) and to the rest of the list members for the noise.

Pablo


On 04/02/2017 09:27 PM, Pablo Rodriguez wrote:
> Jean-Pierre,
> 
> I have a new version at Gitlab:
> 
> https://gitlab.com/ousia/adeimantos-cours-philosophie/uploads/cfbb32c6a49e82b4e73f30af96b0a31c/ConTEXt_Philosophy_Cours-de-philosophie_Cadres_Chapters_25-03-2017.pdf
> 
> But it requires that you are part of the project (that you are invited
> to it).
> 
> See you there,
> 
> Pablo
> 
> PS: if you don’t register the username adeimantos, you should tell me
> which one you chose (I need to know the user name to invite anyone).
> 


-- 
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] new version at Gitlab

2017-04-02 Thread Pablo Rodriguez
Jean-Pierre,

I have a new version at Gitlab:

https://gitlab.com/ousia/adeimantos-cours-philosophie/uploads/cfbb32c6a49e82b4e73f30af96b0a31c/ConTEXt_Philosophy_Cours-de-philosophie_Cadres_Chapters_25-03-2017.pdf

But it requires that you are part of the project (that you are invited
to it).

See you there,

Pablo

PS: if you don’t register the username adeimantos, you should tell me
which one you chose (I need to know the user name to invite anyone).
-- 
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hieroglyphic font query

2017-04-02 Thread Wolfgang Schuster



Alan Bowen 
2. April 2017 um 20:19via Postbox 


Hi, Pablo—thanks for the suggestions. I was not able to get them to work.
Here is my test file.

\definefallbackfamily[mainface][sans][NewGardiner][range=131FC,132F9]
%\definefallbackfamily[mainface][sans][NewGardiner-Medium][range=131FC,132F9]

\definefontfamily[mainface][serif][Brill]

\setupbodyfont[mainface,18pt]


\starttext

Hello world! 1234

αβγ

{
ㇼ㋹
}

and that is all.

\stoptext
There is a problem when you change the font size to a value which isn’t 
pre defined
(e.g. 14pt causes problems while 14.4pt works) and you have to add 
\definebodyfont[...]

(e.g. \definebodyfont[14pt]) to your document.

%\starttypescript[sans][newgardiner]
%\setups[font:fallback:sans]
%\definefontsynonym[Sans][file:newgardinersmp]
%\stoptypescript
%
%\definetypeface[newgardiner][ss][sans][newgardiner][default][features=default]

\definefontfamily[newgardiner][rm][NewGardiner]

\starttext

{\definedfont[file:newgardinersmp at 14.4pt]ㇼ㋹}

\switchtobodyfont[newgardiner,14.4pt]ㇼ㋹

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt not finding fonts in OSFONTDIR

2017-04-02 Thread Alan Bowen
Yes, Indeed. It is *Hellenistic Astronomy: The Science and Its Contexts*
(Brill).

A.

On Sun, Apr 2, 2017 at 12:47 PM, Pablo Rodriguez  wrote:

> On 04/02/2017 03:38 PM, Alan Bowen wrote:
> > Thank you, Pablo! The font files have been discovered and the source
> > files now process as they should. You are a lifesaver—this book may
> > still see the light of day!
>
> Glad to read it helped, Alan.
>
> May we know which book you are working on?
>
> 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://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] Hieroglyphic font query

2017-04-02 Thread Alan Bowen
Hi, Pablo—thanks for the suggestions. I was not able to get them to work.
Here is my test file.

\definefallbackfamily[mainface][sans][NewGardiner][range=131FC,132F9]
%\definefallbackfamily[mainface][sans][NewGardiner-Medium][range=131FC,132F9]

\definefontfamily[mainface][serif][Brill]

\setupbodyfont[mainface,18pt]


\starttext

Hello world! 1234

αβγ

{
ㇼ㋹
}

and that is all.

\stoptext


On Sun, Apr 2, 2017 at 12:45 PM, Pablo Rodriguez  wrote:

> On 04/02/2017 05:23 PM, Alan Bowen wrote:
> > I have the hieroglyphic font, New Gardiner Medium, in .otf and .ttf
> > formats. It is installed in my OSFONTDIR and is accessible using other
> > applications.
> >
> > But
> >
> > \switchtobodyfont[newgardiner,14pt]ㇼ㋹
> >
> > does not work (with either the .ttf or the .otf format).
> >
> > I have checked: “NewGardiner” is the Postscript Name, the Full name, and
> > the Family Name.
> >
> > So what have I missed?
>
> Well, I suppose you included before:
>
> \definefontfamily[newgardiner][rm][NewGardiner]
>
> If it doesn’t work, replace [NewGardiner] with [NewGardiner-Medium].
>
> If it doesn’t, could you use \setupbodyfont[newgardiner, 14pt]?
>
> Just in case it helps,
>
> 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://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] ConTeXt not finding fonts in OSFONTDIR

2017-04-02 Thread Pablo Rodriguez
On 04/02/2017 03:38 PM, Alan Bowen wrote:
> Thank you, Pablo! The font files have been discovered and the source
> files now process as they should. You are a lifesaver—this book may
> still see the light of day!

Glad to read it helped, Alan.

May we know which book you are working on?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hieroglyphic font query

2017-04-02 Thread Pablo Rodriguez
On 04/02/2017 05:23 PM, Alan Bowen wrote:
> I have the hieroglyphic font, New Gardiner Medium, in .otf and .ttf
> formats. It is installed in my OSFONTDIR and is accessible using other
> applications.
> 
> But
> 
> \switchtobodyfont[newgardiner,14pt]ㇼ㋹
> 
> does not work (with either the .ttf or the .otf format).
> 
> I have checked: “NewGardiner” is the Postscript Name, the Full name, and
> the Family Name.
> 
> So what have I missed?

Well, I suppose you included before:

\definefontfamily[newgardiner][rm][NewGardiner]

If it doesn’t work, replace [NewGardiner] with [NewGardiner-Medium].

If it doesn’t, could you use \setupbodyfont[newgardiner, 14pt]?

Just in case it helps,

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Hieroglyphic font query

2017-04-02 Thread Alan Bowen
Certainly: see the attached file.
A.

On Sun, Apr 2, 2017 at 11:32 AM, kaddour kardio 
wrote:

> ​Can you please copy-past de log file?​
>
> On Sun, Apr 2, 2017 at 5:23 PM, Alan Bowen  wrote:
>
>> I have the hieroglyphic font, New Gardiner Medium, in .otf and .ttf
>> formats. It is installed in my OSFONTDIR and is accessible using other
>> applications.
>>
>> But
>>
>> \switchtobodyfont[newgardiner,14pt]ㇼ㋹
>>
>> does not work (with either the .ttf or the .otf format).
>>
>> I have checked: “NewGardiner” is the Postscript Name, the Full name, and
>> the Family Name.
>>
>> So what have I missed?
>>
>> 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/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> 
>> ___
>>
>
>
>
> --
> Dr YAHYAOUI Mohamed Kaddour, cardiologue.Clinique EL ABRAR.
>
> 
> ___
> 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
> 
> ___
>


test.log
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
___

Re: [NTG-context] Hieroglyphic font query

2017-04-02 Thread kaddour kardio
​Can you please copy-past de log file?​

On Sun, Apr 2, 2017 at 5:23 PM, Alan Bowen  wrote:

> I have the hieroglyphic font, New Gardiner Medium, in .otf and .ttf
> formats. It is installed in my OSFONTDIR and is accessible using other
> applications.
>
> But
>
> \switchtobodyfont[newgardiner,14pt]ㇼ㋹
>
> does not work (with either the .ttf or the .otf format).
>
> I have checked: “NewGardiner” is the Postscript Name, the Full name, and
> the Family Name.
>
> So what have I missed?
>
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
>



-- 
Dr YAHYAOUI Mohamed Kaddour, cardiologue.Clinique EL ABRAR.
___
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] Hieroglyphic font query

2017-04-02 Thread Alan Bowen
I have the hieroglyphic font, New Gardiner Medium, in .otf and .ttf
formats. It is installed in my OSFONTDIR and is accessible using other
applications.

But

\switchtobodyfont[newgardiner,14pt]ㇼ㋹

does not work (with either the .ttf or the .otf format).

I have checked: “NewGardiner” is the Postscript Name, the Full name, and
the Family Name.

So what have I missed?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt not finding fonts in OSFONTDIR

2017-04-02 Thread Alan Bowen
Thank you, Pablo! The font files have been discovered and the source files
now process as they should. You are a lifesaver—this book may still see the
light of day!

Alan

On Sat, Apr 1, 2017 at 7:29 PM, Pablo Rodriguez  wrote:

> On 04/02/2017 12:37 AM, Alan Bowen wrote:
> > Thanks, Pablo:
> >
> > I have revised the line in my bash profile to read
> > export OSFONTDIR=/Users/bowen1/Library/Fonts/
> > and the problem persists—assuming that I have the absolute path correct.
>
> Sorry, add another slash to to the final slash and put inside quotes,
> such as in:
>
> export OSFONTDIR="/Users/bowen1/Library/Fonts//"
>
> > As for adding the path at the end of tex/setuptex,  I do not know how to
> > do this. I see in setuptex.csh that this is a TODO.
>
> Open tex/setuptext, go to the end of the file, hit Enter twice and copy
> the line above.
>
> Now it comes the unorthodox part: remove tex/texmf-cache/luatex-cache/.
>
> Run "source tex/setuptex" and "mtxrunjit --generate".
>
> After that, compuile the ConTeXt source file you want.
>
> 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://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
___