Hi there,

first, thank you Eli for the good and fast explanation,
but I get in trouble with this.

I'm working on a program (perl script) which uses some
text replacements (@@MLTOFN@@) etc. So I have to document
them. The next thing is I have a base file which consists
of two languages which will be seperated through this perl
script into single language Texinfo files.
So I would like to document the macro and at some places I
would like use them. Here a little cut out of my
manuals to my perl script. You can see at some points
(@setfilename @@MLTOBN@@.info) I need to replace the text
with a value.

------------- START OF FILE ----------------------------
@c
@c $Id: multunil-mlt.texi,v 1.2 1999/12/26 12:59:49 kama Exp $
@c
@setfilename @@MLTOBN@@.info
@documentlanguage @@MLTLANG@@
\\[en]
@set MLPACKAGE Multilingual to Unilingual
\\[de]
@set MLPACKAGE Multilingual in Unilingual
\\[all]
@set MULTUNIL MultUnil
@set AT @@@@
@c Manual has the same edition as software's release
@set MULTUNILEDITION @@MLTRELEASE@@
@set MULTUNILVERSION @@MLTRELEASE@@
\\[en]
@settitle Multilingual To Unilingual Edition ...
\\[de]
@settitle Multilingual in Unilingual Edition ....
\\[all]
------------- END   OF FILE ----------------------------

And later in that file, I will document the Text
replacement feature. This is the place of making problems
with those AT signs.
------------- START OF FILE ----------------------------
@node macMLTLANG,,,Macros
@defmac @value{AT}MLTLANG@value{AT} {}
@sp 1
\\[en]
This macro can be used to put the selected language into
the resulted file (@pxref{cmdOptLanguage}).
\\[de]
Dieses Macro kann dazu benutzt werden, die ausgew@"ahlte
Sprache (@pxref{cmdOptLanguage}) in die Ausgabedatei
einzuf@"ugen an der angegebenen Stelle.
\\[all]
@end defmac
------------- END   OF FILE ----------------------------


An other Test file:

------------- START OF FILE ----------------------------
\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
------------- END   OF FILE ----------------------------

This above works in Info very well, and like I expected, but
it does not work in HTML, cause the handling of the Arguments to
@defmac is working not like I thought (I have taken a look
into the source code, there are missing some execute_string
for HTML area, but this won't solve the complete problem
anymore).

The scanning of the arguments for @defmac and for the other
definition commands is not correct (IMHO).

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. The arguments are seperated by Space/whitespace.

It should be:
"@value{AT}TESTMACOR@value{AT}" This can be resolved in
HTML using execute_string ().

The next thought I have was to suppress complete
replacement if such an argument starts with a single brace.

@defmac {@value{AT}TESTMACOR@value{AT}} ()
should be inserted as it is.

-- Macro: @value{AT}TESTMACOR@value{AT} ()

Might this be a acceptable and compatible way?

I don't see the emacs manuals, might there be a chance
to change them? If it is needed.


PS.: Eli you don't need to additionaly e-mail me direct
     I'm subscribed to the Texinfo-Bug list. If you write 
     there, this is enough. But thank you for your kindness.
-- 
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

Reply via email to