|
Post by louisxiv on Jun 6, 2013 18:22:04 GMT
|
|
|
Post by louisxiv on Jun 6, 2013 18:31:00 GMT
The script that does the conversion is currently gun3.py, which link opens as a text file. I really need to clean up the comments and readme and add a bit more input error checking but it works fine enough as is. I'll maybe put up an About page with how-tos and links to the various technical resources - the GitHub, data entry guidelines, where to comment (this thread), that gunN.py link, etc. An earlier version of misN.py did generate the whole (Misfile) page, but I found that a bit cumbersome, though easy to do. I currently generate two files: the index and the pages and include them into the framework of the rest of the page. I use my text editor to do this as it supports updating includes easily with a good html syntax checker (which I find essential!), but it'd be easy to convert the main page to .shtml and use server side includes.
|
|
|
Post by snipertom on Jun 6, 2013 19:16:10 GMT
My current version of my reverse-engineered python script takes in a "heading.txt", "alltags.txt", "index.txt", "ending.txt" and is as follows:
#! python # -*- coding: utf-8 -*- import string
toWrite = []
with open('heading.txt','r') as fheading: for line in fheading: toWrite.append(line) with open("alltags.txt","r") as ftags: toWrite.append("\n") for line in ftags: field=line.split("\t") toWrite.append("\n\t<p class='tags'><span class='tag "+field[0].lower()+"'>"+field[0]+"</span> "+field[1]+"\t</p>") toWrite.append("\n</div>")
with open('index.txt','r') as findex: toWrite.append("\n<div id='events' class='span-16 last'>") for line in findex: field = line.split("\t") toWrite.append("\n\t<p class='comicpage ") for i in range(1,len(field)-1): toWrite.append(field[i].lower()+" "), toWrite.append("'>\n\t\t<a href='http://www.gunnerkrigg.com/?p="+field[0]+"' target='_blank'>p."+field[0]+"</a>\n") for i in range(1,len(field)-1): toWrite.append("\t\t<span class='tag "+field[i].lower()+"'>"+field[i]+"</span>\n") toWrite.append("\t\t"+field[(len(field)-1)][1:]+"\t</p>\n") toWrite.append("</div>")
with open('ending.txt','r') as fending: for line in fending: toWrite.append(line)
s = ''.join(toWrite)
with open("demo.htm","w") as fdemo: fdemo.write(s)
with open("default.htm","w") as fdefault: fdefault.write(s)
Where heading.txt is:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Gunnerkrigg Court: Characters Index</title>
<!-- Blueprint --> <link rel="stylesheet" href="css/blueprint/screen.css" media="screen, projection"> <link rel="stylesheet" href="css/blueprint/print.css" media="print"> <!--[if lt IE 8]> <link rel="stylesheet" href="css/blueprint/ie.css" media="screen, projection"> <![endif]--> <!-- site stylesheets --> <link rel="stylesheet" href="css/event.css" media="screen, projection"> <!-- iOS5 Safari stylesheet bug workround --> <link rel="stylesheet" title="switch" href="css/switch.css"> <!-- Tag styles --> <link rel="alternate stylesheet" href="css/all.css" id="all" title="all">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script src="handler.js"></script> </head> <body> <div id="topscroll" class="hidden">▲ ▲ ▲ ▲ ▲ ▲</div> <div class="container"> <div class="span-24 last"> <h1> Gunnerkrigg Court: a Character Index </h1>
<div class="span-8"> <p><a href="http://www.gunnerkrigg.com">Gunnerkrigg Court</a> is a web comic by Tom Siddell.</p> <p>This is an index of the characters and episodes/pages, with a <em>very</em> simple selection (“search”) facility: Each page is tagged with the characters appearing or significantly referenced, and other major points of interest.</p> <p>Click on a tag (words in the light green blobs) to select other pages with that tag, and Bob’s yer uncle.</p> </div>
<div class="span-8"> <h3>Other resources</h3> <p>You may also be interested in:</p> <p>The <a href="http://gunnerkrigg.proboards.com/" class="url">Gunnerkrigg forum</a></p> <p><a href="http://tvtropes.org/pmwiki/pmwiki.php/Webcomic/GunnerkriggCourt?from=Main.GunnerkriggCourt">TVTropes</a> – don’t worry, we won’t wait up.</p> </div>
<div class="span-8 last"> <h3>Notes</h3> <p>Thanks to <span class="highlight">snipergirl</span> for GitHub assistance and tagging.</p> <p>2013-05-30: First test of the gun2.py page part generator</p> </div>
<hr> </div>
<!-- index side panel --> <div id="jscloud" class="span-8"> Search: <input class="search" /> <h2>Index</h2> <span class="all">Show All</span><br><br> <span class="alpha a">a</span> <span class="alpha b">b</span> <span class="alpha c">c</span> <span class="alpha d">d</span> <span class="alpha e">e</span> <span class="alpha f">f</span> <span class="alpha g">g</span> <span class="alpha h">h</span> <span class="alpha i">i</span> <span class="alpha j">j</span> <span class="alpha k">k</span> <span class="alpha l">l</span> <span class="alpha m">m</span> <span class="alpha n">n</span> <span class="alpha o">o</span> <span class="alpha p">p</span> <span class="alpha q">q</span> <span class="alpha r">r</span> <span class="alpha s">s</span> <span class="alpha t">t</span> <span class="alpha u">u</span> <span class="alpha v">v</span> <span class="alpha w">w</span> <span class="alpha x">x</span> <span class="alpha y">y</span> <span class="alpha z">z</span> <span class="alpha num">0-9</span> <br><br>
and ending.txt is
<hr> </div> </body> </html>
I definitely need to put that dictionary builder into my one; being able to see which tags are being used but not defined is extremely useful!
Louisxiv, i imagine you can see the obvious influence that gun.py the original had on my one!
|
|
|
Post by louisxiv on Jun 6, 2013 19:42:39 GMT
Cross-fertilisation, overall, I think.
|
|
|
Post by philman on Jun 6, 2013 22:44:50 GMT
Ch 26 up.
|
|
|
Post by louisxiv on Jun 6, 2013 23:22:59 GMT
|
|
|
Post by philman on Jun 6, 2013 23:28:47 GMT
61%, we're getting there!
|
|
|
Post by louisxiv on Jun 7, 2013 17:01:58 GMT
|
|
|
Post by louisxiv on Jun 7, 2013 18:34:42 GMT
I've just added snipergirl's new search and scroll functions. Also tweaked the layout a tiny bit as we’re are quite wordy in the index and the page entries are multi-line already. Added a timestamp too.
|
|
|
Post by louisxiv on Jun 7, 2013 23:06:02 GMT
Character Index page updated: 802/1207 pages indexed, 244 defined tags (Added Ch. 39) Tagging question: Should we separately tag things happening in the plane of the Ether (tag: Ether) from manipulation of the Ether (tag: Etherics)?
|
|
|
Post by snipertom on Jun 8, 2013 0:04:24 GMT
Character Index page updated: 802/1207 pages indexed, 244 defined tags (Added Ch. 39) Tagging question: Should we separately tag things happening in the plane of the Ether (tag: Ether) from manipulation of the Ether (tag: Etherics)? I think we are going to need to; I find "etherics" to mean "being in the ether" confusing, and manipulation of ether needs to be differentiated i think.
|
|
|
Post by spritznar on Jun 8, 2013 2:57:14 GMT
Character Index page updated: 802/1207 pages indexed, 244 defined tags (Added Ch. 39) Tagging question: Should we separately tag things happening in the plane of the Ether (tag: Ether) from manipulation of the Ether (tag: Etherics)? I think we are going to need to; I find "etherics" to mean "being in the ether" confusing, and manipulation of ether needs to be differentiated i think. when i was tagging ch 36 (red gets a name) i was trying to only tag 'Etherics' when someone was actually manipulating ether somehow, but i was quite liberal with it. another tag question though, in ch 37 (microsat5) i tagged some stuff donny was doing with both 'Etherics' and 'Robotics' because it looked like magic but he said it was done with a computer. (and we may want to rename the robotics tag, because i originally intended it to cover the instances of 'technological magic' not just robots) also, at this point it's probably safe to assume i won't be tagging anything more til next thursday (if there's anything left to tag by then)
|
|
|
Post by louisxiv on Jun 8, 2013 9:34:26 GMT
spritznar - thanks for the taggings! The tag for the "Realm of the Ether" question: I notice Jones uses "Etherium" in 387 and Tom does in 597 so that would be better as the tag than just "Ether"?
|
|
|
Post by philman on Jun 8, 2013 14:43:27 GMT
I agree we might need more distinction in ether tags. I am currently tagging anything related to the ether with etherics, then we also have ethericshield which comes from Anja and Donny's tech/magic. But we might need to have more specific tags, I'm just not sure what. Is there a tag for the weird other-world that Zimmy takes people into sometimes?
|
|
|
Post by snipertom on Jun 8, 2013 23:18:39 GMT
PHLOGISTON j/k I'm up with using "etherium" to describe when people are looking through the ether and "etherics" for when they use non-specific magic- including when people manipulate things in the ether. "ethericshield" interestingly has only really been the one spell-program, even when Jack used a modification of it to bind Rey The good thing about having tagged everything with etherics is that it's easy to find all the instances and go back and modify them as appropriate Is there a tag for the weird other-world that Zimmy takes people into sometimes? Zimmingham.
|
|
|
Post by snipertom on Jun 9, 2013 12:01:51 GMT
After a short sabbatical I'm back phil, louis & spritz you've been excellently holding down the fort!
|
|
|
Post by louisxiv on Jun 9, 2013 12:03:44 GMT
Character Index page updated: 831/1207 pages indexed, 251 defined tags Ch 38, Divine plus a bunch of minor fixes.
|
|
|
Post by snipertom on Jun 9, 2013 12:28:26 GMT
69% done gosh golly!
You guys are awesome!
|
|
|
Post by philman on Jun 9, 2013 14:34:04 GMT
I've been away the last few days, just checking in to see how we're going on my phone. Will recommence Spring Heeled Jack tonight.
And I forgot about Toms reference to where Zimmy was found. I'm willing just to call it Birmingham to go with Tom's reference... (Plus I really really want Zimmy to have a Brummie accent now...)
|
|
|
Post by snipertom on Jun 9, 2013 15:01:19 GMT
apparently tom named it zimmingham because he thinks of birmingham where he lives as some sort of hell!
and yea, she is a brum!
|
|
|
Post by philman on Jun 9, 2013 15:11:51 GMT
apparently tom named it zimmingham because he thinks of birmingham where he lives as some sort of hell! and yea, she is a brum! Ah ok, I thought you were joking with zimmingham! heh. Tom being Brummie would explain that, there are plenty of songs romanticising London, Manchester, Liverpool, but none that come to mind for Birmingham...
|
|
|
Post by snipertom on Jun 9, 2013 16:27:37 GMT
apparently tom named it zimmingham because he thinks of birmingham where he lives as some sort of hell! and yea, she is a brum! Ah ok, I thought you were joking with zimmingham! heh. Tom being Brummie would explain that, there are plenty of songs romanticising London, Manchester, Liverpool, but none that come to mind for Birmingham... Does birmingham really suck or is it just Tom?
|
|
|
Post by snipertom on Jun 9, 2013 17:23:07 GMT
Chapter 16 done; 860/1207 Added a list of features to implement on website eventually.
|
|
|
Post by philman on Jun 9, 2013 17:50:27 GMT
Ah ok, I thought you were joking with zimmingham! heh. Tom being Brummie would explain that, there are plenty of songs romanticising London, Manchester, Liverpool, but none that come to mind for Birmingham... Does birmingham really suck or is it just Tom? It has a reputation, perhaps undeserved, for being a very ugly city. It's a fairly new city, only rose to any prominence in the industrial revolution 200-250 years ago or so, so there are alot of ugly industrial buildings. And Brummie is famous, along with Scouse (again, perhaps undeservedly) for being one of the least attractive accents in the british isles. (Think Ozzy Osbourne, or look up the comedian Lenny Henry for a Brummie accent. Henry's from Dudley really, but it's close enough to the outsider)
|
|
|
Post by snipertom on Jun 9, 2013 18:24:16 GMT
Progress: 873/1207 comics transcribed = 72% 276 tags Comic:Tag ratio = 3.16:1
To do: Chapters 9, 11, 13, 15, 17, 18 (partial), 19, 27-31
Basically once I'm done with 18, I'll start tackling the odd numbers in reverse order from 31 perhaps? I don't feel like doing spring heeled or the power station though- anyone else game?
|
|
|
Post by philman on Jun 9, 2013 19:53:14 GMT
I have just done Spring Heeled 1 and 2 (27 + 28), trying to upload now. Problem is I synced your new changes before saving mine, so mine went and saved over yours. I can't figure out how to insert them now except by re-downloading the whole set of files now and manually insert my new chapters now!
I'll keep on going forward from here, so will do 29 next. That'll be all the 20's done then!
|
|
|
Post by louisxiv on Jun 9, 2013 21:23:24 GMT
Proposed Feature List
(pity Proboads doesn't do Markdown)
Looking at those, some queries and comments:
Spoiler tag? The whole site is a massive spoiler, so what is this for?
Categorisation of tags: I'm thinking of adding a type: to the entries in the tags list, and have the conversion script trim it and add it to the tag's html class. That leaves it flexible to add classes if need arises; just a matter of tweaking the css if a visible difference is wanted. Dunno if we'd need to support multi-typed tags? Anyway, off the top of the head e.g:
loc:AnimalCells the secret Court large animal holding cells loc:AnimalLab a Court research lab cha:Anja Anja Donlan, Kat's mother loc:Annan Annan Waters, a wide river in a deep gorge cha:Annie Antimony Carver, our protagonist sym:AntimonySymbol The alchemical symbol for antimony; associated with Annie and Surma
What the tags classifications mean might need some discussion: I don't think we are tagging plots at all, and even identifying them might be 'interesting'. Ideas would be things like Etherium, God? Might be better analysed elsewhere than the tagging system. KISS may apply?
Links to Wiki yes, for now that's be just a matter of including the htlm, though we could shortform that. Problem is being sure there's actually a wiki entry at the other end.
Tag counts on my ToDo list, in my copious spare time ;)
Tag Chapter Cover - just do it? I was surprised at the suggestion people shouldn't and have just got on with it.
Hoverable tags - easy to do with abbr, or some .js (I assume), but think whether it is a good UI idea - personally I find stuff popping up when and where ever I rest my pointer rather irritating. That is the point of having selectable tags with highlighting of the def'n. Maybe rightclick, but: discoverability?
Clickable tags that generate ... Don't understand this one
"save" button serious sanitization required...
|
|
|
Post by louisxiv on Jun 9, 2013 21:35:37 GMT
|
|
|
Post by philman on Jun 9, 2013 22:06:26 GMT
Proposed Feature List Categorisation of tags: I'm thinking of adding a type: to the entries in the tags list, and have the conversion script trim it and add it to the tag's html class. That leaves it flexible to add classes if need arises; just a matter of tweaking the css if a visible difference is wanted. Dunno if we'd need to support multi-typed tags? Anyway, off the top of the head e.g: loc:AnimalCells the secret Court large animal holding cells loc:AnimalLab a Court research lab cha:Anja Anja Donlan, Kat's mother loc:Annan Annan Waters, a wide river in a deep gorge cha:Annie Antimony Carver, our protagonist sym:AntimonySymbol The alchemical symbol for antimony; associated with Annie and Surma
What the tags classifications mean might need some discussion: I don't think we are tagging plots at all, and even identifying them might be 'interesting'. Ideas would be things like Etherium, God? Might be better analysed elsewhere than the tagging system. KISS may apply? Plots I guess shouldn't need their own tags, they should be able to be handled by the existing tags or combinations anyway. Well then the wiki will need updating too then! What do you mean by tag counts exactly? The number of time each tag has been used? For some reason this never occured to me to do... Timed hover perhaps then, after a few seconds the tag description pops up Also I had a suggestion I added to the list, the ability to select multiple tags at once. So for example the ability to select all comics featuring both the Kat AND Paz tags. I don't believe it is possible at the moment, although I could have just missed it myself. Also, just uploaded Ch 29
|
|
|
Post by louisxiv on Jun 9, 2013 22:39:12 GMT
|
|