From: "Ursula Hermann" <ursula.hermann@univie.ac.at>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: Metafun "Structure-Trees"
Date: Mon, 18 Sep 2017 10:25:14 +0200 [thread overview]
Message-ID: <000001d33057$a6e50030$f4af0090$@univie.ac.at> (raw)
In-Reply-To: <000901d32d2d$a63d2680$f2b77380$@univie.ac.at>
Hello!
I have tried an example:
1 \starttext
2 This is me
3 \startMPcode
4 u:=0.4cm;
5 dirlabel:=90;
6 abscoord:=true;
7 endlabelspace:=0.5cm;
8 draw startlable ("S")
9 draw tree[1][1]((-5.5u,4u)(5.5u,8u)) ("NP","","VP",""]
10 \stopMPcode
11 \stoptext
but there is somethin wrong, because the mistake says:
Command Line: context.exe --synctex=-1 "graphic.tex"
Startup Folder: D:\My Documents
mtx-context | run 1: luatex --fmt="C:/Users/Ursula/.texlive2017/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en" --jobname="graphic" --lua="C:/Users/Ursula/.texlive2017/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui" --no-parse-first-line --synctex=-1 --c:currentrun=1 --c:directives="system.synctex=-1" --c:fulljobname="./graphic.tex" --c:input="./graphic.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:synctex="-1" "cont-yes.mkiv"
This is LuaTeX, Version 1.0.4 (TeX Live 2017/W32TeX)
system commands enabled.
system > synctex functionality is enabled (-1), expect runtime overhead!
open source > level 1, order 1, name 'C:/texlive/2017/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv'
system >
system > ConTeXt ver: 2017.05.15 21:48 MKIV beta fmt: 2017.8.8 int: english/english
system >
system > 'cont-new.mkiv' loaded
open source > level 2, order 2, name 'C:/texlive/2017/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
close source > level 2, order 2, name 'C:/texlive/2017/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
system > files > jobname 'graphic', input './graphic', result 'graphic'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
system > synctex functionality is enabled (-1), expect runtime overhead!
open source > level 2, order 3, name 'D:/My Documents/graphic.tex'
fonts > preloading latin modern fonts (second stage)
fonts > 'fallback modern-designsize rm 12pt' is loaded
metapost > initializing instance 'metafun' using format 'metafun'
metapost > loading 'metafun' as 'C:/texlive/2017/texmf-dist/metapost/context/base/mpiv/metafun.mpiv' using method 'default'
metapost > initializing number mode 'scaled'
tex error > mp error on line 10 in file D:/My Documents/graphic.tex:
>> abscoord
>> true
! Equation cannot be performed (numeric=boolean).
<to be read again>
;
<*> u:=0.4cm; dirlabel:=90; abscoord:=true;
endlabelspace:=0.5cm; draw start...
I'm sorry, but I don't know how to make such things equal.
(See the two expressions just above the error message.)
>> startlable
! Improper `addto'.
<to be read again>
withpen
draw->...:also(EXPR0)else:doublepath(EXPR0)withpen
.currentpen.fi._op_
<to be read again>
(
<*> ...ue; endlabelspace:=0.5cm; draw startlable (
"S") draw tree[1][1]((-5.5...
This expression should have specified a known path.
So I'll not change anything just now.
! Extra tokens will be flushed.
<to be read again>
(
<*> ...ue; endlabelspace:=0.5cm; draw startlable (
"S") draw tree[1][1]((-5.5...
I've just read as much of that statement as I could fathom,
so a semicolon should have been next. It's very puzzling...
but I'll try to get myself back together, by ignoring
everything up to the next `;'. Please insert a semicolon
now in front of anything that you don't want me to delete.
(See Chapter 27 of The METAFONTbook for an example.)
[1]
1 \starttext
2 This is me
3 \startMPcode
4 u:=0.4cm;
5 dirlabel:=90;
6 abscoord:=true;
7 endlabelspace:=0.5cm;
8 draw startlable ("S")
9 draw tree[1][1]((-5.5u,4u)(5.5u,8u)) ("NP","","VP",""]
10 >> \stopMPcode
11 \stoptext
12
?
-----Ursprüngliche Nachricht-----
Von: ntg-context [mailto:ntg-context-bounces@ntg.nl] Im Auftrag von Ursula Hermann
Gesendet: Donnerstag, 14. September 2017 09:47
An: 'mailing list for ConTeXt users'
Betreff: Re: [NTG-context] Metafun "Structure-Trees"
Hallo!
I have put a Document here. It is an PDF with 2 Pages. Can one look at the Trees and tell me how i can do this with Metapost?
Thank you
-----Ursprüngliche Nachricht-----
Von: ntg-context [mailto:ntg-context-bounces@ntg.nl] Im Auftrag von Alan Braslau
Gesendet: Mittwoch, 13. September 2017 20:26
An: mailing list for ConTeXt users
Betreff: Re: [NTG-context] Metafun "Structure-Trees"
What exactly do you mean?
(we can build tree diagrams with Metapost)
Alan
> On 13 Sep 2017, at 12:43, Ursula Hermann <ursula.hermann@univie.ac.at> wrote:
>
> Hello!
>
> My question is: Is it possible to make „Structure Trees“ for English Sentences with „Categorial Grammar“? Sorry, I have no example.
>
> Thanks
>
> Uschi Hermann
> ______________________________________________________________________
> _____________ 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
___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2017-09-18 8:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-13 10:43 Ursula Hermann
2017-09-13 18:26 ` Alan Braslau
2017-09-14 7:47 ` Ursula Hermann
2017-09-18 8:25 ` Ursula Hermann [this message]
2017-09-18 8:57 ` Hans Hagen
2017-09-18 9:42 ` luigi scarso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000001d33057$a6e50030$f4af0090$@univie.ac.at' \
--to=ursula.hermann@univie.ac.at \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).