[NTG-context] Erratic error message

2014-09-17 Thread Robert Blackstone

Hi all,
When typesetting my project with interaction, sometimes the processing stops 
after a few runs with an error message that points at an empty line in one of 
the chapters that normally gives no trouble. 

For interaction this setup is used:
\setupinteraction[state=start,focus=standard,style=,color=blue,contrastcolor=]
\placebookmarks[prechapter,chapter,section][prechapter,chapter,section][number=no]

When I comment out the first of these two lines, in other words, without 
interaction, the project is processed without any problem.
Sometimes, unfortunately not always, when I immediately repeat the processing 
with interaction, all goes well. 

So what is my problem? Not understanding what might be wrong, and not being 
able to correct things gives me a feeling of insecurity, trusting Murphy’s law 
to make sure that processing will fail when my deadline is approaching fast.

I use mkiv on Mac OSX 10.9.4. All my standalone versions from january up to 
today give the same behaviour.

I mostly get the following  error message:  (occasionally something different 
happens: the processing gets into some endless loop and I have to abort it)

+++
tex errorerror on line 2314 in file TD-Ch3.tex: ! Attempt to 
double-free dir node 54467, ignored


\page_shipouts_normal ...box \shipoutscratchbox }}
  \else \page_shipouts_ignor...
\page_boxes_shipout ... {\box \shipoutscratchbox }
  \fi \setnextrealpageno \th...
\page_otr_construct_and_shipout ...cted_page #1#2}
  \page_otr_flush_pending_co...
\page_sides_output_routine_nop ...de_float_output 
  \global \d_page_sides_vsiz...
\page_sides_output_routine ..._output_routine_nop 
  \fi 
\page_otr_triggered_output_routine ...and_routine 
  \fi 
...
l.2314 
 

2304 {\externalfigure[LegrenIoViLasfa]}{}
2305 {\externalfigure[LegrenIoViLasfi**]}{}%LegrenIoViLasfi* voor 
verbeterde versie
2306 \stopcombination
2307 
2308 
2309 %{\externalfigure[LegrenIoViLastot]}  
2310 %Ex. 3.70 Legrenzi\index[Legrenzi]{Legrenzi, Giovanni}, aria \quote{Io 
vi lascio}
2311 
2312 
2313 Of course the major 6th should also be played upon the {\em a}  in 
b.~3.
2314   
2315 
2316A number of major 6ths occur in the first section of 
Frescobaldi\index[Frescobaldi]{Frescobaldi, Girolamo}'s \quote{Capriccio sopra 
La Sol Fa Mi Re Ut} %\footnote{Frescobaldi\index[Frescobaldi]{Frescobaldi, 
Girolamo}, {\em Il primo libro di capricci} (Rome, 1624), ME (Milan, 1984), 9.}
2317 
(\in{Ex.}[fig:FrescCaprLaSolFaMiReUtfi]).\footnote{\dcite{Frescobaldi:1984blb}, 
9.} All sharps are used above respectively the descending bass progressions 
{\em e'}$\xrightarrow[none]${\em d'}, with {\em \sharp c''}; {\em 
a}$\xrightarrow[none]${\em g}, with {\em \sharp f''}, %G\sharp, 
2318 and {\em B}$\xrightarrow[none]${\em A}   with {\em \sharp g'}. 
%G\sharp.
2319 
2320 
2321 
\placeexample[force][fig:FrescCaprLaSolFaMiReUtfi]{Frescobaldi\index[Frescobaldi]{Frescobaldi,
 Girolamo}, \quote{Capriccio sopra La Sol Fa Mi Re Ut}, bb.~7-15}
2322 {\externalfigure[FrescCaprLaSolFaMiReUtfi*]}%* voor compr
2323 %Ex. 3.71 Frescobaldi\index[Frescobaldi]{Frescoba 

++

Does anybody have any idea what is wrong here? (I should add that when I 
comment out or hide this passage the error moves to the next passage and so on.)

Best regards,
Robert Blackstone___
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] Erratic error message

2014-09-17 Thread Hans Hagen

On 9/17/2014 12:59 PM, Robert Blackstone wrote:


Hi all,

When typesetting my project with interaction, sometimes the processing
stops after a few runs with an error message that points at an empty
line in one of the chapters that normally gives no trouble.


For interaction this setup is used:

\setupinteraction[state=start,focus=standard,style=,color=blue,contrastcolor=]

\placebookmarks[prechapter,chapter,section][prechapter,chapter,section][number=no]


When I comment out the first of these two lines, in other words, without
interaction, the project is processed without any problem.

Sometimes, unfortunately not always, when I immediately repeat the
processing with interaction, all goes well.


So what is my problem? Not understanding what might be wrong, and not
being able to correct things gives me a feeling of insecurity, trusting
Murphy’s law to make sure that processing will fail when my deadline is
approaching fast.


I use mkiv on Mac OSX 10.9.4. All my standalone versions from january up
to today give the same behaviour.


I mostly get the followingerror message:  (occasionally something
different happens: the processing gets into some endless loop and I have
to abort it)


+++

tex error  error on line 2314 in file TD-Ch3.tex: ! Attempt to
double-free dir node 54467, ignored



\page_shipouts_normal ...box \shipoutscratchbox }}

\else \page_shipouts_ignor...

\page_boxes_shipout ... {\box \shipoutscratchbox }

\fi \setnextrealpageno \th...

\page_otr_construct_and_shipout ...cted_page #1#2}

\page_otr_flush_pending_co...

\page_sides_output_routine_nop ...de_float_output

\global \d_page_sides_vsiz...

\page_sides_output_routine _output_routine_nop

\fi

\page_otr_triggered_output_routine ...and_routine

\fi

...

l.2314


2304 {\externalfigure[LegrenIoViLasfa]}{}

2305 {\externalfigure[LegrenIoViLasfi**]}{}%LegrenIoViLasfi* voor
verbeterde versie

2306 \stopcombination

2307

2308

2309 %{\externalfigure[LegrenIoViLastot]}

2310 %Ex. 3.70 Legrenzi\index[Legrenzi]{Legrenzi, Giovanni}, aria
\quote{Io vi lascio}

2311

2312

2313 Of course the major 6th should also be played upon the {\em a}in b.~3.

2314 

2315

2316A number of major 6ths occur in the first section of
Frescobaldi\index[Frescobaldi]{Frescobaldi, Girolamo}'s \quote{Capriccio
sopra La Sol Fa Mi Re Ut}
%\footnote{Frescobaldi\index[Frescobaldi]{Frescobaldi, Girolamo}, {\em
Il primo libro di capricci} (Rome, 1624), ME (Milan, 1984), 9.}

2317
(\in{Ex.}[fig:FrescCaprLaSolFaMiReUtfi]).\footnote{\dcite{Frescobaldi:1984blb},
9.} All sharps are used above respectively the descending bass
progressions {\em e'}$\xrightarrow[none]${\em d'}, with {\em \sharp
c''}; {\em a}$\xrightarrow[none]${\em g}, with {\em \sharp f''}, %G\sharp,

2318 and {\em B}$\xrightarrow[none]${\em A} with {\em \sharp g'}. %G\sharp.

2319

2320

2321
\placeexample[force][fig:FrescCaprLaSolFaMiReUtfi]{Frescobaldi\index[Frescobaldi]{Frescobaldi,
Girolamo}, \quote{Capriccio sopra La Sol Fa Mi Re Ut}, bb.~7-15}

2322 {\externalfigure[FrescCaprLaSolFaMiReUtfi*]}%* voor compr

2323 %Ex. 3.71 Frescobaldi\index[Frescobaldi]{Frescoba


++


Does anybody have any idea what is wrong here? (I should add that when I
comment out or hide this passage the error moves to the next passage and
so on.)


a minimal example is needed

-
  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] bug in hyphenation?

2014-09-17 Thread Pablo Rodriguez
Hi Thangalin,

I use \hsize\zeropoint to force ConTeXt to break lines at every
hyphenation point.

I found a bug in a Greek edition of the Hippocratic oath I’m trying to
typeset. Last line from the first page
http://www.ousia.tk/hippocratic-oath.pdf.

Hyphenation points for this word are: κοι[-||]νώ[-||]σε[-||]σθαι.

Sorry, but I think that the bug is clear, but I don’t know how to
provide a minimal sample.

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] Change linewidth of a table

2014-09-17 Thread Fabrice Couvreur
Hi,
How to complete the grid ?
Thank you.
Fabrice

\setuppapersize[A4]
\setuplayout[
backspace=5mm,
width=middle,
topspace=5mm,
height=middle,
header=0pt,
footer=0pt,
]

\definetypeface [me] [rm] [serif] [pagella] [default]
\definetypeface [me] [ss] [sans]  [dejavu]  [default]
\definetypeface [me] [mm] [math]  [xits][default]

\setupbodyfont[me,12pt]


\startsetups[table:initialize]
  \setupTABLE[height=2.25cm,width=2.25cm]
  \setupTABLE[column][1,4,7][frame=off,rulethickness=1.2pt,leftframe=on]
  \setupTABLE[column][9][frame=off,rulethickness=1.2pt,rightframe=on]
  \setupTABLE[row][9][frame=off,rulethickness=1.2pt,bottomframe=on]
  \setupTABLE[row][1,4,7][frame=off,rulethickness=1.2pt,topframe=on]
  \setupTABLE[start][align={middle,lohi}]
\stopsetups
\starttext
\startmidaligned
\switchtobodyfont[small]
\bTABLE[setups=table:initialize]
\bTR
\bTD  \eTD
\bTD $\sqrt{25}$ \eTD
\bTD  \eTD
\bTD Partie entière de $\pi$ \eTD
\bTD  \eTD
\bTD $\frac{48}{8}$ \eTD
\bTD  \eTD
\bTD  \eTD
\bTD 5 augmenté de 40\,\% \eTD
\eTR
\bTR
\bTD  \eTD
\bTD  \eTD
\bTD  \eTD
\bTD  \eTD
\bTD $4\sqrt{4}$ \eTD
\bTD  Le double de $\frac{15^3 \times 2^2}{5^2 \times 6^3}$\eTD
\bTD  \eTD
\bTD Nombre premier pair \eTD
\bTD Nombre de faces d'une pyramide à base triangulaire
\eTD
\eTR
\bTR
\bTD  \eTD
\bTD 30\,\% de 30  \eTD
\bTD $2^3$ \eTD
\bTD  Opposé de $(5-9)$\eTD
\bTD Nombre d'axes de symétrie d'un rectangle \eTD
\bTD \eTD
\bTD Nombre de faces d'un cube \eTD
\bTD  \eTD
\bTD \eTD
\eTR
\bTR
\bTD$\frac{\sqrt{324}}{2}$  \eTD
\bTD  \eTD
\bTD $27^0$ \eTD
\bTD \eTD
\bTD  \eTD
\bTD Numérateur de la fraction irréductible égale à
$\frac{9\,261}{33\,957}$ \eTD
\bTD L'inverse de $\sin{\unit{30 degree}}$\eTD
\bTD\eTD
\bTD PGCD de 11\,760 et de 2\,574\eTD
\eTR
\bTR
\bTD \eTD
\bTD $\sqrt{25-9}$ \eTD
\bTD \eTD
\bTD \eTD
\bTD  \eTD
\bTD  \eTD
\bTD \eTD
\bTD $\frac{10^{-2}}{0.01}$\eTD
\bTD\eTD
\eTR
\bTR
\bTD$\frac{125}{25}$ \eTD
\bTD \eTD
\bTD Quatrième nombre premier \eTD
\bTD $\sqrt{1}\times \sqrt{4}$\eTD
\bTD Nombre de diviseurs de 20 \eTD
\bTD  \eTD
\bTD Numérateur de
$\frac{7}{4}-\frac{1}{2}+\frac{5}{8}-\frac{3}{4}$\eTD
\bTD \eTD
\bTD $\left(2\sqrt{2}\right)^2$ \eTD
\eTR
\bTR
\bTD Le quart du seizième de $256$\eTD
\bTD \eTD
\bTD Nombre de côtés d'un pentagone\eTD
\bTD \eTD
\bTD L'opposé de la différence du tiers de $21$ et du carré
de $4$ \eTD
\bTD  \eTD
\bTD Nombre d'axes de symétrie d'un triangle équilatéral\eTD
\bTD Nombre de sommets d'un cube\eTD
\bTD\eTD
\eTR
\bTR
\bTD \eTD
\bTD $\frac{\left(2\sqrt{3}\right)^2}{12}$\eTD
\bTD \eTD
\dontleavehmode \bTD
\startMPcode
defaultscale:=0.8;
angle_radius:=4pt;
def mark_rt_angle(expr a, b, c)=
draw((1,0)--(1,1)--(0,1))
zscaled (angle_radius*unitvector(a-b))
shifted b
enddef;
def midpoint(expr a, b) = (.5[a,b]) enddef;
u:=0.4cm;
path p;
z0=(0,0);
z1=(4u,0);
z2=(0,3u);
z3=(2u,0);
z4=(0,1.5u);
z5=midpoint(z1,z2);
draw z0--z1--z2--cycle;
mark_rt_angle(z1,z0,z2);
label.bot(4,z3);
label.lft(3,z4);
label.urt(?,z5);
\stopMPcode
\eTD\bTD Solution de l'équation $4x-5=2x+9$ \eTD
\bTD  \eTD
\bTD  \eTD
\bTD  \eTD
\bTD$\left(\frac{2}{\sqrt{2}}\right)^2$\eTD
\eTR
\bTR
\bTD$\frac{\sqrt{192}-\sqrt{128}}{\sqrt{3}-\sqrt{2}}$ \eTD
\bTD \eTD
\bTD \eTD
\bTD $2^{\rm ?}=2$ \eTD
\bTD  \eTD
\bTD Nombre d'axes de symétrie d'un carré \eTD
\bTD \eTD
\bTD $\sqrt{81}-\sqrt{4}$\eTD
\bTD\eTD
\eTR
\eTABLE
\stopmidaligned
\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] Erratic error message

2014-09-17 Thread Robert Blackstone

On 17 Sep 2014, at 19:38 ,  Hans Hagen pra...@wxs.nl wrote
 
 On 9/17/2014 12:59 PM, Robert Blackstone wrote:
 
 Hi all,
 
 When typesetting my project with interaction, sometimes the processing
 stops after a few runs with an error message that points at an empty
 line in one of the chapters that normally gives no trouble.
 
 a minimal example is needed

HI Hans,
I have tested this project down to every little snippett and I never get this 
error with the message as described, unless the whole project, a book of about 
450 pages with around 400 graphics, is processed with interaction, and even 
then it does not always occur. It may or may not happen.
I would not know how to make a minimal example that will consistently give the 
error.
I had hoped that this text in the error message: “Attempt to double-free dir 
node 54467, ignored” would contain some information as to what might be wrong, 
but apparently it does not.
Anyway, thanks for your attention.
 
Best regards,
Robert

___
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] Erratic error message

2014-09-17 Thread Hans Hagen

On 9/17/2014 9:37 PM, Robert Blackstone wrote:


On 17 Sep 2014, at 19:38 ,  Hans Hagen pra...@wxs.nl wrote


On 9/17/2014 12:59 PM, Robert Blackstone wrote:


Hi all,

When typesetting my project with interaction, sometimes the processing
stops after a few runs with an error message that points at an empty
line in one of the chapters that normally gives no trouble.


a minimal example is needed


HI Hans,
I have tested this project down to every little snippett and I never get this 
error with the message as described, unless the whole project, a book of about 
450 pages with around 400 graphics, is processed with interaction, and even 
then it does not always occur. It may or may not happen.
I would not know how to make a minimal example that will consistently give the 
error.
I had hoped that this text in the error message: “Attempt to double-free dir 
node 54467, ignored” would contain some information as to what might be wrong, 
but apparently it does not.
Anyway, thanks for your attention.


well, it can be an issue in the engine as well as in context and it's 
hard to guess where and why it happens, so we need to wait till we have 
a predictable and repeatable case


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] Permissible characters in ConTeXt reference labels

2014-09-17 Thread Mark Szepieniec
Bump...

If it's not too much trouble, I would greatly appreciate some feedback on
this before I propose it to be merged into pandoc; even a looks good to
me from one of the ConTeXt gurus would be very helpful.

Thanks in advance,

Mark

On Tue, Sep 9, 2014 at 12:20 AM, Mark Szepieniec mszep...@gmail.com wrote:

 I'm trying to fix a problem in pandoc (see
 https://github.com/jgm/pandoc/pull/1589) where it doesn't properly
 sanitize the reference labels in ConTeXt output, causing errors during
 compilation when a label contains '#' for example. Note that this
 sanitizing is needed in addition to the regular backslash escaping used for
 control characters: '\#' is still illegal in a label for example.

 In the sanitizer function I'm writing, I'd like to properly escape all
 illegal characters, but I couldn't find an explicit list of allowed or
 illegal characters. Based on some testing I've conducted (see attached
 file), I've arrived at the following set:

 \#[],{}%()|=

 1) Does this look like a reasonable set? Are there other characters or
 sequences that should be included, or are worth testing?

 2) I was told (see
 https://groups.google.com/forum/#!topic/pandoc-discuss/tYpXMUkmbEY) that
 if the characters  and , didn't work, it would count as a ConTeXt bug, is
 there any truth to that? Please let me know if any further info is needed
 on my part.

 3) Does anyone see issues with this general approach? I'm relatively new
 to ConTeXt, so I might be missing either a huge problem, or an obviously
 easier way to do this.

 Thanks,

 Mark

___
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] Permissible characters in ConTeXt reference labels

2014-09-17 Thread Hans Hagen

On 9/18/2014 12:06 AM, Mark Szepieniec wrote:

Bump...

If it's not too much trouble, I would greatly appreciate some feedback
on this before I propose it to be merged into pandoc; even a looks good
to me from one of the ConTeXt gurus would be very helpful.

Thanks in advance,

Mark

On Tue, Sep 9, 2014 at 12:20 AM, Mark Szepieniec mszep...@gmail.com
mailto:mszep...@gmail.com wrote:

I'm trying to fix a problem in pandoc (see
https://github.com/jgm/pandoc/pull/1589) where it doesn't properly
sanitize the reference labels in ConTeXt output, causing errors
during compilation when a label contains '#' for example. Note that
this sanitizing is needed in addition to the regular backslash
escaping used for control characters: '\#' is still illegal in a
label for example.

In the sanitizer function I'm writing, I'd like to properly escape
all illegal characters, but I couldn't find an explicit list of
allowed or illegal characters. Based on some testing I've conducted
(see attached file), I've arrived at the following set:

\#[],{}%()|=


it depends on where these characters end up in

#  : always tricky as it denotes an argument, so escape
[] : depends if it gets fed into a macro that uses [] as delimiters
{} : only an issue when not balanced
%  : escaping needed as it's comment otherwise
() : depends on where it ends up, like []
|  : is special in context so needs escaping
\  : of course that one needs escaping


1) Does this look like a reasonable set? Are there other characters
or sequences that should be included, or are worth testing?


keep in mind that escapes should end up unescaped at some point


2) I was told (see
https://groups.google.com/forum/#!topic/pandoc-discuss/tYpXMUkmbEY)
that if the characters  and , didn't work, it would count as a
ConTeXt bug, is there any truth to that? Please let me know if any
further info is needed on my part.


well, define bug ... one can say the same of  and  in xml -)

if the result ends up in a comma separated list then , can be an issue 
but one can always wrap an argument in {} to hide that



3) Does anyone see issues with this general approach? I'm relatively
new to ConTeXt, so I might be missing either a huge problem, or an
obviously easier way to do this.


i don't know ... i never used pandoc input

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] Permissible characters in ConTeXt reference labels

2014-09-17 Thread Aditya Mahajan

On Thu, 18 Sep 2014, Hans Hagen wrote:


On 9/18/2014 12:06 AM, Mark Szepieniec wrote:

Bump...

If it's not too much trouble, I would greatly appreciate some feedback
on this before I propose it to be merged into pandoc; even a looks good
to me from one of the ConTeXt gurus would be very helpful.

Thanks in advance,

Mark

On Tue, Sep 9, 2014 at 12:20 AM, Mark Szepieniec mszep...@gmail.com
mailto:mszep...@gmail.com wrote:

I'm trying to fix a problem in pandoc (see
https://github.com/jgm/pandoc/pull/1589) where it doesn't properly
sanitize the reference labels in ConTeXt output, causing errors
during compilation when a label contains '#' for example. Note that
this sanitizing is needed in addition to the regular backslash
escaping used for control characters: '\#' is still illegal in a
label for example.


(LaTeX label) = (ConTeXt reference). What Mark mean was references such as

\section[...]{...} or \startplacefigure[reference={...}].


In the sanitizer function I'm writing, I'd like to properly escape
all illegal characters, but I couldn't find an explicit list of
allowed or illegal characters. Based on some testing I've conducted
(see attached file), I've arrived at the following set:

\#[],{}%()|=


it depends on where these characters end up in

#  : always tricky as it denotes an argument, so escape
[] : depends if it gets fed into a macro that uses [] as delimiters
{} : only an issue when not balanced
%  : escaping needed as it's comment otherwise
() : depends on where it ends up, like []
|  : is special in context so needs escaping
\  : of course that one needs escaping


1) Does this look like a reasonable set? Are there other characters
or sequences that should be included, or are worth testing?


keep in mind that escapes should end up unescaped at some point


2) I was told (see
https://groups.google.com/forum/#!topic/pandoc-discuss/tYpXMUkmbEY)
that if the characters  and , didn't work, it would count as a
ConTeXt bug, is there any truth to that? Please let me know if any
further info is needed on my part.


well, define bug ... one can say the same of  and  in xml -)


Since I made that comment on the pandoc mailing list, let me explain.

Consider:

\section[some reference]{Title}

Given how  behaves elsewhere in ConTeXt, a user would expect the above to 
be a valid input. If it is not, then it is bug (or atleast, surprising).


The same goes for

\section[some, reference]{Title}

if the result ends up in a comma separated list then , can be an issue but 
one can always wrap an argument in {} to hide that



3) Does anyone see issues with this general approach? I'm relatively
new to ConTeXt, so I might be missing either a huge problem, or an
obviously easier way to do this.


i don't know ... i never used pandoc input


Aditya
___
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] bug in hyphenation?

2014-09-17 Thread Thomas A. Schmitz

On 17 Sep 2014, at 10:03, Pablo Rodriguez oi...@gmx.es wrote:

 I found a bug in a Greek edition of the Hippocratic oath I’m trying to
 typeset. Last line from the first page
 http://www.ousia.tk/hippocratic-oath.pdf.
 
 Hyphenation points for this word are: κοι[-||]νώ[-||]σε[-||]σθαι.
 
 Sorry, but I think that the bug is clear, but I don’t know how to
 provide a minimal sample.
 
 Many thanks for your help,

Why is it difficult to provide a minimal example? I have this:

\definepapersize [test] [width=5.7in,height=4in]

\setuppapersize [test] [test]

\mainlanguage [agr]

\definefontfamily [test] [serif] [Free Serif]

\setupbodyfont [test,12pt]

\starttext

\strut \hskip1em Ἀπόλλωνα ἰητρὸν καὶ Ἀσκληπιὸν, καὶ Ὑγείαν καὶ Πανάκειαν
καὶ θεοὺς πάντας τε καὶ πάσας, ἵστορας ποιεύμενος, ἐπιτελέα ποιήσειν κατὰ
δύναμιν καὶ κρίσιν ἐμὴν ὅρκον τόνδε καὶ συγγραφὴν τήνδε· ἡγήσεσθαι μὲν τὸν
διδάξαντά με τὴν τέχνην ταύτην ἴσα γενέτῃσιν ἐμοῖσι, καὶ βίου κοινώσεσθαι

\stoptext

Which gives me the attached output - with the expected hyphenation. So this is 
not a bug, but something is wrong in your document. And we won’t be able to say 
what unless you provide a minimal example.

Thomas



test.pdf
Description: Adobe PDF document
___
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
___