Gnus development mailing list
 help / color / mirror / Atom feed
* Wha' <sup>
@ 2011-04-24  1:06 Lars Magne Ingebrigtsen
  2011-04-24 19:03 ` Michael Welsh Duggan
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-04-24  1:06 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 350 bytes --]

Hm...  I think shr.el should render <sup>, but I don't know how.
(That's "superscript" in HTMLese, as in 34², for instance.)

Is there a way to raise part of a line?  I tried playing with

(put-text-property (point) (+ 4 (point)) 'line-height '(12 40))

but that didn't work.

And the same goes for <sub>, which does the opposite thing.

Any ideas?


[-- Attachment #2: what.html --]
[-- Type: text/html, Size: 26 bytes --]

[-- Attachment #3: Type: text/plain, Size: 104 bytes --]



-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Wha' <sup>
  2011-04-24  1:06 Wha' <sup> Lars Magne Ingebrigtsen
@ 2011-04-24 19:03 ` Michael Welsh Duggan
  2011-04-24 19:13   ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Welsh Duggan @ 2011-04-24 19:03 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Hm...  I think shr.el should render <sup>, but I don't know how.
> (That's "superscript" in HTMLese, as in 34², for instance.)
>
> Is there a way to raise part of a line?  I tried playing with
>
> (put-text-property (point) (+ 4 (point)) 'line-height '(12 40))
>
> but that didn't work.
>
> And the same goes for <sub>, which does the opposite thing.
>
> Any ideas?

Use 'display '(raise 0.5) instead of 'line-height '(12 40).  Use -0.5
for sub.

-- 
Michael Welsh Duggan
(md5i@md5i.com)



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Wha' <sup>
  2011-04-24 19:03 ` Michael Welsh Duggan
@ 2011-04-24 19:13   ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-04-24 19:13 UTC (permalink / raw)
  To: ding

Michael Welsh Duggan <md5i@md5i.com> writes:

> Use 'display '(raise 0.5) instead of 'line-height '(12 40).  Use -0.5
> for sub.

Thanks!  I've now added <sub> and <sup> support.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-24 19:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-24  1:06 Wha' <sup> Lars Magne Ingebrigtsen
2011-04-24 19:03 ` Michael Welsh Duggan
2011-04-24 19:13   ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).