Xah Talk Show 2024-08-27 Ep579, Web History WHATWG vs W3C Split, Emacs Lisp HTML Convert PNG to JPG
- Timestamp
- 3:53 whatwp vs w3c war
- 12:47 html figure figcaption tag
HTML, Lines to List
- this command
xah-html-lines-to-list
- if no selection, it turns each line into a list item.
- if there is a selection, it turns each paragraph into a list item.
we want to modify it so that, to turn each paragraph into list, you call universal-argument
first. this is more emacs convention
xah html convert to jpg
- mod
xah-html-convert-to-jpg
, convert only if jpg is 20% more saving in size
(/ (float 2) (float 3) )
- ;; old behavior
- ;; If the new image is bigger, nothing is done.
- ;; Else, replace the link to point to new image, and rename the old image by appending ~orig_png~.
- ;; new behavior
- ;; If the new image saves less than 20% original file size, then nothing is done.