Improving quoting quote accuracy

Hello. I’m a relatively new discourse user. Here’s a thread I created earlier about the issue I was having:

I don’t know if this is a bug or not. The feature I’m asking for is keeping quote levels accurate when quoting partial text from someone. For example,
using this: A History of Pizza | History Today :

Pizza is the world’s favourite fast food. We eat it everywhere – at home, in restaurants, on street corners. Some three billion pizzas are sold each year in the United States alone, an average of 46 slices per person. But the story of how the humble pizza came to enjoy such global dominance reveals much about the history of migration, economics and technological change.

If I quote it like this:


and press quote I get this:

When I quote just this part:

I get this:

It shows it as quoting me. That’s wrong. It doesn’t show it as quoting a quote.

5 Likes

But it is a quote from quoted user. I’m not so sure this an error or even wrong. You should quote earlier sentence (here: the link) too.

In general. I guess so, yeah. Here’s a typical scenario I’ve run into which I’m trying to address:

Pizza is the world’s favourite fast food. We eat it everywhere – at home, in restaurants, on street corners. Some three billion pizzas are sold each year in the United States alone, an average of 46 slices per person. But the story of how the humble pizza came to enjoy such global dominance reveals much about the history of migration, economics and technological change.

You just want to address/disuss/point out the part about three billion pizzas so you do this:


That comes out as this:

I want it to come out like this:

So that it shows that a quote of quoted text is being done.

It already does this in other scenarios like:

1 Like

So what’s you’re asking is that the quote function should include the context, by “extending” the beginning of the selection (without actually copying the previous text) recursively until it reaches the beginning of context.
I.e. a selected text can be inside <b>, itself inside a <a>, itself inside a quote, itself inside a parent quote, and so on.

The issue you describe is how the quote works overall: if I select only part of your A History of Pizza | History Today link, it will quote the text but omit the link (and the quote).

It seems a good idea to include this kind of context, but I feel like this would be complicated to do :thinking:

2 Likes

I would dislike such action. What I select is what I want to quote, and software shound never change that. It is always bad idea when a software, aka. a dev, thinks it knows better than a user and starts fix things. For such works we have Microsoft and Windows :joy:

This is a matter of what should be preferable between the two because we can’t have the best of both worlds. Either we quote the context as well, which might be valuable, or we omit the context, which might be at a loss. :person_shrugging:

I’d say that most of the time I quote, it would have been better with the whole context of the selection.

I think there’s a bit of confusion. Maybe its how I’m presenting it? Taking my above examples:

Base text:
From A History of Pizza | History Today :

Pizza is the world’s favourite fast food. We eat it everywhere – at home, in restaurants, on street corners. Some three billion pizzas are sold each year in the United States alone, an average of 46 slices per person. But the story of how the humble pizza came to enjoy such global dominance reveals much about the history of migration, economics and technological change.

Now let’s say you or someone else wants to quote the thing I shared for a discussion. If you quote directly from me and quote just part of it, like I mentioned, something like the billion pizzas part it would come out like this when pressing quote:

If someone isn’t paying attention when using discourse it shows me as the one saying that. Thats technically a misquote. I don’t know the technical feasibility of this but it should quote it with a > to show that I am not the one saying it.

2 Likes

What it does:

What you want:

It preserves the context, which is in this case: “the world is inside a link, which is inside a quote, which is from this user’s post”.

2 Likes

The problem with the current functionality is it leads to misquotes. I’ve multiple times had people post a quote on my forum that says I wrote text, but the text is actually from some book I quoted. If the quote level was correct, then people would see the attribution wasn’t quoted rather than thinking I wrote the text.

I think it should be safe for non-technical, non-precise users to select any text, click quote, and get a quote that isn’t clearly wrong.

Email lists handle this better. Observe me selecting quote level 3 text and then hitting reply in Mac Mail:

Expecting users to always quote the attribution in addition to the quote doesn’t work well. Users may not know to do that. They may not want to clutter up their post with extra text. They may be only quoting the middle of the quote, so to get it right they’d have to manually edit out text in between the attribution and the part they’re quoting and type an ellipsis. They may be quoting multiple sections of the quote to reply to separately but they wouldn’t want to include attribution multiple times in their post.

I do think there are also issues when you e.g. quote a phrase that was bolded and get a non-bold quote because you didn’t quote the start or end of the bolded text. But this tends to be much more visually obvious to posters in the preview than a missing quote level inside a blockquote, and the harm of errors here is smaller than with incorrect quotation attributions.

I think that however you handle this stuff in general, quote levels and attributions in particular should never be wrong when users don’t manually screw them up.

4 Likes

Take a look at this example:

I selected a bold word but that is not what I got.

Why? Because under the hood the original looks like before **Bold sentence with words.** after but that is not displayed to the user doing the quoting. They saw rich text, selected a bold word in rich text, and expected it to come out bold. They didn’t see themselves as selecting a section of markdown text that didn’t include asterisks.

Also, observe this:

You call this the software not changing the selection and just being literal. But these results only make sense in terms of rich text. In terms of the underlying markdown, the software changed it on me. My selection didn’t include the closing **, but the forum software added that in.

If you want people to quote from raw markdown, display it to them and let them select it directly to quote, I guess. Having them select rich text but get quotes (partly) based on markdown is confusing and leads to results users don’t intend.

2 Likes

Which topic you want to discuss:

  • people can’t quote right and that’s why software should quess what amount of text should so as a quote
  • quote misses markdown

First one is what we have had here now. Second one is worth of new topic in Bug, Support or UX .

They’re the same issue. Are you saying you think the “with” should be bolded in my first example to you? That’s the same thing as including the > from the underlying markdown that applied to the selected text (in terms of the displayed rich text) but was not included in the selection (in terms of underlying raw markdown).

And when a user highlights some text, hits the “quote” button, and then writes a reply under it, that is not user error. That is not an issue of people can’t quote right. They used the provided user interface in a perfectly reasonable way. But it sometimes results in incorrect quotations.

Those are totally different things.

First one is question of users who don’t choose at all those lines they should to get quote they would like to quote. Same thing than left half of a post pasted and still want to get unpasted too.

Second one is a glitch where quote doesn’t markdown, if it is the only part quoted. Text itself is quoted, though.

It’s the same issue:

The user selects text, displayed in rich text, where he can clearly see it’s part of a block quote (same as seeing it’s bold). Then he quotes it and the markdown (> in this case, rather than **) is omitted because he didn’t select the place where, in the raw markdown, that > is. It’s quoted as plain text, not quoted text, even though the thing the user selected looked liked quoted text to him. So then the user falsely presents Dickens’ text as if Elliot wrote it. That’s the problem this thread is about.

The correct quote that I think Discourse should do is like this with the increased quote level, like just like how email clients worked decades ago:

This shows that Elliot quoted that text rather than writing it himself.

3 Likes

I agree that’s the same issue,

I don’t think that including the context implies that the software guesses what amount of text should be quoted.
The text is still what we selected, no less no more. Adding context doesn’t mean it adds text. It adds formatting, and only formatting.

4 Likes

That’s not what OP requested.

The example given by the topic’s author on what occurs versus what they want to occur shows no additional text, only formatting:

5 Likes