substance / texture

A visual editor for research.
MIT License
1k stars 83 forks source link

Display quotes #1316

Open JGilbert-eLife opened 5 years ago

JGilbert-eLife commented 5 years ago

Description

Text intended to be pulled out as a quote.

User stories

Author

  1. As an author, I want to be able to distinguish quoted content from non-quote content so that I can check the status has been applied correctly.
  2. As an author, I want to be able to see any attribution applied to a quote so that I can check this is correct.

Production staff

  1. As production staff, I want to be able to designate a piece of content as a quote so that I can call it out for special display.
  2. As production staff, I want to be able to edit a quote so that I can correct any errors.
  3. As production staff, I want to be able to remove quote status from a piece of text so that I can turn it back to normal text.
  4. As production staff, I want to be able to delete a quote so that I can correct any errors.
  5. As production staff, I want to be able to set a type for a quote so that I can specify the kind of quote it is.
  6. As production staff, I want to be able to change the type for a quote so that I can correct errors.
  7. As production staff, I want to be able to move a quote to a specific point in the article so that I can increase the visual impact of the quote.
  8. As production staff, I want to be able to add an attribution to a quote so that I can credit the original source.
  9. As production staff, I want to be able to edit the attribution for a quote so that I can correct errors.
  10. As production staff, I want to be able to remove the attribution for a quote so that I can correct errors.

But what if . . . ?

Consideration

XML requirements

Display quotes are captured in the element disp-quote.

<disp-quote>
    <p>Biological concepts – no matter how loosely defined – are always embedded in broader theoretical perspectives on how nature works.</p>
</disp-quote>

PKP example:

<p>
    <disp-quote id="dispquote8">
        <p>Display Quote <italic>Italic text</italic></p>
    </disp-quote>
</p>

Erudit examples:

<disp-quote content-type="example">
        <label>3</label>
          <p>…les standards sont encore une fois si bas, on se contente d’un français
          médiocre, entrecoupé par des expressions et même des phrases en anglais, ce qui prouve le
          manque d’aisance en français…</p>
</disp-quote>
<disp-quote content-type="epigraph">
    <p>Un jour, tout sera bien, voilà notre espérance :</p>
    <p>Tout est bien aujourd’hui, voilà l’illusion.</p>
    <attrib>Voltaire, <italic>Le désastre de Lisbonne</italic></attrib>
  </disp-quote>

In eLife content disp-quote can be captured as a child of:

eLife allows the following child elements:

A @content-type attribute should be allowed for extra semantic capture. Examples include following values (which are essential for Érudit):

This should be set up in the configuration.

Érudit allows the following children of disp-quote (including all variations):

Mock ups

Proposal

fabiobatalha commented 5 years ago

@JGilbert-eLife

Last minute considerations. In some of our articles we have grouped examples, as for example:

<disp-quote content-type="group">
    <disp-quote content-type="example">
            <label>1</label>
            <p>example 1</p>
    </disp-quote>
    <disp-quote content-type="example">
            <label>2</label>
            <p>example 2</p>
    </disp-quote>
</disp-quote>
fabiobatalha commented 5 years ago

@JGilbert-eLife

We did a better evaluation of our corpus. There is only 2 articles with group of examples. We can ignore them. Feel free to remove this and the previous comment.

JGilbert-eLife commented 5 years ago

Thanks for letting me know @fabiobatalha