[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19462: shr: use wrap-prefix when possible, instead of filling the te
From: |
Clément Pit--Claudel |
Subject: |
bug#19462: shr: use wrap-prefix when possible, instead of filling the text |
Date: |
Sun, 27 Dec 2015 05:19:35 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
On 12/27/2015 04:36 AM, Clément Pit--Claudel wrote:
> On 12/26/2015 05:53 PM, Clément Pit--Claudel wrote:
>> On 12/25/2015 11:51 PM, Lars Ingebrigtsen wrote:
>>> Clément Pit--Claudel <clement.pit@gmail.com> writes:
>>>
>>>> I do not know how to do this, but it sounds like a convenient
>>>> solution! How does one tell shr to apply a particular font to its
>>>> target (all that I know of is `shr-target-id', which seems to insert a
>>>> '*')?
>>>
>>> Look at `shr-tag-h1', for instance, and create whatever similar version
>>> of that you want by overriding with `shr-external-rendering-functions'.
>>
>> That sounds like a great idea, actually. And I guess I can get the id of the
>> current element to check it against the target id using (equal (dom-attr dom
>> 'id) TARGET-ID).
>>
>> I'll try that!
I looked into this more, but I don't think it will work. I want to highlight
the context of the element that contains the target id, so if lines are not
broken up then highlighting the full line works well. If they are, on the other
hand, then I can't tell how much surrounding text to highlight.
Cheers,
Clément.
signature.asc
Description: OpenPGP digital signature
- bug#19462: shr: use wrap-prefix when possible, instead of filling the text, Lars Ingebrigtsen, 2015/12/25
- Message not available
- Message not available
- Message not available
- bug#19462: shr: use wrap-prefix when possible, instead of filling the text, Lars Ingebrigtsen, 2015/12/25
- bug#19462: shr: use wrap-prefix when possible, instead of filling the text, Clément Pit--Claudel, 2015/12/26
- bug#19462: shr: use wrap-prefix when possible, instead of filling the text, Clément Pit--Claudel, 2015/12/26
- bug#19462: shr: use wrap-prefix when possible, instead of filling the text,
Clément Pit--Claudel <=
- bug#19462: shr: use wrap-prefix when possible, instead of filling the text, Lars Ingebrigtsen, 2015/12/27
- bug#19462: shr: use wrap-prefix when possible, instead of filling the text, Clément Pit--Claudel, 2015/12/27
- bug#19462: shr: use wrap-prefix when possible, instead of filling the text, Lars Ingebrigtsen, 2015/12/27