[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Third input argument to __makeinfo__
From: |
Rik |
Subject: |
Re: Third input argument to __makeinfo__ |
Date: |
Fri, 09 Sep 2011 13:48:08 -0700 |
On 09/09/2011 01:01 PM, Carlo de Falco wrote:
>
> Furthermore,
>
> even if the names of the functions in the links were actually set correctly,
> using static html code would break the ability of referring to functions
> that are not in the same folder which, currently, on octave-forge is done via
> a
> php script:
>
> http://octave.sourceforge.net/find_function.php?fun=ss
>
> Would it be possible to get back the optional function handle input argument
> in the current version of __makeinfo__?
It's always possible, particularly if you're willing to try your hand at
the coding.
The old code was awkward and took 20 lines to do what is now accomplished
in a single regular expression. Let's not go back to that.
Instead try something like
regexprep (text, '@seealso *\{([^}]*)\}', replace_function("$1"));
where replace_function accepts a string argument, which is the inside of
the @seealso{} block, and where replace_function returns a string value
which will entirely replace the @seealso reference.
Good luck,
Rik
p.s. replace_function was just a casual name choice. You can use something
more appropriate.
- Re: Third input argument to __makeinfo__, Rik, 2011/09/09
- Re: Third input argument to __makeinfo__, c., 2011/09/09
- Re: Third input argument to __makeinfo__, Carlo de Falco, 2011/09/09
- Re: Third input argument to __makeinfo__, Carlo de Falco, 2011/09/09
- Re: Third input argument to __makeinfo__,
Rik <=
- Re: Third input argument to __makeinfo__, c., 2011/09/09
- Re: Third input argument to __makeinfo__, Carlo de Falco, 2011/09/09
- Re: Third input argument to __makeinfo__, Rik, 2011/09/10
- Re: Third input argument to __makeinfo__, c., 2011/09/11
Re: Third input argument to __makeinfo__, Carlo de Falco, 2011/09/09