ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Metafun "Structure-Trees"
@ 2017-09-13 10:43 Ursula Hermann
  2017-09-13 18:26 ` Alan Braslau
  0 siblings, 1 reply; 6+ messages in thread
From: Ursula Hermann @ 2017-09-13 10:43 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'


[-- Attachment #1.1: Type: text/plain, Size: 176 bytes --]

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 


[-- Attachment #1.2: Type: text/html, Size: 2018 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Metafun "Structure-Trees"
  2017-09-13 10:43 Metafun "Structure-Trees" Ursula Hermann
@ 2017-09-13 18:26 ` Alan Braslau
  2017-09-14  7:47   ` Ursula Hermann
  0 siblings, 1 reply; 6+ messages in thread
From: Alan Braslau @ 2017-09-13 18:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Metafun "Structure-Trees"
  2017-09-13 18:26 ` Alan Braslau
@ 2017-09-14  7:47   ` Ursula Hermann
  2017-09-18  8:25     ` Ursula Hermann
  0 siblings, 1 reply; 6+ messages in thread
From: Ursula Hermann @ 2017-09-14  7:47 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

[-- Attachment #1: Type: text/plain, Size: 1806 bytes --]

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
___________________________________________________________________________________

[-- Attachment #2: English Grammar Page1-2.pdf --]
[-- Type: application/pdf, Size: 76909 bytes --]

[-- Attachment #3: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Metafun "Structure-Trees"
  2017-09-14  7:47   ` Ursula Hermann
@ 2017-09-18  8:25     ` Ursula Hermann
  2017-09-18  8:57       ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Ursula Hermann @ 2017-09-18  8:25 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Metafun "Structure-Trees"
  2017-09-18  8:25     ` Ursula Hermann
@ 2017-09-18  8:57       ` Hans Hagen
  2017-09-18  9:42         ` luigi scarso
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2017-09-18  8:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Ursula Hermann

On 9/18/2017 10:25 AM, Ursula Hermann wrote:
> 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:
Where does that example come from? How is startlable (or maybe 
startlabel) defined?


-----------------------------------------------------------------
                                           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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Metafun "Structure-Trees"
  2017-09-18  8:57       ` Hans Hagen
@ 2017-09-18  9:42         ` luigi scarso
  0 siblings, 0 replies; 6+ messages in thread
From: luigi scarso @ 2017-09-18  9:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Sep 18, 2017 at 10:57 AM, Hans Hagen <pragma@wxs.nl> wrote:
> On 9/18/2017 10:25 AM, Ursula Hermann wrote:
>>
>> 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:
>
> Where does that example come from? How is startlable (or maybe startlabel)
> defined?

there is a startlabel macro

texmf-dist/metapost/mptrees/mptrees.mp

of the 2017 TeXLive

Supposing to compile with the TeXLive enabled,
this code works:

\starttext
     This is me
\startMPcode
input mptrees;
u:=0.4cm;
dirlabel:=90;
abscoord:=true;
endlabelspace:=0.5cm;
draw startlabel("$S$");
draw tree[1][1]((-5.5u,4u),(5.5u,8u))("NP","","VP","");
\stopMPcode
\stoptext





-- 
luigi
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-09-18  9:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-13 10:43 Metafun "Structure-Trees" Ursula Hermann
2017-09-13 18:26 ` Alan Braslau
2017-09-14  7:47   ` Ursula Hermann
2017-09-18  8:25     ` Ursula Hermann
2017-09-18  8:57       ` Hans Hagen
2017-09-18  9:42         ` luigi scarso

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).