emanchado / narrows

Online storytelling system
http://hardcorenarrativist.org/narrows/
BSD 3-Clause "New" or "Revised" License
113 stars 7 forks source link

Add option to mark text as OOC in reader view #13

Open fhemberger opened 6 years ago

fhemberger commented 6 years ago

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

emanchado commented 6 years ago

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.

fhemberger commented 6 years ago

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

fhemberger commented 6 years ago

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

emanchado commented 6 years ago

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:?