From f18f4bf2d77a28ba808435a5c28f3551bd9c962f Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Wed, 8 Jan 2014 16:00:40 +0100 Subject: Use Unicode Emoji characters for smiley alt text. --- org/madore/damlengine/TodoSmileyElement.java | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/org/madore/damlengine/TodoSmileyElement.java b/org/madore/damlengine/TodoSmileyElement.java index 72bb638..8bd3031 100644 --- a/org/madore/damlengine/TodoSmileyElement.java +++ b/org/madore/damlengine/TodoSmileyElement.java @@ -5,18 +5,18 @@ import org.w3c.dom.*; public final class TodoSmileyElement extends TodoDefaultElement { public enum Type { - SMILE("smile", ":-)", "Smile", "Sourire"), - WINK("wink", ";-)", "Wink", "Clin d'\u0153il"), - SURPRISED("surprised", ":-o", "Surprised", "Surpris"), - SAD("sad", ":-(", "Sad", "Triste"), - COOL("cool", "8-)", "Cool", "Cool"), - BIGGRIN("biggrin", ":-D", "Big grin", "Grand sourire"), - CONFUSED("confused", ":-S", "Confused", "Troubl\u00e9"), - CRAZY("crazy", "%-)", "Crazy", "Fou"), - NEUTRAL("neutral", ":-|", "Non-grin", "Sans sourire"), - TWISTED("twisted", "8->", "Twisted", "Tordu"), - CRY("cry", "\u00A6-(", "Crying", "Pleure"), - EVIL("evil", ">:-(", "Evil", "Mauvais"); + SMILE("smile", new String(Character.toChars(0x263A)), "Smile", "Sourire"), + WINK("wink", new String(Character.toChars(0x1F609)), "Wink", "Clin d'\u0153il"), + SURPRISED("surprised", new String(Character.toChars(0x1F632)), "Surprised", "Surpris"), + SAD("sad", new String(Character.toChars(0x2639)), "Sad", "Triste"), + COOL("cool", new String(Character.toChars(0x1F60E)), "Cool", "Cool"), + BIGGRIN("biggrin", new String(Character.toChars(0x1F601)), "Big grin", "Grand sourire"), + CONFUSED("confused", new String(Character.toChars(0x1F615)), "Confused", "Troubl\u00e9"), + CRAZY("crazy", new String(Character.toChars(0x1F61D)), "Crazy", "Fou"), + NEUTRAL("neutral", new String(Character.toChars(0x1F610)), "Non-grin", "Sans sourire"), + TWISTED("twisted", new String(Character.toChars(0x1F621)), "Twisted", "Tordu"), + CRY("cry", new String(Character.toChars(0x1F622)), "Crying", "Pleure"), + EVIL("evil", new String(Character.toChars(0x1F608)), "Evil", "Mauvais"); final String emotion; final String altText; final String enName; -- cgit v1.2.3