m->d: Emoji sprite sheet doesn't work with newlines #26

Open
opened 2024-01-13 09:42:47 +00:00 by cadence · 0 comments
Owner

Sample Matrix event. It contains emojis and newlines:

{
  "content": {
    "body": "<img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"> <img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"> <img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"> <img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"> <img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\">\n<img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\">\n<img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"><img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"><img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"><img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\">",
    "format": "org.matrix.custom.html",
    "formatted_body": "<img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"> <img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"> <img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"> <img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"> <img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"><br/>\n<img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"><br/>\n<img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"><img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"><img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"><img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\">",
    "msgtype": "m.text"
  },
  "origin_server_ts": 1705120523872,
  "room_id": "!TqlyQmifxGUggEmdBN:cadence.moe",
  "sender": "@emma:conduit.rory.gay",
  "type": "m.room.message",
  "unsigned": {},
  "event_id": "$FsiXP78LmPYROvZToAxdGFbF0iFtkQobjzlCkY41KfY",
  "user_id": "@emma:conduit.rory.gay"
}

Discord just shows the last line of 4 emojis.

The sprite sheet builder should move to the next line when the source message has a newline.

Sample Matrix event. It contains emojis and newlines: ``` { "content": { "body": "<img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"> <img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"> <img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"> <img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"> <img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\">\n<img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\">\n<img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"><img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"><img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"><img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\">", "format": "org.matrix.custom.html", "formatted_body": "<img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"> <img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"> <img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"> <img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"> <img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"><br/>\n<img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"><br/>\n<img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"><img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"><img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\"><img data-mx-emoticon height=\"32\" src=\"mxc://rory.gay/VgIDTYowMtGjCruaEROqYxDh\" alt=\"nyaboom\" title=\"nyaboom\">", "msgtype": "m.text" }, "origin_server_ts": 1705120523872, "room_id": "!TqlyQmifxGUggEmdBN:cadence.moe", "sender": "@emma:conduit.rory.gay", "type": "m.room.message", "unsigned": {}, "event_id": "$FsiXP78LmPYROvZToAxdGFbF0iFtkQobjzlCkY41KfY", "user_id": "@emma:conduit.rory.gay" } ``` Discord just shows the last line of 4 emojis. The sprite sheet builder should move to the next line when the source message has a newline.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cadence/out-of-your-element#26
No description provided.