Re: [NTG-context] meaning of error message?

2015-11-25 Thread Alan Bowen
Hi, Wolfgang—

The lines from the file are:


\startextract   <— LINE 43
\startparagraph
\startlines
.
.
\footnote[particles]{A look at the particles in this sentence suggests that
something has gone wrong. The initial «{δέ}» is mildly adversative, as is
the «{δέ}» at the beginning of the sentence opening the second paragraph.
This is in line with the careful disposition of the {\emph cola} in the
whole introduction: independent, principal clauses are always introduced by
conjunctive «{δέ}», and inside them the subclauses in contraposition are
regularly marked by the canonical «{μέν \dots δέ}». Moreover, every «{μέν}»
is answered by a «{δέ}». The only exception is the «{μέν}» in this sentence
[lines 23–24]: a clause such as «{οἱ δὲ ἐπιμερεῖϲ οὔ}» (\quote{whereas
epimeric do not}) is surely missing due to scribal mistake. I regard the
correction as certain, given the strictly analogous structure of the
immediately following sentence. Nothing in the interpretation that I shall
develop depends on this textual detail, however.}
%
Γινώϲκομεν δὲ καὶ τῶν φθόγγων τοὺϲ μὲν ϲυμφώ{-}
νουϲ ὄνταϲ, τοὺϲ δὲ διαφώνουϲ, καὶ τοὺϲ μὲν ϲυμφώνουϲ
μίαν κρᾶϲιν τὴν ἐξ ἀμφοῖν ποιοῦνταϲ, τοὺϲ δὲ διαφώ{-}   <—
   LINE 62
νουϲ οὔ. τούτων οὕτωϲ ἐχόντων εἰκὸϲ\note[03] τοὺϲ ϲυμφώνουϲ
%
\footnotetext[03]{εἰκόϲ: notice the determination of likelihood in a place
where in the first paragraph one finds two occurrences of a determination
of necessity. I would link this feature to a perceptibly less firm status
of the assumed correspondence between notes and numbers. Compare the more
precise statement occurring on the second line of the first paragraph:
«{τοὺϲ φθόγγουϲ ἀναγκαῖον ἐν ἀριθμοῦ λόγῳ λέγεϲθαι πρὸϲ ἀλλήλουϲ}».}
%
\Lmt{M160.1}φθόγγουϲ, ἐπειδὴ μίαν τὴν ἐξ ἀμφοῖν ποιοῦνται κρᾶϲιν
τῆϲ φωνῆϲ, εἶναι \underbar{τῶν ἐν ἑνὶ ὀνόματι πρὸϲ ἀλλήλουϲ
λεγομένων ἀριθμῶν},\note[04]  ἤτοι πολλαπλαϲίουϲ ὄνταϲ ἢ ἐπι{-}
%
\footnotetext[04]{The {\emph variatio} «({ἐν}) {ἑνὶ ὀνόματι}» is very
likely a scribal {\emph lapsus}, even if it is not clear whether the
mistake is a haplography or a dittography.}
%
μορίουϲ.
\stoplines
\stopparagraph
\stopextract  <— LINE 80


​Many thanks for any thoughts on this or advice.

Alan
​

On Tue, Nov 24, 2015 at 3:27 PM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

> Alan Bowen 
> 24. November 2015 um 20:47
> I have been experimenting with tagging. But my attempts with two files now
> have generated this sort of error message:
>
> lua error   > lua error on line 62 in file c_Int-A002_Acerbi.tex:
>
>
> .../ConTeXt/tex/texmf-context/tex/context/base/strc-tag.lua:407: bad
> argument #2 to 'lpegmatch' (string expected, got boolean)
>
> stack traceback:
>
> [C]: in function 'lpegmatch'
>
> .../ConTeXt/tex/texmf-context/tex/context/base/strc-tag.lua:407: in
> function 'strippedtag'
>
> .../ConTeXt/tex/texmf-context/tex/context/base/back-exp.lua:740: in
> function <.../ConTeXt/tex/texmf-context/tex/context/base/back-exp.lua:739>
>
> (...tail calls...)
>
> Could someone tell me what this means—is there are error in my encoding or
> a problem in lua?
>
> What’s the content of line 62 (plus a few lines before/after) in your file
> c_Int_A002_Acerbi.tex?
>
> 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
>
> ___
>
___
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] natural tables and columndistance/spaceinbetween

2015-11-25 Thread Alan BRASLAU
In natural tables
http://wiki.contextgarden.net/TABLE

the parameters
  columndistance=dimension,
and
  spaceinbetween=dimension,
will set the gaps between columns and rows, respectively.

Is there some way of specifying row gaps for specific rows?
For example, say that I only want a gap after the first row.
I tried:

\bTABLE
  \bTR [spaceinbetween=.25em]
 \bTD 1 \eTD
 \bTD 2 \eTD
  \eTR
  \bTR
 \bTD A \eTD
 \bTD B \eTD
  \eTR
  \bTR
\bTD a \eTD
\bTD b \eTD
  \eTR
\eTABLE

Alternately, I tried
\setupTABLE [r][1][spaceinbetween=.25em]

but these do not work.


One might think about trying

  \bTR [bottomframe=on,framecolor=white,rulethickness=.25em]
  ...
  \eTR

but this presents several problems:
1) When using background=color, the background color gives a hairline
overflow beyond the rule, at least using the pdf viewers that I have on
my computer.
2) there appears to be some interference between setting rulethickness
and columndistance, so that spaces between columns disappear when
putting a thick bottomframe. Of course, one could kludge a column
separation using a rightframe, but this is not satisfactory.
3) The use of a white rule when one really wants to leave some space is
not very satisfying.

Does anyone have any suggestions?
Thanks

Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] External fonts handling

2015-11-25 Thread Jan U. Hasecke
Am 25.11.2015 um 12:52 schrieb Michał Goliński:
> I have a bunch of fonts in my home directory in the .fonts subdirectory.
> After an update, I used to run:
> 
> OSFONTDIR=$HOME/.fonts mtxrun --script fonts --reload
> 
> so that the font cache is regenerated. This workflow works in TeXLive,
> but recently fails in beta.

I've got a similar problem with EB Garamond installed in
/usr/share/fonts/opentype/ebgaramond

I tried all hints on contextgarden but could not get it to work.

juh
___
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] External fonts handling

2015-11-25 Thread Jan U. Hasecke
In my previous message I wrote that I had the same problem.

I solved it by these steps:

in .bashrc:

export
OSFONTDIR="/usr/local/share/fonts;/usr/share/fonts;$HOME/.fonts;$HOME/.local/share/fonts"


cd $HOME/context

rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .

./first-setup.sh --modules=all


Note: In contextgarden the last command reads:

sh ./first-setup.sh --modules=all

I guess that my font directory was never read by the install script
because I use bash not sh.

So make sure that your font directories are well exported whatever shell
you use. I am not an expert in this.


A second note:

Ubuntu installs new fonts into the directory

$HOME/.local/share/fonts

Maybe such a hint somewhere in the garden would help.


Ciao!
juh

-- 
Das ZEN von Pandoc
Bücher und E-Books einfach und professionell produzieren
http://www.amazon.de/Das-ZEN-von-Pandoc-professionell/dp/1505218799/
Paperback (232 Seiten) und E-Book
___
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] External fonts handling

2015-11-25 Thread Michał Goliński

Dear list,

I have a bunch of fonts in my home directory in the .fonts subdirectory. 
After an update, I used to run:


OSFONTDIR=$HOME/.fonts mtxrun --script fonts --reload

so that the font cache is regenerated. This workflow works in TeXLive, 
but recently fails in beta.


For the MWE:

\definefontfamily [mainface] [rm] [Minion Pro]
\setupbodyfont[mainface, 12pt]

\starttext

\input knuth

\stoptext

I get the following error:


$ context test.tex

resolvers   | trees | analyzing 'home:texmf'
mtx-context | run 1: luatex 
--fmt="/home/michal/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" 
--jobname="test" 
--lua="/home/michal/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" 
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./test.tex" 
--c:input="./test.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"

This is LuaTeX, Version beta-0.85.0 (TeX Live 2016/dev) (rev 5550)
 system commands enabled.

resolvers   > trees > analyzing 'home:texmf'

system  > callbacks > not registering frozen 'find_format_file'
open source > 1 > 1 > 
/home/michal/context/tex/texmf-context/tex/context/base/cont-yes.mkiv


ConTeXt  ver: 2015.11.19 19:13 MKIV beta  fmt: 2015.11.25  int: 
english/english


system  > 'cont-new.mkiv' loaded
open source > 2 > 2 > 
/home/michal/context/tex/texmf-context/tex/context/base/cont-new.mkiv
close source> 2 > 2 > 
/home/michal/context/tex/texmf-context/tex/context/base/cont-new.mkiv

system  > files > jobname 'test', input './test', result 'test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > /dev/shm/test.tex
fonts   > preloading modern-designsize (math)
fonts   > typescripts > unknown library 'modern-designsize'
fonts   > 'fallback modern-designsize mm 12pt' is loaded
fonts   > preloading modern-designsize (mono)
fonts   > 'fallback modern-designsize tt 12pt' is loaded
fonts   > defining > source file 'MinionPro-Regular.otf' is not 
found
open source > 3 > 4 > 
/home/michal/context/tex/texmf-context/tex/context/sample/knuth.tex
close source> 3 > 4 > 
/home/michal/context/tex/texmf-context/tex/context/sample/knuth.tex
backend > xmp > using file 
'/home/michal/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'

pages   > flushing realpage 1, userpage 1
close source> 2 > 4 > /dev/shm/test.tex
close source> 1 > 4 > 
/home/michal/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

Expected a string for (S), not: nil
Expected a string for (S), not: nil

!LuaTeX error: cannot find OpenType font file for reading ()
 ==> Fatal error occurred, no output PDF file produced!

mtx-context | fatal error: return code: 1



But if I run context this way:

$ OSFONTDIR=$HOME/.fonts context test.tex

everything works.

Has font handling changed in some subtle way recently?

Best regards
Michal
___
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
___