<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>C. G. Lopes); jmacunha@dei.uc.pt (J. M. Cunha); pjmm@dei.uc.pt (P. Martins)
~ https://cdv.dei.uc.pt/ (J. M. Cunha)</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Towards Generative Illustration of Text</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Carolina Gonçalves Lopes</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>João M. Cunha</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pedro Martins</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>CISUC, Department of Informatics Engineering University of Coimbra</institution>
          ,
          <country country="PT">Portugal</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2020</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0001</lpage>
      <abstract>
        <p>Generative illustration of text is a task that can be viewed as related to both information visualisation and computational design. In this paper, we present an exploratory study towards text illustration, describing our experiments to visually represent data about characters, objects and emotions. We present our conclusions in regards to representing data using attributes such as colour, shape and position. Over the years, illustration has been influenced by technological and artistic advances. Like this, generative illustration emerges by technology's influence. This can be defined as a process of illustration, whose possible visual compositions are created from algorithms or set by rules. Programming languages such as Processing1 have significantly contributed to the simplification of generative illustration processes, enabling the creation of several artefacts eficiently. Some research has been conducted in the past in regards to generative illustration. For example, representing the text in book covers - e.g. [1] or Data Book Covers2 - and in representation of songs and lyrics in video [2, 3]. The project described in this paper was developed in the context of a master's dissertation in Design and Multimedia [4] and addresses the potential of illustration using technological processes, namely, generative techniques. We explore several possibilities that allow for the visual representation of characteristics of diferent nature associated with the content of a text. We believe generative illustration can be seen as an alternative to the traditional techniques of illustration and be included as a component of a computational design system.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Computational Design</kwd>
        <kwd>Information Visualisation</kwd>
        <kwd>Illustration</kwd>
        <kwd>Generative Design</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>2. Approach</title>
      <p>
        The examples given in the previous section rely mostly on structure or form (rather than
content) to illustrate/visualise text. Despite not considering them as inefective approaches, for
our project we wanted to go further and also consider aspects more related to content, such
as character development. This idea draws inspiration from the works of the Swiss illustrator
Warja Lavater3, where characters are represented as geometric shapes [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. In the illustrations
produced, the author explores relationships among characters and represents them using visual
transformations, e.g. scale increase to represent the power of one character over the other, or
inclusion to represent a character being eaten. For our project, we wanted to focus our analysis
of the text in three aspects: characters, other objects that appear in the story and emotion. We
take into consideration aspects deemed relevant when the visually representing concepts – e.g.
the semiotics of colour and shape [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
      </p>
      <p>To produce a system, we made the decision of following a multilayered approach. Each layer
would be produced by analysing diferent aspects of the text, as identified below:
• 1st Layer – Proper Nouns (charaters)
• 2nd Layer – Common Nouns (e.g. objects)
• 3rd Layer – Sentiment</p>
      <p>
        By following this strategy, we wanted to achieve an overall representation of the text, mapping
text properties (syntax, semantics and also emotional content) to visual properties (e.g. colour,
shape and size). For the analysis of emotion in the text we used two lexica: NRC Word-Emotion
Association Lexicon and NRC Word- Color Association lexicon. These are part of a collection of
lexica developed by the National Research Council of Canada [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. In the following sections, we
will describe our explorations, which had as final goal to implement a system for text generative
illustration.
      </p>
      <sec id="sec-2-1">
        <title>2.1. 1st Layer – Proper Nouns</title>
        <p>One of the aspects that has more relevance in the story is its characters. To identify the
characters we used the RiTa Library4 to perform part-of-speech tagging and retrieve the proper
nouns. In general, this analysis allows us to visualise the “surface” of the story, identifying the
characters names and respective relevance (i.e. extrapolated from the number of times that they
are mentioned).</p>
        <p>At a first stage, we did a preliminary exploration with size, position and colour in character
representation. The conclusions from this first analysis were: (i) position is useful to visually
3http://www.maeght.com/news/oct09_lavater/english-index.html
4https://rednoise.org/rita/
represent the location in the story (e.g. mapping the story into a canvas by using the left top
corner as beginning and bottom right as the end); (ii) size can be used to represent the relevance
in the text but has some restrictions as it directly influences how the story is mapped to the
canvas; and (iii) colour can be used to distinguish between diferent characters.</p>
        <p>We identified three aspects that needed to be addressed when representing characters (using
proper nouns): identification, emotion and positioning.</p>
        <p>The first approach to character identification was done by using shapes, in which the number
of vertices was being mapped to the number of verbs – we used a minimum of 3 and a maximum
of 15 vertices and then assigned the diferent shapes to the characters in order of verb count
(the character with the highest count would get a shape with more vertices).</p>
        <p>
          In addition, we started using the adjectives by mapping them to emotions and using colours
associated with these emotions retrieved from [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] (see Fig. 1). We used these colours in
combination with the shapes associated with the characters and we also changed their size depending
on the number of occurrences. However, this strategy did not prove itself very useful, as the
characters representation would change depending on the verbs and in small sizes it was not
possible to distinguish between characters.
2.1.1. Second Approach
Given that we had already concluded that colour is appropriate for character distinction, we
decided to change the strategy. The new approach for character representation was based on
two assumptions: (i) colour was to be used to distinguish between characters and (ii) a change
in saturation was to be used to reflect the change in emotion. This latter aspect would enable us
to see the evolution of the character. The first colour study can be seen in Fig. 2. In this figure
our eforts to produce a colour palette can be observed – we tried to define a set of colours
and respective change in saturation. However, the results obtained showed that the colours
were too similar and would eventually lead to perception issues. For this reason, we decided to
reduce the set, assuming that less important characters would not have great evolution. In Fig. 3
it is possible to see the final palette, in which five colours can be used with diferent saturation,
while the others are static.
        </p>
        <p>
          We decided to start by assigning emotion to shape. Initially, we started by using the emotions
defined by Plutchik [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]: Anger, Fear, Sadness, Joy, Trust, Anticipation, Disgust and Surprise.
However, some emotions could be interpreted as being dependent on a third party (e.g. trust
in what?), so we decided to exclude “trust”, “anticipation”, “disgust” and “surprise”. With the
remaining emotions, we conducted a perception study based on distortions applied to a circular
shape and their perceived emotion (see Fig. 4). With this study, we tried to define how a shape
should be distorted to represent each emotion.
        </p>
        <p>The emotions were retrieved using the verbs and adjectives associated with the character.
These were mapped to a shape. However, upon observing the shapes we came to the conclusion
that emotion is not totally perceivable from shapes alone. For this reason, we decided to make
use of the saturation palette previously described. The saturation value was established based
on emotions associated with the character: positive ones would lead to more saturation and
negative to less.</p>
        <p>An example of a result obtained for proper nouns can be observed in Fig. 6.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. 2nd Layer – Common Nouns</title>
        <p>For the common Nouns layer we wanted to follow a diferent approach. By looking at the
results obtained with the proper nouns, we concluded that the geometric shapes were a style
we wanted to assign to the first layer. For this reason, we decided to explore an approach
similar to collage of images. To do this, we implemented a method to retrieve images for the
common nouns using the platform Pixabay5. By querying a word, we would receive images
that represented it in some way. Initially, we started to explore the application of filters to these
images in association with emotions, as observed in Fig. 5. However, we were unsatisfied with
the results that we were obtaining and decided to leave this topic for future work.</p>
      </sec>
      <sec id="sec-2-3">
        <title>2.3. 3rd Layer – Sentiment</title>
        <p>For the 3rd layer we wanted to convey a more general sense of the sentiment of the text. As
such, we analyse the words, retrieve their sentiment. To achieve a sense of overall sentiment,
we used the background colour and assigned a warm colour to a positive sentiment and a cold
colour to a negative one.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Closing Remarks</title>
      <p>
        In this paper, we described a project that had as main goal the implementation of a system
for text illustration. It is important to mention that this project results from an exploratory
study in the context of a master thesis conducted by the first author [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Our system generates
illustrations for texts and the results obtained show how diferent types of text lead to diferent
illustrations, even being based on the same story. Figure 7 illustrates this by comparing the
“Cinderella” form the Gutenberg Project6 with the “Cinderella arrives by car” from the Fairy
Tales for the Disillusioned [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. This is particularly interesting when one considers the existence
of parodic retellings of classic tales [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], which can be used to generate illustrations and assess
the impact of diferent text of similar stories on the final output of the system. Our end goal is
to use our system as a component of a bigger framework for computational design of books. In
our opinion, generative techniques have the potential to bring new possibilities to the field of
graphic design [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ].
      </p>
      <p>Despite having reached some important conclusions, there is a considerable amount of work
to be done. Some future developments include addressing relations between characters and a
thorough study on perception of the generated illustrations.</p>
    </sec>
    <sec id="sec-4">
      <title>Acknowledgments</title>
      <p>This work is partially funded by the Foundation for Science and Technology, I.P., within the
scope of the project CISUC - UID/CEC/00326/2020 and by European Social Fund, through the
Regional Operational Program Centro 2020, and under the grant SFRH/BD/120905/2016.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>L.</given-names>
            <surname>Duro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Machado</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Rebelo</surname>
          </string-name>
          ,
          <article-title>Graphic narratives: Generative book covers</article-title>
          ,
          <source>in: ACM SIGGRAPH 2012 Posters, SIGGRAPH '12</source>
          ,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2012</year>
          . doi:
          <volume>10</volume>
          .1145/2342896.2342925.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>M.</given-names>
            <surname>Cruz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Hardman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. M.</given-names>
            <surname>Cunha</surname>
          </string-name>
          ,
          <article-title>Computationally generating images for music albums</article-title>
          ,
          <source>in: Proceedings of the Ninth International Conference on Computational Creativity</source>
          , Salamanca, Spain, June 25-29,
          <year>2018</year>
          .,
          <year>2018</year>
          , p.
          <fpage>309</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M.</given-names>
            <surname>Cruz</surname>
          </string-name>
          , Os olhos também ouvem: Sistema de geração de imagens de acordo com texto e som para álbuns de música,
          <source>Master's thesis</source>
          , University of Coimbra,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>C. G.</given-names>
            <surname>Lopes</surname>
          </string-name>
          ,
          <article-title>Ilustração Generativa com Base em Texto, Master's thesis</article-title>
          , Universidade de Coimbra,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>S.</given-names>
            <surname>Mohammad</surname>
          </string-name>
          ,
          <article-title>Colourful language: Measuring word-colour associations</article-title>
          ,
          <source>in: Proceedings of the 2nd Workshop on Cognitive Modeling and Computational Linguistics</source>
          ,
          <year>2011</year>
          , pp.
          <fpage>97</fpage>
          -
          <lpage>106</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>W.</given-names>
            <surname>Lavater</surname>
          </string-name>
          , Le Petit Chaperon Rouge,
          <string-name>
            <given-names>A.</given-names>
            <surname>Maeght</surname>
          </string-name>
          ,
          <year>1965</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>J. M.</given-names>
            <surname>Cunha</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Martins</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Cardoso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Machado</surname>
          </string-name>
          ,
          <article-title>Generation of concept-representative symbols</article-title>
          ,
          <source>in: Workshop Proceedings of the 23rd International Conference on Case-Based Reasoning (ICCBR-WS</source>
          <year>2015</year>
          ), CEUR,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>R.</given-names>
            <surname>Plutchik</surname>
          </string-name>
          , The emotions, University Press of America,
          <year>1991</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>G.</given-names>
            <surname>Schultz</surname>
          </string-name>
          , L. Seifert,
          <article-title>Fairy Tales for the Disillusioned: Enchanted Stories from the French Decadent Tradition</article-title>
          , Princeton University Press,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>C.</given-names>
            <surname>Malarte-Feldman</surname>
          </string-name>
          ,
          <article-title>Folk materials, re-visions, and narrative images: The intertextual games they play</article-title>
          ,
          <source>Children's Literature Association Quarterly</source>
          <volume>28</volume>
          (
          <year>2003</year>
          )
          <fpage>210</fpage>
          -
          <lpage>218</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Schimpf</surname>
          </string-name>
          ,
          <article-title>Substantial Changes in Graphic Design with the Emergence of Generative Design Processes, Master's thesis</article-title>
          , Universidad Internacional de La Rioja,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>