Sharing lyrics with chords (multiline monospaced messages) in the Chat #1021
Replies: 8 comments 24 replies
-
Great idea! I think it may need some discussion to firm up I think though before we add it to the backlog, so I'm migrating this to a Discussion if that's OK. |
Beta Was this translation helpful? Give feedback.
-
I really support this proposition and #1524. Case : When joining a public server, it is usually a good idea to exchange in a chat window a list of known songs to all participants. However a list will appear as a 1 continuous line (with a limit on nb. of characters) , making it difficult for participants to read. Case : a mono-spaced font would be great to share text bloc diagram of chords that are easily readable by other participants. To my knowledge 'Courrier new' is mono-spaced and available on Windows and Mac default fonts. Unsure about Linux ... At the very least 3.7.x + (I am still on 3.6.2) should support basic html tags. Refs: #1524, #1021, #939, #380, #890 Thank you developers , for re-considering this and the initial proposition. |
Beta Was this translation helpful? Give feedback.
-
To summarize, there seem to be multiple approaches:
@passing would 2) also work for your use case? |
Beta Was this translation helpful? Give feedback.
-
@hoffie - The tags h1-6 and q : But the ideal situation is really a monospaced font and multi-line (end-of-line respecting) chat facility. I see no need to support (also) a proportional font if we can have a monospaced one. |
Beta Was this translation helpful? Give feedback.
-
So, in summary the most benefit seems to be achieved by adding support for multi-line monospaced text. I have therefore closed the generic HTML enabling PR for now. (I'm not currently working on this, so if someone wants to take this up, feel free to and mention it here) |
Beta Was this translation helpful? Give feedback.
-
I would like to work on this in the following way:
Only downside is that it would only work on a server running the version including the feature. When being connected to an older server, the message written in the multiline input field would be merged into a single line. Are there any thoughts / suggestions to that? |
Beta Was this translation helpful? Give feedback.
-
Thanks for your interest. |
Beta Was this translation helpful? Give feedback.
-
I have read through the discussion and pull request #1859 and perhaps I am not understanding it properly. I believe the functionality can be achieved with no modification to the server, and no extra config on the client side. Did I miss something ? If the user types, or pastes a single line, no change from current client behaviour If the user pastes a multi-line, then
If the client receives a chat message containing "\n"
Old clients will see the chat message as a single line with the "\n" in it - but we don't care too much about older clients as the typeface wouldn't be monospaced and there's no way around that. |
Beta Was this translation helpful? Give feedback.
-
Problem
The chat only allows for single text lines to be sent. Being able to paste multi-line text would allow for sharing lyrics with chords that you have stored on your computer. You could make them directly available to everybody in the current session without having to upload them somewhere.
Describe the solution you'd like
The chat window could have a button somewhere that switches to 'multi-line' mode. In that mode, the input box would need to turn into a multi-line box. Text written in that box should have monospaced font and the message should also be displayed that way after it got sent
Technically, I could imaging that any message with newlines (
\n
) could just be treated that way on the clients receiving it.Describe alternatives you've considered
The multi-line mode could also open another window in case the single-line input box cannot be replaced with a multi-line input.
Additional context
Sharing multi-line / monospaced content was possible before #939, which lets the server escape html in chat messages.
But making use of that also required some way of creating html with specific tags as mentioned here: #890 (comment)
Beta Was this translation helpful? Give feedback.
All reactions