Image annotation script (108)

1 Name: !WAHa.06x36 2005-03-25 14:24 ID:eYuLk9SR [Del]

Since I put it into testing over at the ABe board already, I might as well make a thread here to discuss my latest project.

http://wakaba.c3.cx/notes/notes.pl

In a nutshell, it's a script for putting notes on images. This is from an idea of whispers', about collaborative translation - several people can work on a translation by creating and editing notes for text on a comic page. There are probably other uses too, if someone can be bothered to think about them.

It's definitely not done yet, but it's open for public scrutiny for bug testing and to gather ideas for features it needs to be useful. Some signs of it being unfinished are:

  • No deletion of notes, and no reverting to older versions.
  • Lack of other unspecified backend features (for instance, discussion threads for each image)
  • It would be useful to have differently coloured notes, but that's not done yet.
  • Some newline issues with certain browsers. Not sure which ones, but that should be easy enough to fix.

Well, have a look. Try not to mess it up too badly. If you want to do some heavy testing, add a new image to work on.

2 Name: Anonymous 2005-03-25 17:29 ID:Heaven [Del]

> other uses

Detailed art critique? Where's waldo? Labelling school/group photographs?

Hmm. Could you make the note icon partly transparent?
Is there a way to search for text within notes?

3 Name: !WAHa.06x36 2005-03-25 18:28 ID:IbCAkehy [Del]

A little bit of CSS trickery should take care of transparency. Or even better, maybe I should make an alpha-channel PNG icon, just to annoy IE users. Ok, that's a little bit mean. Actually, I could detect IE and give them a crappier icon... ANYWAY.

No way to search for text, but that's not a bad idea, I suppose. I should add that to the list.

4 Name: anon!21anon4H3U 2005-03-26 18:45 ID:sJ1xLWAa [Del]

How about being able to integrate it with imageboards? i.e. when a post is made, it creates a link to a notes page for it (for translation boards or art boards).

5 Name: !WAHa.06x36 2005-03-26 20:26 ID:XdPu3nUU [Del]

That's part of the plan. That's really easy, actually, just need to make a link with the right URL in it on the board.

6 Name: !WAHa.06x36 2005-03-29 17:57 ID:KeNZSLQJ [Del]

Updated!

  • Cute coloured notes!
  • Cute transparent icons!
  • Deletion and reverting now works!
  • Better code!

Doesn't look as good in IE as it does elsewhere, but that's what you get. At least it works in IE, which is a small miracle in itself.

7 Name: !WAHa.06x36 2005-03-29 17:57 ID:KeNZSLQJ [Del]

...as usual, make sure to reload the page to get the new Javascript and CSS.

8 Name: whee 2005-03-29 23:40 ID:+OAmsJUm [Del]

Is "Show 'x' color only" on the list? How about a bubble maker to preview text positioning? Associate a second text area anchored to the pushpin but movable so you can preview english text without the kanji and discussion in the main note. Maybe with selectable fonts and font sizes. An option to show note on mouseover? Oh! And add a Thumbtack-tan pushpin!

This is gonna be so awesome for my site! n_n

Have you thought of a name for it? Wakaba Notes, WakaNotes?

9 Name: Anonymous 2005-03-29 23:42 ID:Heaven [Del]

No, this is unique enough for its own name!

Kareha is old leaves,
Wakaba is new leaves,
how about naming this one floating leaves or something like that?

10 Name: whee 2005-03-30 00:02 ID:+OAmsJUm [Del]

Hmm, sprouting leaves? budding leaves? cloverleaf(for multiple-in-one deal?

11 Name: Mr VacBob!JqK7T7zan. 2005-03-30 00:36 ID:FzKH3BNa [Del]

12 Name: !WAHa.06x36 2005-03-30 05:00 ID:KeNZSLQJ [Del]

>>8

Aiee!

>>9

I am open for suggestions for names, because I haven't been able to think up anything good.

>>10

"Futaba" is already "sprouting leaves", or at least "sprout" as a noun. I've been wondering if it's a moe pun...

>>11

Ugh, Safari. KHTML is kind of broken... And Safari doesn't have a Javascript debugger, does it? So finding out what breaks is an utter pain in the ass, especially since I don't yet have a Mac to test on.

13 Name: Anonymous 2005-03-30 20:39 ID:Heaven [Del]

wikiba note

14 Name: whee 2005-03-30 20:43 ID:Heaven [Del]

>>12
A little overboard on the suggestions? n_n;

Names... Clusterleaf? Multi/Manyleaf? Some sort of reference to climbing vines(I think they're called ivy)?

15 Name: dmpk2k!hinhT6kz2E 2005-03-31 20:24 ID:Heaven [Del]

Now this is a neat and useful script.

16 Name: whee 2005-03-31 21:50 ID:+OAmsJUm [Del]

After a few days of use, all the doubleclicking is really making me itch for a mouseover reveal option.

17 Name: !yGAhoNiShI 2005-04-01 02:13 ID:Heaven [Del]

>>12
Akiha

18 Name: !yGAhoNiShI 2005-04-01 02:19 ID:Heaven [Del]

Oh, or Aoba.

19 Name: !WAHa.06x36 2005-04-01 07:39 ID:aSsI8SSR [Del]

>>16

Seems far too epilepsy-inducing. I've been considering single-click reveal, though.

>>17

I am sort of tempted by that one. The danger is that I'd end up making all error messages start with "Nii-san, ..."

20 Name: Anonymous 2005-04-01 17:45 ID:Heaven [Del]

>The danger is that I'd end up making all error messages start with "Nii-san, ..."

I see nothing wrong with that.

XD

21 Name: Anonymous 2005-04-02 14:49 ID:Heaven [Del]

>>20
nigga stole my post

22 Name: Anonymous 2005-04-04 00:58 ID:Heaven [Del]

> # Deletion and reverting now works!

uh, how?

Also, needs more discussion thread on same page.

23 Name: !WAHa.06x36 2005-04-04 05:36 ID:Heaven [Del]

>>22

Click "More..."

24 Name: Anonymous 2005-04-11 18:44 ID:Heaven [Del]

>>23

o i c
(* ´-`)

25 Name: Hinata 2005-04-14 00:32 ID:+6MEkyA8 [Del]

>9

Hmm,
落ち葉(Ochiba) = fallen leaves

26 Name: 9 2005-04-14 06:04 ID:Heaven [Del]

>>25

Too late: http://ochiba.x-maru.org/

( ・ω・)

27 Name: Anonymous 2005-04-14 16:36 ID:iBHp5xiv [Del]

>>26
Hey fuck that software ok. I hope it dies.

28 Name: Mr VacBob!JqK7T7zan. 2005-04-17 19:22 ID:eN82WyNO [Del]

The notes script works properly on Safari v1.3/OS X 10.3.9.

29 Name: !WAHa.06x36 2005-04-17 20:08 ID:KeNZSLQJ [Del]

That a newer version than the one you tried earlier? Safari still has some catching up to do with the standards compliance - hell, every browser does - but it's nice to see that they're working on it, at least.

30 Name: Mr VacBob!JqK7T7zan. 2005-04-17 23:19 ID:eN82WyNO [Del]

It's new, just came out today.

31 Name: Mr VacBob!JqK7T7zan. 2005-04-17 23:20 ID:eN82WyNO [Del]

And by today I mean "recently", but who's counting.

32 Name: Hinata 2005-04-18 10:17 ID:+6MEkyA8 [Del]

I think it's around time to implement a simple function, by which you can create a project or close a project. ( I don't know a proper word for it. Project Manager?).

I made a draft.
http://hinatama.net/~hinata/goodies/thingy.html

If it's okay, I'd like to join this project and add some codes for it.
If GDBM or other DBM is used at the moment, each project may have its own dbm file after the modification.

Probably, WAHa already gets to it, though.

33 Name: !WAHa.06x36 2005-04-18 11:09 ID:KeNZSLQJ [Del]

>>32

I have also been thinking that it needs a way to organize pages better. I have been too busy with another crazy project to do any work on it, though, so it's stayed as it is for now.

It uses an SQL database internally, and has just a single table that contains columns for the image URL, an ID for the note, a timestamp, and the data for the note. The idea is that when saving, I just add another entry to the database, and all the old ones stay in the database. When showing a page, I pick all the entries with the correct image URL, and select just those with the newest timestamp. This lets the script show the entire editing history for a note.

There's not really any way to add projects to that, so I'm thinking there could be another table that contains the project information for every URL. When you add a new page, it doesn't automatically get added to a project (so you can have a section of unorganized pages for simple things), but you can then use the project manager or whatever to assign it to a certain project.

I would be interested in help with it, since I've got other things I'm busy with too, though. I think I'll upload the code somewhere later tonight.

34 Name: Hinata 2005-04-18 13:04 ID:+6MEkyA8 [Del]

I think the system needs at least three tables.
One for projects, one for pages in projects. The last one is for for notes in pages. I'm going to submit details tomorrow.

Thank you for your interest. If you possibly want to handle the source code and SQL a bit internally , please send them to my address( hinata @ sc.openbit.net )

35 Name: Hinata 2005-04-19 10:40 ID:Heaven [Del]

36 Name: Anonymous 2005-04-21 10:43 ID:Heaven [Del]

Any way to hide the menu window in the upper right corner?

37 Name: Anonymous 2005-04-22 14:30 ID:Heaven [Del]

Feature I'd like: Being able to export projects and import them into other projects. This could be useful for projects carried out on URLs that would eventually expire and similiar stuff.

38 Name: Hinata 2005-04-25 09:56 ID:+6MEkyA8 [Del]

>Being able to export projects and import them into
>other projects

It may be useful to transfer some pages on a project to another project. And it's rather easy to implement.
Similarly, updating the URL which expires is doable with a little difficulty.

39 Name: !WAHa.06x36 2005-04-25 17:14 ID:KeNZSLQJ [Del]

>>38

It'd be easy enough to add a button to change the URL for a page that just asks for a new URL and does an UPDATE entries SET url=(newurl) WHERE url=(oldurl);

Did I call it "url" or "image" in the database? I forget.

40 Name: Hinata 2005-04-26 21:38 ID:Heaven [Del]

url, isn't it.
You must be a wizard. I've nerver seen such complex,compact and efficient codes.

41 Name: Anonymous 2005-04-28 04:03 ID:Heaven [Del]

>>1 put on his robe and wizard hat

43 Name: !WAHa.06x36 2005-05-02 06:45 ID:KeNZSLQJ [Del]

>>42

Er, it is of course appreciated that you want to help out, but those have all been edited already. http://cerealandmilk.net/iichan/img/res/543.html

This thread is for technical issues only, really, and if you want to contribute it is better to hang out on the translation and OS-tan boards, or whereever else the script is being used.

44 Name: Anonymous 2005-05-03 00:30 ID:+OAmsJUm [Del]

How about an editable field for a title, so we don't have to guess what the older filenames contain?

45 Name: !WAHa.06x36 2005-05-03 06:09 ID:KeNZSLQJ [Del]

Hinata's working on some organizational improvements. Let's see how that turns out.

46 Name: !WAHa.06x36 2005-05-06 22:17 ID:KeNZSLQJ [Del]

Upgrade complete!

Added a bunch of Javascript magic to better handle cooperative editing. The page will now periodically check the server for changes to the notes, and mark notes that have changed. Checking will also be done when saving, or if you click "upgrade" in the menu.

The script will now also warn you if you overwrite edits done by some else while you were working.

There are also some minor cosmetic changes, and a collapsible main menu just for >>36. Maybe something else too, but it's late and I'm too tired to remember what I've done.

47 Name: !WAHa.06x36 2005-05-06 22:22 ID:KeNZSLQJ [Del]

Er, there seems to be some bugs. Please stand by...

48 Name: !WAHa.06x36 2005-05-06 22:43 ID:KeNZSLQJ [Del]

Bugs fixed. (Hooray for mysql! Worst database EVER!) Now let's get this show on the road.

49 Name: htsuji 2005-05-06 23:55 ID:4jYmOav8 [Del]

Hello! There is still something in javascript.
All notes, "Recent edits" and "Deleted notes" don't appear.
(I'm IE6 user, and its works several hours before.)

50 Name: htsuji 2005-05-07 00:15 ID:4jYmOav8 [Del]

FireFox seems okey. (I installed it just now.)

51 Name: !WAHa.06x36 2005-05-07 07:00 ID:KeNZSLQJ [Del]

I'll have to check that... It might be that you just need to use shift-reload to get the new Javascript code to reload, though.

52 Name: !WAHa.06x36 2005-05-07 07:15 ID:KeNZSLQJ [Del]

Ah, you're right, there was a bug that made it not work in IE. Now it should work (if you reload). I do recommend using Firefox though, because some of the features don't work in IE (Notes do automatically update in IE too, but they don't get marked like they do in Firefox so you can't see which ones have changed unless you look at the list).

53 Name: !WAHa.06x36 2005-05-07 07:16 ID:KeNZSLQJ [Del]

I also fixed the bug where editing an older note would give you the "sombody has edited this note" message once for no reason.

54 Name: Anonymous 2005-05-08 20:27 ID:P4I636ZA [Del]

54GET

55 Name: Anonymous 2005-05-14 06:44 ID:XiyYyGzb [Del]

Could you include the note's position in the history page? Sometimes that's the only thing that's changed.

56 Name: Anonymous 2005-05-14 09:01 ID:Heaven [Del]

How about an option to change the source image address when it registers 404? In case it expires and needs to be re-uploaded somewhere.

57 Name: !WAHa.06x36 2005-05-14 12:57 ID:KeNZSLQJ [Del]

>>55

I guess, but it doesn't seem all that important... Any particular situation where it would be useful to see it?

>>56

I've been wondering what to do about that. Changing the image URL is a somewhat destructive thing (as there's no obvious way to revert to the old one), so I'm not sure if normal users should be able to do it.

58 Name: Anonymous 2005-05-14 15:08 ID:Heaven [Del]

What if it kept a sort of meta-log for URLs? So they're treated as another note.

Name: Link:
Leave these fields empty (spam trap):
More options...
Verification: