Original work: http://xkcd.com/1459/
[ prev | up | next ]
XKCD example page from 2014-dec-14
Visit https://xkcd.com/
Right-click image | save image as | xkcd-orig-<title>.png | save
Open GIMP
File | open | xkcd-orig-<title>.png | open
file | save as | xkcd-orig-<title>.xcf | save
print the image
title the image
label the textual elements (“fr0104” etc)
label point elements (“speech line”)
Hover image: is there a title=”” popup? If so, note as fr0001
Write tables
textual
one row per textual elements
cols: corner; w, x,y
point elements
one row per two points (“pt1, pt2”)
Cols: xy->xy
Co-ords:
For each textual element
determine where the corner should go (just tl, tr, bl, br for now)
determine max width of bubble
Get pixel co-ords for textual element and point elements
Erase all textual and speech bubble elements
File | save as | xkcd-notext-<title>.xcf
File | export … | export | export
Close gimp
At www.csi18n.com, mkdir -p ~/csi18n/xkcd/<title> //title should use underscore not spaces
scp ~/Worklife/mpsvr.com/csi18n/xkcd-notext-<title>.png al@www.csi18n.com:~/csi18n/xkcd/<title>
cd ~/csi18n/xkcd/<title>
cp ../20141201/index.php . (or whichever is most recent version)
cp ../20141201/index.html .
Edit index.html
search/replace previous title with new
IMG SRC to uploaded image
Change attribution
Change date at bottom
change code to handle particular number of elements
handler_X()
if ($el == 'X'
localstorage.setItem
d.innerHTMLs
comment out xkcdShow()
comment out xkcdShowLines()
<div id=”X
Change xkcdShow() for BT, TL etc, co-ords and widths
Change xkcdShowLines() for speech lines
See through PNG
Work up each z-index
Add second area map because closer z-index of see through PNG means can't click text behind. A better solution: divide PNG into four around unused center
hidden image title?
Uncomment hideWhatWasImgTitle
hideWhatWasImgTitle, showWhatWasImgTitle correct element
Correct image-map via http://www.image-maps.com/
Use the first <area … tag in the html code
Comment forms to suit
Tie in this page to any indexing pages
Added English text as available translation
For each “undefined”
Click
Offer Another
Add original English
Anonymous
Submit
Make text a bit larger/smaller to suit
Adjust co-ords to suit
These cribs
Edit in word processor
save as html
view as html
rowscut and paste source html into index.html