Subject: mailing-list for TeXmacs Users
List archive
From : TeXmacs <address@hidden>- To: address@hidden
- Subject: Re: help-balloon -> html with tooltip
- Date: Sun, 7 Mar 2021 23:30:51 +0100
Hi,
On Sun, Mar 07, 2021 at 07:38:46PM +0000, Jeroen Wouters wrote:
> For an example of an html tooltip implementation, see here:
> https://www.w3schools.com/howto/howto_css_tooltip.asp
>
> The body of the balloon has empty CSS style, it's simply not implemented in
> TeXmacs:
> https://github.com/texmacs/texmacs/blob/ba5849c700bf956d2a518e2b449534657ddb046c/TeXmacs/progs/convert/html/tmhtml.scm#L170
>
> I think it shouldn't be too hard to implement something like the example in
> the first link.
No, it should not be extremely hard, but it will still be time consuming.
I agree that the feature would be nice, but I don't have time now.
If someone else wants to give it a try: you will first need to add
some CSS code similar to what Jeroen mentions above to your preferred
TeXmacs CSS style (Edit -> Preferences -> Convert -> Html -> CSS stylesheet).
You next might try to add a converter for 'help-balloon' in tmhtml.scm.
Best wishes, --Joris
> Best,
> Jeroen
>
> On 7 March 2021 09:52:00 GMT, Murali Agastya <address@hidden> wrote:
> >Hi Basile,
> >Yes it does. Looking at the exported html file leads me to think
> >something
> >about the CSS is not quite right, but that is just a guess.
> >Murali
> >
> >
> >On Sun, 7 Mar 2021, 8:01 pm Basile Audoly, <address@hidden> wrote:
> >
> >> Hi Murali,
> >> have you checked whether the "standard" html language allows this in
> >a
> >> first place?
> >> I am not convinced this is the case. But my understanding of html is
> >very
> >> basic.
> >> Best,
> >> Basile
> >>
> >> Le 7 mars 2021 à 01:21, Murali Agastya <address@hidden> a
> >écrit
> >> :
> >>
> >>
> >> Hello all,
> >> I wonder if someone has a small hack so that the html conversion of
> >> <help-balloon| X | small tooltip|Right|Top> with "X" displayed and
> >"small
> >> tooltip" appears only when the mouse hovers over X.
> >>
> >> At the moment, the conversion displays as
> >> <image.png>
> >> It would of course be fantastic, if the new functionality of
> >preview-ref
> >> can also be used to get html conversion with the appropriate
> >tooltips.
> >>
> >> Much thanks, and apologies if I should be addressing this to the
> >> texmacs-dev group.
> >> Kind regards,
> >> Murali
> >>
> >>
> >>
- help-balloon -> html with tooltip, Murali Agastya, 03/07/2021
- Re: help-balloon -> html with tooltip, Basile Audoly, 03/07/2021
- Re: help-balloon -> html with tooltip, Murali Agastya, 03/07/2021
- Re: help-balloon -> html with tooltip, Jeroen Wouters, 03/07/2021
- Re: help-balloon -> html with tooltip, TeXmacs, 03/07/2021
- Re: help-balloon -> html with tooltip, Jeroen Wouters, 03/07/2021
- Re: help-balloon -> html with tooltip, Murali Agastya, 03/07/2021
- Re: help-balloon -> html with tooltip, Basile Audoly, 03/07/2021
Archive powered by MHonArc 2.6.19.