[LyX/master] Allow an 'other' type for hyperlinks. Format change.

Richard Kimberly Heck rikiheck at gmail.com
Mon Dec 26 16:45:04 UTC 2022


On 12/26/22 07:21, Jürgen Spitzmüller wrote:
> Am Montag, dem 26.12.2022 um 10:26 +0100 schrieb Jürgen Spitzmüller:
>> Also, I think InsetHyperlink needs to be audited. Now "Web" cares for
>> "run:" and "[anything]//:" next to the http(s) schemes, "Other" for
>> all
>> others expect mail: and file:
>> Seems not consistent to me. Why is "run:" associated with Web?
> Seems this was an old exception added by Uwe. I sorted this out and
> converted old "run:" links to Other type (reversion vice versa).

Thanks. I should have thought of that.

What I was thinking here was that "Other" would more or less act like 
'literal', in the sense that it would just output whatever's there. The 
special handling of "http" with the Web one confused me; I missed that 
it would also handle "ftp://". But now I wonder whether we should change 
"Web" to "HTTP" or something like that, and let everything 'literal' be 
handled by "Other". Then we could say something like:

     Web: Adds "http://" if not given (but also allows other 'authorities')
     EMail: Adds "mailto:" if not given.
     File: Adds "file://" if not given.
     Other: Outputs as is.

Then I'd write a lyx2lyx script that would convert non-http targets to 
other.

Alternatively, I'm starting to wonder how useful these 'types' really 
are. Does it really save people a lot of effort not to have to write 
"mailto" or "http"? Or is that just more confusing?

Riki




More information about the lyx-devel mailing list