Re: Only elide label of hyperlink inset if target and not name given

2020-03-24 Thread Pavel Sanda
On Tue, Mar 24, 2020 at 06:03:42PM +0100, Jean-Marc Lasgouttes wrote: > Le 24/03/2020 ?? 16:36, Richard Kimberly Heck a écrit : > >It might help some to replace "Hyperlink:" with , the Unicode > >hyperlink character = U+1F517. Though I'm not sure how many fonts have that. > > This is unicode 6

Re: Only elide label of hyperlink inset if target and not name given

2020-03-24 Thread Jean-Marc Lasgouttes
Le 24/03/2020 à 16:36, Richard Kimberly Heck a écrit : It might help some to replace "Hyperlink:" with 🔗, the Unicode hyperlink character = U+1F517. Though I'm not sure how many fonts have that. This is unicode 6.0 from 2010, so I think we should assume that it is generally available. JMarc

Re: Only elide label of hyperlink inset if target and not name given

2020-03-24 Thread Richard Kimberly Heck
On 3/24/20 11:54 AM, Pavel Sanda wrote: > On Tue, Mar 24, 2020 at 11:36:42AM -0400, Richard Kimberly Heck wrote: >> It might help some to replace "Hyperlink:" with , the Unicode >> hyperlink character = U+1F517. Though I'm not sure how many fonts have that. > For the fun of it, I tried to put i

Re: Only elide label of hyperlink inset if target and not name given

2020-03-24 Thread Pavel Sanda
On Tue, Mar 24, 2020 at 11:36:42AM -0400, Richard Kimberly Heck wrote: > It might help some to replace "Hyperlink:" with , the Unicode > hyperlink character = U+1F517. Though I'm not sure how many fonts have that. For the fun of it, I tried to put into my .po file as translation but only empty

Re: Only elide label of hyperlink inset if target and not name given

2020-03-24 Thread Richard Kimberly Heck
On 3/24/20 7:35 AM, Pavel Sanda wrote: > On Mon, Mar 23, 2020 at 12:36:58PM +0100, Pavel Sanda wrote: >> On Sun, Mar 22, 2020 at 08:26:47PM -0400, Richard Kimberly Heck wrote: >>> On 3/22/20 5:51 PM, Pavel Sanda wrote: On Sat, Mar 21, 2020 at 11:14:48PM +0100, ??ystein Senneset Haaland wrote:

Re: Only elide label of hyperlink inset if target and not name given

2020-03-24 Thread Pavel Sanda
On Mon, Mar 23, 2020 at 12:36:58PM +0100, Pavel Sanda wrote: > On Sun, Mar 22, 2020 at 08:26:47PM -0400, Richard Kimberly Heck wrote: > > On 3/22/20 5:51 PM, Pavel Sanda wrote: > > > On Sat, Mar 21, 2020 at 11:14:48PM +0100, ??ystein Senneset Haaland wrote: > > >> When I add a URL as a hyperlink in

Re: Only elide label of hyperlink inset if target and not name given

2020-03-23 Thread Pavel Sanda
On Mon, Mar 23, 2020 at 06:18:07PM +0100, Kornel Benko wrote: > schrieb Pavel Sanda : > > On Mon, Mar 23, 2020 at 05:43:50PM +0100, Kornel Benko wrote: > > > I see, unfortunately InsetHyperlink::screenLabel() does not know about > > > buffer. > > > > Anything descending from Inset has access to

Re: Only elide label of hyperlink inset if target and not name given

2020-03-23 Thread Kornel Benko
Am Mon, 23 Mar 2020 18:05:46 +0100 schrieb Pavel Sanda : > On Mon, Mar 23, 2020 at 05:43:50PM +0100, Kornel Benko wrote: > > I see, unfortunately InsetHyperlink::screenLabel() does not know about > > buffer. > > Anything descending from Inset has access to buffer_. However it's not clear > to

Re: Only elide label of hyperlink inset if target and not name given

2020-03-23 Thread Pavel Sanda
On Mon, Mar 23, 2020 at 05:43:50PM +0100, Kornel Benko wrote: > I see, unfortunately InsetHyperlink::screenLabel() does not know about buffer. Anything descending from Inset has access to buffer_. However it's not clear to me why you want that if you are dealing with window view. Pavel -- lyx-de

Re: Only elide label of hyperlink inset if target and not name given

2020-03-23 Thread Kornel Benko
Am Mon, 23 Mar 2020 14:12:15 +0100 schrieb Pavel Sanda : > On Mon, Mar 23, 2020 at 01:40:19PM +0100, Kornel Benko wrote: > > > > Or, to make this more flexible, restrict to the width of displayed > > > > buffer? > > > > > > Show me the code :) > > > Pavel > > > > I mean, use arbitrary len

Re: Only elide label of hyperlink inset if target and not name given

2020-03-23 Thread Pavel Sanda
On Mon, Mar 23, 2020 at 01:40:19PM +0100, Kornel Benko wrote: > > > Or, to make this more flexible, restrict to the width of displayed > > > buffer? > > > > Show me the code :) > > Pavel > > I mean, use arbitrary length, but display only width of displayed buffer. Understood and not against i

Re: Only elide label of hyperlink inset if target and not name given

2020-03-23 Thread Kornel Benko
Am Mon, 23 Mar 2020 13:33:02 +0100 schrieb Pavel Sanda : > On Mon, Mar 23, 2020 at 01:11:27PM +0100, Kornel Benko wrote: > > Or, to make this more flexible, restrict to the width of displayed buffer? > > Show me the code :) > Pavel I mean, use arbitrary length, but display only width of displa

Re: Only elide label of hyperlink inset if target and not name given

2020-03-23 Thread Pavel Sanda
On Mon, Mar 23, 2020 at 01:11:27PM +0100, Kornel Benko wrote: > Or, to make this more flexible, restrict to the width of displayed buffer? Show me the code :) Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel

Re: Only elide label of hyperlink inset if target and not name given

2020-03-23 Thread Kornel Benko
Am Mon, 23 Mar 2020 12:36:58 +0100 schrieb Pavel Sanda : > On Sun, Mar 22, 2020 at 08:26:47PM -0400, Richard Kimberly Heck wrote: > > On 3/22/20 5:51 PM, Pavel Sanda wrote: > > > On Sat, Mar 21, 2020 at 11:14:48PM +0100, ??ystein Senneset Haaland > > > wrote: > > >> When I add a URL as a hype

Re: Only elide label of hyperlink inset if target and not name given

2020-03-23 Thread Pavel Sanda
On Sun, Mar 22, 2020 at 08:26:47PM -0400, Richard Kimberly Heck wrote: > On 3/22/20 5:51 PM, Pavel Sanda wrote: > > On Sat, Mar 21, 2020 at 11:14:48PM +0100, ??ystein Senneset Haaland wrote: > >> When I add a URL as a hyperlink inset and give it a name, I normally would > >> like to see the full te

Re: Only elide label of hyperlink inset if target and not name given

2020-03-22 Thread Richard Kimberly Heck
On 3/22/20 5:51 PM, Pavel Sanda wrote: > On Sat, Mar 21, 2020 at 11:14:48PM +0100, ??ystein Senneset Haaland wrote: >> When I add a URL as a hyperlink inset and give it a name, I normally would >> like to see the full text of the name in the label. This way, it can to a >> greater extent be part of

Re: Only elide label of hyperlink inset if target and not name given

2020-03-22 Thread Pavel Sanda
On Sat, Mar 21, 2020 at 11:14:48PM +0100, ??ystein Senneset Haaland wrote: > When I add a URL as a hyperlink inset and give it a name, I normally would > like to see the full text of the name in the label. This way, it can to a > greater extent be part of the surrounding text. > > The patch is sim

Only elide label of hyperlink inset if target and not name given

2020-03-22 Thread Øystein Senneset Haaland
When I add a URL as a hyperlink inset and give it a name, I normally would like to see the full text of the name in the label. This way, it can to a greater extent be part of the surrounding text. The patch is simple; it only moves the eliding part up where its only the target that is set, not the