Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a non-fuzzy link? (was: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3

2023-09-07 Thread Ihor Radchenko
Max Nikulin writes: >> >> I feel that it will be too complex. >> We might simply throw a warning when we get unregistered [[type:path]] >> link, so that the user can notice if there is any problem. > > I do not think it noticeably increases complexity in comparison to the > current state of

Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a non-fuzzy link? (was: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3

2023-09-07 Thread Max Nikulin
On 07/09/2023 17:42, Ihor Radchenko wrote: Max Nikulin writes: I am considering another behavior. If any PREFIX: is recognized then the link exported literally as PREFIX:PATH unless the PREFIX is registered as (org-link-register-search-link-prefix "sec") So if the document does not

Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a non-fuzzy link? (was: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3

2023-09-07 Thread Ihor Radchenko
Max Nikulin writes: >> Max Nikulin writes: >>> I am unsure if any "PREFIX:" should be recognized as a link type, but >>> there is another possibility on this way: allow users to mark some >>> prefixes as search links, not link types. >> >> May you elaborate? > > I am considering another

Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a non-fuzzy link? (was: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3

2023-09-06 Thread Max Nikulin
On 05/09/2023 18:02, Ihor Radchenko wrote: What I had in mind is a bit elaborate: 1. We get actual link type 2. If link type is not registered, we try "fuzzy" 3. If "fuzzy" target is not found, instead of broken link, we export a link with unknown type. It makes sense as an additional

Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a non-fuzzy link? (was: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3

2023-09-05 Thread Ihor Radchenko
Max Nikulin writes: > On 02/09/2023 14:26, Ihor Radchenko wrote: >> With my proposal, it would become >> >> (link :type "sec" :path "spielbeispiel" ...) >> >> However, "sec" link type will still not be listed in the output >> `org-link-types' (not registered). >> >> Then, ox.el and other link

Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a non-fuzzy link? (was: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3

2023-09-04 Thread Max Nikulin
On 01/09/2023 16:04, Ihor Radchenko wrote: And introduce [[::fig:something]] to allow explicit internal links. I would consider an explicit link type for internal links, e.g. org: or o: to allow search links in angle brackets or .

Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a non-fuzzy link? (was: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3

2023-09-04 Thread Max Nikulin
On 02/09/2023 14:26, Ihor Radchenko wrote: With my proposal, it would become (link :type "sec" :path "spielbeispiel" ...) However, "sec" link type will still not be listed in the output `org-link-types' (not registered). Then, ox.el and other link processing code, when encountering a link

Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a non-fuzzy link? (was: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3

2023-09-02 Thread Dr. Arne Babenhauserheide
Ihor Radchenko writes: > Then, ox.el and other link processing code, when encountering a link > type that is not registered, will fall back to searching "fuzzy" link. > > So, export, and following the link should not be affected. This resolves my worry — thank you! > There might be caveats

Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a non-fuzzy link? (was: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3

2023-09-02 Thread Ihor Radchenko
Tom Gillespie writes: > My suggestion is as follows. Schemes/prefixes defined by the > #+link: keyword can be used without surrounding syntax markers > but may not contain spaces etc. > ... To support this Org parsers > should always parse prefix:suffix as a _putative_ link which > must then be

Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a non-fuzzy link? (was: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3

2023-09-02 Thread Ihor Radchenko
"Dr. Arne Babenhauserheide" writes: >> May you elaborate about what is going to be broken? > > I have many links where I use <> along with > [[sec:spielbeispiel]], often along with > @@latex:\phantomsection\label{sec:spielbeispiel}@@ to enable reliable > inline linking inside org-mode and across

Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a non-fuzzy link? (was: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3

2023-09-01 Thread Tom Gillespie
This is a timely discussion. I have been thinking about how to deal with prefixes defined by the #+link: keyword which is directly related to this question. I think the following might be a solution that also avoids the issue brought up by Arne. The original "bug" cannot be resolved because bare

Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a non-fuzzy link? (was: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3

2023-09-01 Thread Dr. Arne Babenhauserheide
Ihor Radchenko writes: > "Dr. Arne Babenhauserheide" writes: > >>> Any thoughts? >> >> Thinking about the effort I’d have to fix all internal links in all >> org-documents I have (dozens of large ones and hundreds of small ones) I >> don’t like the idea of breaking internal link syntax. > >

Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a non-fuzzy link? (was: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3

2023-09-01 Thread Ihor Radchenko
"Dr. Arne Babenhauserheide" writes: >> Any thoughts? > > Thinking about the effort I’d have to fix all internal links in all > org-documents I have (dozens of large ones and hundreds of small ones) I > don’t like the idea of breaking internal link syntax. May you elaborate about what is going

Re: [DISCUSSION] May we recognize everything like [[protocol:uri]] as a non-fuzzy link? (was: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3

2023-09-01 Thread Dr. Arne Babenhauserheide
Ihor Radchenko writes: > In theory, we might change the parser to treat anything like foo:bar or > or [[foo:bar]] as a link with "foo" protocol and "bar" URI. > And introduce [[::fig:something]] to allow explicit internal links. > But, despite simplifying the parser, it will certainly be a