Sorry for delay,
Hi Eli,
EZ> I was mostly replying to your original message, not to the one I
EZ> saw today.
This is the way it is.
EZ> It seemed to me that the latter was saying the same
EZ> things I found yesterday night when I fixed the handling of your
EZ> original test case.
Yes that's it.
EZ> If I misunderstood some of your latest message, I'm sorry; I
EZ> certainly didn't do that on purpose.
Doesn't matter. It wasn't your fault. It was mine.
[...deleted....]
EZ> I tried to explain why execute_string cannot be freely called in
EZ> this case: the {foo} construct defeats it.
I understand. We can't use execute_string cause we hurting other
things.
What about my suggestion only to call execute_string, if there is not
brace at the beginning of an argument? Take a look the explanation
some line down.
>> The defined_name value within source code shows:
>> "@value{AT}" and not more. The rest will be added in later
>> reader loop and not as a result from scanning arguments to
>> @defmac.
>> It should be:
>> "@value{AT}TESTMACOR@value{AT}" This can be resolved in
>> HTML using execute_string ().
EZ> Sorry, I don't follow your line of reasoning here. Could you
EZ> please post an example of a Texinfo source to which you refer
here?
Sorry, I should reread my messages before I post them. sorry.
First the following code:
@defmac @value{AT}TESTBLA@value{AT} Para1
..
@end defmac
I have debuged the source and found out, that actualy (Texinfo 4.0)
the defun_internal function get the following in defined_name:
"@value{AT}" as the first parameter of @defmac. The rest of the string
is later read in reader loop and expanded ("TESTBLA" and the second
@value{AT}). That's wy it works (better looks like working) in Info,
but in HTML not.
My opinion is that the defined_name SHOULD have the following in
"@value{AT}TESTBLA@value{AT}", which can easely expanded using
execute_string into HTML area.
IMHO makeinfo should distinguish the parameters of all those @defXXs
using the spaces (may be whitespaces) between the parameters.
Second Code part:
@defmac {@value{AT}TESTBLA@value{AT}} Para
.
@end defmac
There shouldn't be replaced anything. The result in Info like in HTML
should be "@value{AT}TESTBLA@value{AT}".
My opinion is, that this will not hurt other things. Or do you have
anything else in mind what would bread my suggestion? I hope not ;-)
[...deleted...]
EZ> It is important for me to know whether I'm on the right track or
not.
Like you get out of the above explanation NO. Or better, little parts
are solved.
Last step: a real life example (patched Texinfo 4.0 with yours):
,,,
(o o) File: test.texi
---*reiss*------*schnippel*------oOO--(_)--OOo-------*knabber*-----*fetz*---
\input texinfo @c -*-texinfo-*-
@setfilename test.info
@settitle test
@set AT @@@@
@defmac @value{AT}TESTMACRO@value{AT} (Paras)
@end defmac
This is a chapter about macros like @@@@TESTMACRO@@@@,
which should be represented the same way.
@bye
---*reiss*------*schnippel*--------------------------*knabber*-----*fetz*---
Next step result in GNU-Info:
,,,
(o o) File: test.info
---*reiss*------*schnippel*------oOO--(_)--OOo-------*knabber*-----*fetz*---
This is test.info, produced by makeinfo version 4.0 from test.texi.
- Macro: @@TESTMACRO@@ (Paras)
This is a chapter about macros like @@TESTMACRO@@, which should be
represented the same way.
---*reiss*------*schnippel*--------------------------*knabber*-----*fetz*---
The last step HTML:
,,,
(o o) File: test.html
---*reiss*------*schnippel*------oOO--(_)--OOo-------*knabber*-----*fetz*---
1 <html lang="en"><head>
2 <title>test</title>
3 <meta http-equiv="Content-Type" content="text/html">
4 <meta name=description content="test">
5 <meta name=generator content="makeinfo 4.0">
6 <link href="http://texinfo.org/" rel=generator-home>
7 </head><body>
8
9 <<p>p>
10 <table width="100%">
11 <tr>
12 <td align="left"><b>@@</b><i>TESTMACRO@@ (Paras)
13 </i></td>
14 <td align="right">Macro</td>
15 </tr>
16 </table>
17 <table width="95%" align="center">
18 <tr><td>
19 </TD></TR>
20 </TABLE>
21 This is a chapter about macros like @@TESTMACRO@@,
22 which should be represented the same way.
23
24 </body></html>
---*reiss*------*schnippel*--------------------------*knabber*-----*fetz*---
As you can see above the "@value{AT}" of source is read in one step
into defined_name and the rest is scaned through process_defun_args and
not as part of the argument defined_name (line 12 shows it).
defined_name is what is standing between "<b>" and "</b>".
--
Jabba dabba dooohhh e-mail: [EMAIL PROTECTED]
'til next mail. Internet: http://www.fido.de/~kama/
Karl Heinz 7:-) Fidonet: 2:2452/110.18
Voice: +49 241 962380