ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* LuaTeX problems with \seeindex and \from
@ 2008-04-13  9:57 Drazen Baic
  2008-04-14  7:57 ` Taco Hoekwater
  2008-04-14 13:40 ` Hans Hagen
  0 siblings, 2 replies; 15+ messages in thread
From: Drazen Baic @ 2008-04-13  9:57 UTC (permalink / raw)
  To: ntg-context

Hi,

this is my first posting to this list but I'm following it through the
archives for quite a long time.

First I would like to thank the list for this huge archive. By reading
the documentation and searching this archive most of my questions
about ConTeXt where answered. I searched for these problems but couldn't
find anything.

Now to my question: I was generating my documents with XeTeX until I
switched to LuaTeX and MKIV a few days ago. After I changed my
typescripts almost everything worked perfectly but the commands
\seeindex[]{}{} and \from[].

1) \seeindex simply doesn't seem to work. The index is generated but all
\seeindex entries are missing. It works perfectly when generated with
'texexec --xtx'. Generating the document with \version[temporary] shows
in the margin '> i Indexentry' and '> see Showindexentry' so it seems
that both entries are ok. I set up the register with
'\completeindex[interaction=text,align=yes]'

Is this a bug or are \seeindex entries handled different with LuaTeX?

2) The other problem took me quite some time to find out. When I create
the document with 'texexec --lua' LuaTeX it seems that everything runs
fine but no document is generated. There are no error messages even
with '--verbose' set - at least I couldn't see any. Finally I found out
that 'luatex' crashed during  'LuaTools | running command: luatex --fmt'
(see the CrashReporter log at the end of the mail).

I started to leave out all components of the product and started just
with the title page, then included chapter after chapter until I found
out the LuaTeX crashes when I leave the command \from[] in. I defined
the URL with \useURL[apache][http://httpd.apache.org/download.cgi] and
am using it in the document with \from[apache].

Here are the versions I'm using.

OS: Mac OS X 10.5.2
ConTeXt: 2008.04.11 00:07
LuaTeX: snapshot-0.25.2-2008041101


Many thanks in advance and regards,
Drazen Baic



Process:         luatex [269]
Path:            /usr/local/context-20080411/tex/texmf-osx-ppc/bin/luatex
Identifier:      luatex
Version:         ??? (???)
Code Type:       PPC (Native)
Parent Process:  texlua [268]

Date/Time:       2008-04-13 11:21:14.865 +0200
OS Version:      Mac OS X 10.5.2 (9C31)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000010
Crashed Thread:  0

Thread 0 Crashed:
0   luatex                         0x000dfc00 0x1000 + 912384
1   luatex                         0x00163f00 0x1000 + 1453824
2   luatex                         0x002c9820 0x1000 + 2918432

Thread 0 crashed with PPC Thread State 32:
  srr0: 0x000dfc00  srr1: 0x0200f030   dar: 0x00000010 dsisr: 0x40000000
    r0: 0x00000004    r1: 0xbfffdce0    r2: 0x00000004    r3: 0x00000004
    r4: 0x00000001    r5: 0x00000010    r6: 0x00000000    r7: 0x00000000
    r8: 0x00000030    r9: 0x0003a598   r10: 0x00019bd4   r11: 0x00002ecc
   r12: 0x95158b40   r13: 0x00000000   r14: 0x00000000   r15: 0x00000000
   r16: 0x00000000   r17: 0x00000000   r18: 0x00000000   r19: 0x00000003
   r20: 0x0380b880   r21: 0x03806cd0   r22: 0x00000000   r23: 0x00000001
   r24: 0x075910e0   r25: 0x03806cac   r26: 0x07591100   r27: 0x00000100
   r28: 0x00000020   r29: 0x07591100   r30: 0xbfffdce0   r31: 0x000e2cc4
    cr: 0x48000444   xer: 0x00000004    lr: 0x000dfbf4   ctr: 0x000e5d0c
vrsave: 0x00000000

Binary Images:
    0x1000 -   0x4bbff9 +luatex ??? (???)
/usr/local/context-20080411/tex/texmf-osx-ppc/bin/luatex
0x8fe00000 - 0x8fe30b23  dyld 96.2 (???)
<39109181acbf30fed542e6c9abcf1798> /usr/lib/dyld
0x90b77000 - 0x90b7cff6  libmathCommon.A.dylib ??? (???)
/usr/lib/system/libmathCommon.A.dylib
0x950ef000 - 0x95156ffb  libstdc++.6.dylib ??? (???)
<a4e9b10268b3ffac26d0296499b24e8e> /usr/lib/libstdc++.6.dylib
0x95157000 - 0x952f0fe3  libSystem.B.dylib ??? (???)
<754231f5e52ed8418f89f1f3369caf58> /usr/lib/libSystem.B.dylib
0x96842000 - 0x9684dffb  libgcc_s.1.dylib ??? (???)
<ea47fd375407f162c76d14d64ba246cd> /usr/lib/libgcc_s.1.dylib
0xffff8000 - 0xffff9703  libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: LuaTeX problems with \seeindex and \from
  2008-04-13  9:57 LuaTeX problems with \seeindex and \from Drazen Baic
@ 2008-04-14  7:57 ` Taco Hoekwater
  2008-04-14 16:50   ` Drazen Baic
  2008-04-14 13:40 ` Hans Hagen
  1 sibling, 1 reply; 15+ messages in thread
From: Taco Hoekwater @ 2008-04-14  7:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Hi,

Drazen Baic wrote:
> 
> with '--verbose' set - at least I couldn't see any. Finally I found out
> that 'luatex' crashed during  'LuaTools | running command: luatex --fmt'
> (see the CrashReporter log at the end of the mail).

Can you please email me (or post) the smallest test file you can
make that crashes? For debugging, I really need a test file.

Best wishes,
Taco
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: LuaTeX problems with \seeindex and \from
  2008-04-13  9:57 LuaTeX problems with \seeindex and \from Drazen Baic
  2008-04-14  7:57 ` Taco Hoekwater
@ 2008-04-14 13:40 ` Hans Hagen
  2008-04-14 16:50   ` Drazen Baic
  1 sibling, 1 reply; 15+ messages in thread
From: Hans Hagen @ 2008-04-14 13:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Drazen Baic wrote:
> Hi,
> 
> this is my first posting to this list but I'm following it through the
> archives for quite a long time.
> 
> First I would like to thank the list for this huge archive. By reading
> the documentation and searching this archive most of my questions
> about ConTeXt where answered. I searched for these problems but couldn't
> find anything.
> 
> Now to my question: I was generating my documents with XeTeX until I
> switched to LuaTeX and MKIV a few days ago. After I changed my
> typescripts almost everything worked perfectly but the commands
> \seeindex[]{}{} and \from[].
> 
> 1) \seeindex simply doesn't seem to work. The index is generated but all
> \seeindex entries are missing. It works perfectly when generated with
> 'texexec --xtx'. Generating the document with \version[temporary] shows
> in the margin '> i Indexentry' and '> see Showindexentry' so it seems
> that both entries are ok. I set up the register with
> '\completeindex[interaction=text,align=yes]'
> 
> Is this a bug or are \seeindex entries handled different with LuaTeX?

can be a bug ... so you need to make a small example file

-- 

-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: LuaTeX problems with \seeindex and \from
  2008-04-14  7:57 ` Taco Hoekwater
@ 2008-04-14 16:50   ` Drazen Baic
  2008-04-15  9:15     ` Taco Hoekwater
  2008-04-15 14:03     ` Taco Hoekwater
  0 siblings, 2 replies; 15+ messages in thread
From: Drazen Baic @ 2008-04-14 16:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Of course, I should have provided one in my first mail. Trying to create
a minimal test file I also found out that the crash only happens when
\setupinteraction [state=start] is set. Here is the file.

\setupinteraction [state=start]
\useURL[apache][http://httpd.apache.org/download.cgi]

\starttext
\startitemize
 \item Download Apache at \from[apache]
\stopitemize

\stoptext

Regards,
Drazen

On Mon, Apr 14, 2008 at 9:57 AM, Taco Hoekwater <taco@elvenkind.com> wrote:
>
>  Hi,
>
>
>  Drazen Baic wrote:
>  >
>  > with '--verbose' set - at least I couldn't see any. Finally I found out
>  > that 'luatex' crashed during  'LuaTools | running command: luatex --fmt'
>  > (see the CrashReporter log at the end of the mail).
>
>  Can you please email me (or post) the smallest test file you can
>  make that crashes? For debugging, I really need a test file.
>
>  Best wishes,
>  Taco
>  ___________________________________________________________________________________
>  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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: LuaTeX problems with \seeindex and \from
  2008-04-14 13:40 ` Hans Hagen
@ 2008-04-14 16:50   ` Drazen Baic
  2008-04-15 16:51     ` Hans Hagen
  0 siblings, 1 reply; 15+ messages in thread
From: Drazen Baic @ 2008-04-14 16:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Here is a small test file. Compiled with 'texexec --lua' the register
has only the entry 'Software 1' but it should have one additional
entry 'Apache see Software'. This works OK when compiled with
'texexec --xtx'

\starttext
\index{Software}Software
\seeindex{Apache}{Software}Apache

\placeindex
\stoptext

Regards,
Drazen

On Mon, Apr 14, 2008 at 3:40 PM, Hans Hagen <pragma@wxs.nl> wrote:
> Drazen Baic wrote:
>  > Hi,
>  >
>  > this is my first posting to this list but I'm following it through the
>  > archives for quite a long time.
>  >
>  > First I would like to thank the list for this huge archive. By reading
>  > the documentation and searching this archive most of my questions
>  > about ConTeXt where answered. I searched for these problems but couldn't
>  > find anything.
>  >
>  > Now to my question: I was generating my documents with XeTeX until I
>  > switched to LuaTeX and MKIV a few days ago. After I changed my
>  > typescripts almost everything worked perfectly but the commands
>  > \seeindex[]{}{} and \from[].
>  >
>  > 1) \seeindex simply doesn't seem to work. The index is generated but all
>  > \seeindex entries are missing. It works perfectly when generated with
>  > 'texexec --xtx'. Generating the document with \version[temporary] shows
>  > in the margin '> i Indexentry' and '> see Showindexentry' so it seems
>  > that both entries are ok. I set up the register with
>  > '\completeindex[interaction=text,align=yes]'
>  >
>  > Is this a bug or are \seeindex entries handled different with LuaTeX?
>
>  can be a bug ... so you need to make a small example file
>
>  --
>
>  -----------------------------------------------------------------
>                                            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
>  -----------------------------------------------------------------
>
>
> ___________________________________________________________________________________
>  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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: LuaTeX problems with \seeindex and \from
  2008-04-14 16:50   ` Drazen Baic
@ 2008-04-15  9:15     ` Taco Hoekwater
  2008-04-15  9:28       ` Mojca Miklavec
  2008-04-15 14:03     ` Taco Hoekwater
  1 sibling, 1 reply; 15+ messages in thread
From: Taco Hoekwater @ 2008-04-15  9:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Drazen Baic wrote:
> Hi,
> 
> Of course, I should have provided one in my first mail. Trying to create
> a minimal test file I also found out that the crash only happens when
> \setupinteraction [state=start] is set. Here is the file.

That example works OK for me, not even any warnings from valgrind.
But I am on linux-i686, so it could be a problem in the ppc build,
and I can't help you there. I hope someone else can take this up.

> \setupinteraction [state=start]
> \useURL[apache][http://httpd.apache.org/download.cgi]
> 
> \starttext
> \startitemize
>  \item Download Apache at \from[apache]
> \stopitemize
> 
> \stoptext

Best wishes,
Taco


___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: LuaTeX problems with \seeindex and \from
  2008-04-15  9:15     ` Taco Hoekwater
@ 2008-04-15  9:28       ` Mojca Miklavec
  2008-04-15  9:33         ` Taco Hoekwater
  0 siblings, 1 reply; 15+ messages in thread
From: Mojca Miklavec @ 2008-04-15  9:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Apr 15, 2008 at 11:15 AM, Taco Hoekwater wrote:
>
>
>  Drazen Baic wrote:
>  > Hi,
>  >
>  > Of course, I should have provided one in my first mail. Trying to create
>  > a minimal test file I also found out that the crash only happens when
>  > \setupinteraction [state=start] is set. Here is the file.
>
>  That example works OK for me, not even any warnings from valgrind.
>  But I am on linux-i686, so it could be a problem in the ppc build,
>  and I can't help you there. I hope someone else can take this up.
>
>
>  > \setupinteraction [state=start]
>  > \useURL[apache][http://httpd.apache.org/download.cgi]
>  >
>  > \starttext
>  > \startitemize
>  >  \item Download Apache at \from[apache]
>  > \stopitemize
>  >
>  > \stoptext
>
>
>
> Best wishes,
>  Taco

I get a bus error on mac intel as well.

The most funny part is that one doesn't even notice that fact when
running ConTeXt. It seems to run normally, only no PDF file is
created.

Mojca
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: LuaTeX problems with \seeindex and \from
  2008-04-15  9:28       ` Mojca Miklavec
@ 2008-04-15  9:33         ` Taco Hoekwater
  0 siblings, 0 replies; 15+ messages in thread
From: Taco Hoekwater @ 2008-04-15  9:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Mojca Miklavec wrote:
> 
> I get a bus error on mac intel as well.

Bus errors often point to code alignment errors, so it
could be that the same problem manifests on all 64-bit
platforms. But that is about the only hint I can give,
someone has to debug the application.

Best wishes,
Taco
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: LuaTeX problems with \seeindex and \from
  2008-04-14 16:50   ` Drazen Baic
  2008-04-15  9:15     ` Taco Hoekwater
@ 2008-04-15 14:03     ` Taco Hoekwater
  2008-04-15 16:46       ` Drazen Baic
  1 sibling, 1 reply; 15+ messages in thread
From: Taco Hoekwater @ 2008-04-15 14:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Drazen Baic wrote:
> Hi,
> 
> Of course, I should have provided one in my first mail. Trying to create
> a minimal test file I also found out that the crash only happens when
> \setupinteraction [state=start] is set. Here is the file.
> 
> \setupinteraction [state=start]
> \useURL[apache][http://httpd.apache.org/download.cgi]
> 
> \starttext
> \startitemize
>  \item Download Apache at \from[apache]
> \stopitemize
> 
> \stoptext

Mojca helped debugging this, and there is a patch in the luatex
repository that should fix it. As Hans said already, you can expect
a new luatex binary and context release later this week.

Best wishes,
Taco
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: LuaTeX problems with \seeindex and \from
  2008-04-15 14:03     ` Taco Hoekwater
@ 2008-04-15 16:46       ` Drazen Baic
  2008-04-15 16:51         ` Taco Hoekwater
  0 siblings, 1 reply; 15+ messages in thread
From: Drazen Baic @ 2008-04-15 16:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Apr 15, 2008 at 4:03 PM, Taco Hoekwater <taco@elvenkind.com> wrote:
> Hi,
>
>
>  Drazen Baic wrote:
>  > Hi,
>  >
>  > Of course, I should have provided one in my first mail. Trying to create
>  > a minimal test file I also found out that the crash only happens when
>  > \setupinteraction [state=start] is set. Here is the file.
>  >
>  > \setupinteraction [state=start]
>  > \useURL[apache][http://httpd.apache.org/download.cgi]
>  >
>  > \starttext
>  > \startitemize
>  >  \item Download Apache at \from[apache]
>  > \stopitemize
>  >
>  > \stoptext
>
>  Mojca helped debugging this, and there is a patch in the luatex
>  repository that should fix it. As Hans said already, you can expect
>  a new luatex binary and context release later this week.
>

You are really unbelievable fast in fixing bugs. Thank you very much!
And I would like to thank all the ConTeXt and LuaTeX developers.
This software is amazing!

Regards,
Drazen
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: LuaTeX problems with \seeindex and \from
  2008-04-14 16:50   ` Drazen Baic
@ 2008-04-15 16:51     ` Hans Hagen
  2008-04-15 18:47       ` Drazen Baic
  0 siblings, 1 reply; 15+ messages in thread
From: Hans Hagen @ 2008-04-15 16:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Drazen Baic wrote:
> Hi,
> 
> Here is a small test file. Compiled with 'texexec --lua' the register
> has only the entry 'Software 1' but it should have one additional
> entry 'Apache see Software'. This works OK when compiled with
> 'texexec --xtx'
> 
> \starttext
> \index{Software}Software
> \seeindex{Apache}{Software}Apache
> 
> \placeindex
> \stoptext

see was not supported yet; i added it

-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: LuaTeX problems with \seeindex and \from
  2008-04-15 16:46       ` Drazen Baic
@ 2008-04-15 16:51         ` Taco Hoekwater
  0 siblings, 0 replies; 15+ messages in thread
From: Taco Hoekwater @ 2008-04-15 16:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Drazen Baic wrote:
>>
>>  Mojca helped debugging this, and there is a patch in the luatex
>>  repository that should fix it. As Hans said already, you can expect
>>  a new luatex binary and context release later this week.
>>
> 
> You are really unbelievable fast in fixing bugs. Thank you very much!

This is not always the case, to be honest. Mostly, you are lucky that
luatex bugs are a top priority right now. Some of my bib module
bugs are have been open for years, I am ashamed to admit.

Best wishes,
Taco
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: LuaTeX problems with \seeindex and \from
  2008-04-15 16:51     ` Hans Hagen
@ 2008-04-15 18:47       ` Drazen Baic
  2008-04-15 22:02         ` Drazen Baic
  0 siblings, 1 reply; 15+ messages in thread
From: Drazen Baic @ 2008-04-15 18:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Apr 15, 2008 at 6:51 PM, Hans Hagen <pragma@wxs.nl> wrote:
> Drazen Baic wrote:
>  > Hi,
>  >
>  > Here is a small test file. Compiled with 'texexec --lua' the register
>  > has only the entry 'Software 1' but it should have one additional
>  > entry 'Apache see Software'. This works OK when compiled with
>  > 'texexec --xtx'
>  >
>  > \starttext
>  > \index{Software}Software
>  > \seeindex{Apache}{Software}Apache
>  >
>  > \placeindex
>  > \stoptext
>
>  see was not supported yet; i added it

Thank you very much!

Regards,
Drazen
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: LuaTeX problems with \seeindex and \from
  2008-04-15 18:47       ` Drazen Baic
@ 2008-04-15 22:02         ` Drazen Baic
  2008-04-16 21:43           ` Drazen Baic
  0 siblings, 1 reply; 15+ messages in thread
From: Drazen Baic @ 2008-04-15 22:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Apr 15, 2008 at 8:47 PM, Drazen Baic <dpeterx@googlemail.com> wrote:
> On Tue, Apr 15, 2008 at 6:51 PM, Hans Hagen <pragma@wxs.nl> wrote:
>  > Drazen Baic wrote:
>  >  > Hi,
>  >  >
>  >  > Here is a small test file. Compiled with 'texexec --lua' the register
>  >  > has only the entry 'Software 1' but it should have one additional
>  >  > entry 'Apache see Software'. This works OK when compiled with
>  >  > 'texexec --xtx'
>  >  >
>  >  > \starttext
>  >  > \index{Software}Software
>  >  > \seeindex{Apache}{Software}Apache
>  >  >
>  >  > \placeindex
>  >  > \stoptext
>  >
>  >  see was not supported yet; i added it

I just did an update to ConTeXt 2008.04.15 21:21 and it works perfectly
for my example above. But if you use abbreviations the 'see ...' entry in
the registers shows the value between the brackets in the abbreviation
definition. Here is a small example:

\definesynonyms [abbreviation] [abbreviations][\infull]
\setupsynonyms [abbreviation]
\abbreviation [GCc] {\sc gcc} {GNU C Compiler}
\abbreviation [GNU] {\sc gnu} {{\sc gnu'}s Not Unix}

\starttext
\index{Software}Software
\seeindex{Apache}{Software}Apache
\index[GCC]{\GCc}\GCc\
\seeindex[GNU C Compiler]{\GNU\ C Compiler}{\GCc}\GNU\ C Compiler

\placeindex

\stoptext

I defined the GCc abbreviation with small c on purpose to demonstrate
that 'GCc' shows up in the register instead of {\sc gcc}.

I tried to look at the file core-reg.lua and thought that the error has
to be at

if vv[1] == 'e' then
    -- format reference pagespec realpage
    flush(template.page:format(class,",",vv[4],vv[5],vv[3]))
elseif vv[1] == 's' then
    flush(template.see:format(class,",",vv[5],vv[3]))

but as I know nothing about Lua I gave up pretty soon.

Regards,
Drazen
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: LuaTeX problems with \seeindex and \from
  2008-04-15 22:02         ` Drazen Baic
@ 2008-04-16 21:43           ` Drazen Baic
  0 siblings, 0 replies; 15+ messages in thread
From: Drazen Baic @ 2008-04-16 21:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> On Tue, Apr 15, 2008 at 8:47 PM, Drazen Baic <dpeterx@googlemail.com> wrote:
>  > On Tue, Apr 15, 2008 at 6:51 PM, Hans Hagen <pragma@wxs.nl> wrote:
>  >  > Drazen Baic wrote:
>  >  >  > Hi,
>  >  >  >
>  >  >  > Here is a small test file. Compiled with 'texexec --lua' the register
>  >  >  > has only the entry 'Software 1' but it should have one additional
>  >  >  > entry 'Apache see Software'. This works OK when compiled with
>  >  >  > 'texexec --xtx'
>  >  >  >
>  >  >  > \starttext
>  >  >  > \index{Software}Software
>  >  >  > \seeindex{Apache}{Software}Apache
>  >  >  >
>  >  >  > \placeindex
>  >  >  > \stoptext
>  >  >
>  >  >  see was not supported yet; i added it
>
>  I just did an update to ConTeXt 2008.04.15 21:21 and it works perfectly
>  for my example above. But if you use abbreviations the 'see ...' entry in
>  the registers shows the value between the brackets in the abbreviation
>  definition. Here is a small example:
>
>  \definesynonyms [abbreviation] [abbreviations][\infull]
>  \setupsynonyms [abbreviation]
>  \abbreviation [GCc] {\sc gcc} {GNU C Compiler}
>  \abbreviation [GNU] {\sc gnu} {{\sc gnu'}s Not Unix}
>
>
>  \starttext
>  \index{Software}Software
>  \seeindex{Apache}{Software}Apache
>  \index[GCC]{\GCc}\GCc\
>  \seeindex[GNU C Compiler]{\GNU\ C Compiler}{\GCc}\GNU\ C Compiler
>
>  \placeindex
>
>  \stoptext
>
>  I defined the GCc abbreviation with small c on purpose to demonstrate
>  that 'GCc' shows up in the register instead of {\sc gcc}.
>
>  I tried to look at the file core-reg.lua and thought that the error has
>  to be at
>
>  if vv[1] == 'e' then
>     -- format reference pagespec realpage
>     flush(template.page:format(class,",",vv[4],vv[5],vv[3]))
>  elseif vv[1] == 's' then
>     flush(template.see:format(class,",",vv[5],vv[3]))
>
>  but as I know nothing about Lua I gave up pretty soon.
>
>  Regards,
>  Drazen
>

I played a little bit around with the above sample and thought that
putting a second '\' in front of the second argument for the \seeindex
command could help as it looks like the abbreviation \GCc looses the
backslash when the 'see' entry is generated in the registry.

As this was working I looked at the '.toc' file and saw that the key and
entry values are enclosed between [===[ and ]===] but the abbreviation
\GCc wasn't. I thought that maybe this works like an escaping mechanism
and changed the command \mksaveregistersee in core-reg.mkiv from

\def\mksaveregistersee#1#2#3#4#5#6#7% class type reference key entry
see pagespec
  {\expanded{\writeutilitytua{ti(jr['#1'],{'#2','#3',\!!bs#4\!!es,\!!bs#5\!!es,'#6','#7'})}}}

to

\def\mksaveregistersee#1#2#3#4#5#6#7% class type reference key entry
see pagespec
  {\expanded{\writeutilitytua{ti(jr['#1'],{'#2','#3',\!!bs#4\!!es,\!!bs#5\!!es,\!!bs#6\!!es,'#7'})}}}

and it worked. I don't know if this breaks something else and if I was
right with what
I thought but the register is now created correctly and I couldn't see
anything weird
going on.

Regards,
Drazen
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2008-04-16 21:43 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-13  9:57 LuaTeX problems with \seeindex and \from Drazen Baic
2008-04-14  7:57 ` Taco Hoekwater
2008-04-14 16:50   ` Drazen Baic
2008-04-15  9:15     ` Taco Hoekwater
2008-04-15  9:28       ` Mojca Miklavec
2008-04-15  9:33         ` Taco Hoekwater
2008-04-15 14:03     ` Taco Hoekwater
2008-04-15 16:46       ` Drazen Baic
2008-04-15 16:51         ` Taco Hoekwater
2008-04-14 13:40 ` Hans Hagen
2008-04-14 16:50   ` Drazen Baic
2008-04-15 16:51     ` Hans Hagen
2008-04-15 18:47       ` Drazen Baic
2008-04-15 22:02         ` Drazen Baic
2008-04-16 21:43           ` Drazen Baic

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