narrows icon indicating copy to clipboard operation
narrows copied to clipboard

Add option to mark text as OOC in reader view

Open fhemberger opened this issue 6 years ago • 4 comments

It would be nice to have the opportunity to mark text inside a comment as "out of character".

fhemberger avatar Oct 10 '18 16:10 fhemberger

What kind of mark do you have in mind? Both how it would look visually, and how to trigger it.

I really don't want to add WYSIWYG controls or buttons or whatever, I'd prefer the messages to stay plain text. On the other hand, I don't oppose the idea of, say, highlighting lines starting OOC or similar.

emanchado avatar Oct 11 '18 16:10 emanchado

Maybe something as simple as text in square brackets gets a class "ooc". That should be enough. I'll come up with something.

fhemberger avatar Oct 11 '18 17:10 fhemberger

Okay, how about this: Replace square brackets with <span class=ooc>…</span> and use this simple style (just a quick draft).

.ooc::before {
    content: "OOC: "
}

.ooc {
    color:#cccc8d
}

Example: bildschirmfoto 2018-10-12 um 09 48 25

fhemberger avatar Oct 12 '18 07:10 fhemberger

You mean that the original text (as written by the user) would be the one below?

[So maybe the female thief had something on her, ...]

When this is all over, ...

I'm highly sceptical, as I'd have to parse and find the closing bracket, it could span several lines, it could be mistaken by other stuff, etc.

What about marking with the class any line that starts with OOC:?

emanchado avatar Oct 12 '18 14:10 emanchado