[Dev-luatex] .BEILMOPS or how I stopped worrying and love Open Source

Hans Hagen pragma at wxs.nl
Tue Dec 11 09:45:10 CET 2007


Jonathan Sauer wrote:
> Okay, this is weird (and long), but it gets clearer near the end:
> The pattern created is:

(this list is not really the place for indepth lua discussions -)

> [1 = elem  2 = sep  3 = elem  4 = sep  ]
> 00: call -> 2
> 01: jmp -> 51
> 02: opencapture table(n = 0) (0)
> 03: call -> 10
> 04: choice -> 8 (0)
> 05: call -> 41
> 06: call -> 10
> 07: partial_commit -> 5
> 08: closecapture close(n = 0) (0)
> 09: ret 
> 10: span [(09-0a)(20)]
> 19: opencapture simple(n = 0) (0)
> 20: choice -> 23 (0)
> 21: call -> 41
> 22: failtwice 
> 23: any * 1
> 24: choice -> 30 (0)
> 25: choice -> 28 (0)
> 26: call -> 41
> 27: failtwice 
> 28: any * 1
> 29: partial_commit -> 25
> 30: closecapture close(n = 0) (0)
> 31: span [(09-0a)(20)]
> 40: ret 
> 41: set [(2c)(7b)(7d)]
> 50: ret 
> 51: end 
> 
> 
> However, if I run this with my own format, the pattern is:
                                  ^^^^^^^^^^

> [1 = elem  2 = sep  3 = elem  4 = sep  ]
> 00: call -> 2
> 01: jmp -> 51
> 02: opencapture table(n = 0) (0)
> 03: call -> 10
> 04: choice -> 8 (0)
> 05: call -> 41
> 06: call -> 10
> 07: partial_commit -> 5
> 08: closecapture close(n = 0) (0)
> 09: ret 
> 10: span [(0a)(20)(2e)(42)(45)(49)(4c-4d)(4f-50)(53)]
> 19: opencapture simple(n = 0) (0)
> 20: choice -> 23 (0)
> 21: call -> 41
> 22: failtwice 
> 23: any * 1
> 24: choice -> 30 (0)
> 25: choice -> 28 (0)
> 26: call -> 41
> 27: failtwice 
> 28: any * 1
> 29: partial_commit -> 25
> 30: closecapture close(n = 0) (0)
> 31: span [(0a)(20)(2e)(42)(45)(49)(4c-4d)(4f-50)(53)]
> 40: ret 
> 41: set [(2c)(7b)(7d)]
> 50: ret 
> 51: end 

when i run it in context i get:

[A]
[B]
[C]
[D]
[E]
[F][1 = elem  2 = sep  3 = elem  4 = sep  ]
00: call -> 2
01: jmp -> 51
02: opencapture table(n = 0) (0)
03: call -> 10
04: choice -> 8 (0)
05: call -> 41
06: call -> 10
07: partial_commit -> 5
08: closecapture close(n = 0) (0)
09: ret
10: span [(09-0a)(20)]
19: opencapture simple(n = 0) (0)
20: choice -> 23 (0)
21: call -> 41
22: failtwice
23: any * 1
24: choice -> 30 (0)
25: choice -> 28 (0)
26: call -> 41
27: failtwice
28: any * 1
29: partial_commit -> 25
30: closecapture close(n = 0) (0)
31: span [(09-0a)(20)]
40: ret
41: set [(2c)(7b)(7d)]
50: ret
51: end

so it looks like you have to track down what your format is doing

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the dev-luatex mailing list