<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">Towards Generative Illustration of Text</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">Carolina</forename><surname>Gonçalves Lopes</surname></persName>
							<affiliation key="aff0">
								<orgName type="department">Department of Informatics Engineering</orgName>
								<orgName type="laboratory">CISUC</orgName>
								<orgName type="institution">University of Coimbra</orgName>
								<address>
									<country key="PT">Portugal</country>
								</address>
							</affiliation>
						</author>
						<author role="corresp">
							<persName><forename type="first">João</forename><forename type="middle">M</forename><surname>Cunha</surname></persName>
							<email>jmacunha@dei.uc.pt</email>
							<affiliation key="aff0">
								<orgName type="department">Department of Informatics Engineering</orgName>
								<orgName type="laboratory">CISUC</orgName>
								<orgName type="institution">University of Coimbra</orgName>
								<address>
									<country key="PT">Portugal</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Pedro</forename><surname>Martins</surname></persName>
							<affiliation key="aff0">
								<orgName type="department">Department of Informatics Engineering</orgName>
								<orgName type="laboratory">CISUC</orgName>
								<orgName type="institution">University of Coimbra</orgName>
								<address>
									<country key="PT">Portugal</country>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">Towards Generative Illustration of Text</title>
					</analytic>
					<monogr>
						<idno type="ISSN">1613-0073</idno>
					</monogr>
					<idno type="MD5">66E345D9B4790113B82A2E76AF6955C0</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2023-03-24T02:44+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<textClass>
				<keywords>
					<term>Computational Design</term>
					<term>Information Visualisation</term>
					<term>Illustration</term>
					<term>Generative Design</term>
				</keywords>
			</textClass>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><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.</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>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 Processing 1 have significantly contributed to the simplification of generative illustration processes, enabling the creation of several artefacts efficiently. Some research has been conducted in the past in regards to generative illustration. For example, representing the text in book covers -e.g. <ref type="bibr" target="#b0">[1]</ref> or Data Book Covers 2 -and in representation of songs and lyrics in video <ref type="bibr" target="#b1">[2,</ref><ref type="bibr" target="#b2">3]</ref>.</p><p>The project described in this paper was developed in the context of a master's dissertation in Design and Multimedia <ref type="bibr" target="#b3">[4]</ref> 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 different 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></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Approach</head><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 ineffective 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 Lavater <ref type="foot" target="#foot_0">3</ref> , where characters are represented as geometric shapes <ref type="bibr" target="#b5">[6]</ref>. 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 <ref type="bibr" target="#b6">[7]</ref>.</p><p>To produce a system, we made the decision of following a multilayered approach. Each layer would be produced by analysing different aspects of the text, as identified below:</p><p>• 1st Layer -Proper Nouns (charaters) • 2nd Layer -Common Nouns (e.g. objects) • 3rd Layer -Sentiment 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 <ref type="bibr" target="#b4">[5]</ref>. In the following sections, we will describe our explorations, which had as final goal to implement a system for text generative illustration.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.">1st Layer -Proper Nouns</head><p>One of the aspects that has more relevance in the story is its characters. To identify the characters we used the RiTa Library<ref type="foot" target="#foot_1">4</ref> 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  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 different 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 different 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 <ref type="bibr" target="#b4">[5]</ref> (see Fig. <ref type="figure" target="#fig_0">1</ref>). 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.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.1.">Second Approach</head><p>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. <ref type="figure" target="#fig_1">2</ref>. In this figure our efforts 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. <ref type="figure" target="#fig_2">3</ref> it is possible to see the final palette, in which five colours can be used with different 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 <ref type="bibr" target="#b7">[8]</ref>: 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. <ref type="figure" target="#fig_3">4</ref>). 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. <ref type="figure">6</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2.">2nd Layer -Common Nouns</head><p>For the common Nouns layer we wanted to follow a different 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 Pixabay <ref type="foot" target="#foot_2">5</ref> . 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. <ref type="figure">5</ref>. However, we were unsatisfied with the results that we were obtaining and decided to leave this topic for future work.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3.">3rd Layer -Sentiment</head><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></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Closing Remarks</head><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 <ref type="bibr" target="#b3">[4]</ref>. Our system generates illustrations for texts and the results obtained show how different types of text lead to different illustrations, even being based on the same story. Figure <ref type="figure" target="#fig_5">7</ref> illustrates this by comparing the "Cinderella" form the Gutenberg Project 6 with the "Cinderella arrives by car" from the Fairy Tales for the Disillusioned <ref type="bibr" target="#b8">[9]</ref>. This is particularly interesting when one considers the existence of parodic retellings of classic tales <ref type="bibr" target="#b9">[10]</ref>, which can be used to generate illustrations and assess the impact of different 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 <ref type="bibr" target="#b10">[11]</ref>. 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></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head>Figure 1 :</head><label>1</label><figDesc>Figure 1: Color-emotion association based on<ref type="bibr" target="#b4">[5]</ref> </figDesc><graphic coords="2,89.29,84.19,416.68,80.16" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_1"><head>Figure 2 :</head><label>2</label><figDesc>Figure 2: First Approach to a set of colours to be assigned to characters</figDesc><graphic coords="3,89.29,84.19,416.70,111.96" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_2"><head>Figure 3 :</head><label>3</label><figDesc>Figure 3: Second Approach to a set of colours to be assigned to characters</figDesc><graphic coords="3,89.29,235.56,416.69,83.00" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_3"><head>Figure 4 :</head><label>4</label><figDesc>Figure 4: Shapes assigned to emotions</figDesc><graphic coords="4,89.29,84.19,416.69,146.39" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_4"><head>Figure 5 :Figure 6 :</head><label>56</label><figDesc>Figure 5: Exploration with filters applied to common nouns</figDesc><graphic coords="5,89.29,84.19,416.69,112.57" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_5"><head>Figure 7 :</head><label>7</label><figDesc>Figure 7: Generation based on "Cinderella" (left) and on "Cinderella arrives by car" (right)</figDesc><graphic coords="6,120.54,84.19,354.19,421.32" type="bitmap" /></figure>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_0">http://www.maeght.com/news/oct09_lavater/english-index.html</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_1">https://rednoise.org/rita/</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_2">https://pixabay.com/</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="6" xml:id="foot_3">https://www.gutenberg.org</note>
		</body>
		<back>

			<div type="acknowledgement">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Acknowledgments</head><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></div>
			</div>

			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<analytic>
		<title level="a" type="main">Graphic narratives: Generative book covers</title>
		<author>
			<persName><forename type="first">L</forename><surname>Duro</surname></persName>
		</author>
		<author>
			<persName><forename type="first">P</forename><surname>Machado</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Rebelo</surname></persName>
		</author>
		<idno type="DOI">10.1145/2342896.2342925</idno>
	</analytic>
	<monogr>
		<title level="m">ACM SIGGRAPH 2012 Posters, SIGGRAPH &apos;12</title>
				<meeting><address><addrLine>New York, NY, USA</addrLine></address></meeting>
		<imprint>
			<publisher>Association for Computing Machinery</publisher>
			<date type="published" when="2012">2012</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<analytic>
		<title level="a" type="main">Computationally generating images for music albums</title>
		<author>
			<persName><forename type="first">M</forename><surname>Cruz</surname></persName>
		</author>
		<author>
			<persName><forename type="first">P</forename><surname>Hardman</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><forename type="middle">M</forename><surname>Cunha</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proceedings of the Ninth International Conference on Computational Creativity</title>
				<meeting>the Ninth International Conference on Computational Creativity<address><addrLine>Salamanca, Spain</addrLine></address></meeting>
		<imprint>
			<date type="published" when="2018">June 25-29, 2018. 2018</date>
			<biblScope unit="page">309</biblScope>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b2">
	<monogr>
		<title level="m" type="main">Os olhos também ouvem: Sistema de geração de imagens de acordo com texto e som para álbuns de música</title>
		<author>
			<persName><forename type="first">M</forename><surname>Cruz</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2019">2019</date>
		</imprint>
		<respStmt>
			<orgName>University of Coimbra</orgName>
		</respStmt>
	</monogr>
	<note type="report_type">Master&apos;s thesis</note>
</biblStruct>

<biblStruct xml:id="b3">
	<monogr>
		<author>
			<persName><forename type="first">C</forename><forename type="middle">G</forename><surname>Lopes</surname></persName>
		</author>
		<title level="m">Ilustração Generativa com Base em Texto</title>
				<imprint>
			<date type="published" when="2019">2019</date>
		</imprint>
		<respStmt>
			<orgName>Universidade de Coimbra</orgName>
		</respStmt>
	</monogr>
	<note type="report_type">Master&apos;s thesis</note>
</biblStruct>

<biblStruct xml:id="b4">
	<analytic>
		<title level="a" type="main">Colourful language: Measuring word-colour associations</title>
		<author>
			<persName><forename type="first">S</forename><surname>Mohammad</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proceedings of the 2nd Workshop on Cognitive Modeling and Computational Linguistics</title>
				<meeting>the 2nd Workshop on Cognitive Modeling and Computational Linguistics</meeting>
		<imprint>
			<date type="published" when="2011">2011</date>
			<biblScope unit="page" from="97" to="106" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b5">
	<monogr>
		<title/>
		<author>
			<persName><forename type="first">W</forename><surname>Lavater</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Le</forename><surname>Petit Chaperon Rouge</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Maeght</surname></persName>
		</author>
		<imprint>
			<date type="published" when="1965">1965</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b6">
	<analytic>
		<title level="a" type="main">Generation of concept-representative symbols</title>
		<author>
			<persName><forename type="first">J</forename><forename type="middle">M</forename><surname>Cunha</surname></persName>
		</author>
		<author>
			<persName><forename type="first">P</forename><surname>Martins</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Cardoso</surname></persName>
		</author>
		<author>
			<persName><forename type="first">P</forename><surname>Machado</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Workshop Proceedings of the 23rd International Conference on Case-Based Reasoning (ICCBR-WS 2015)</title>
				<imprint>
			<publisher>CEUR</publisher>
			<date type="published" when="2015">2015</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b7">
	<monogr>
		<title level="m" type="main">The emotions</title>
		<author>
			<persName><forename type="first">R</forename><surname>Plutchik</surname></persName>
		</author>
		<imprint>
			<date type="published" when="1991">1991</date>
			<publisher>University Press of America</publisher>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b8">
	<monogr>
		<title level="m" type="main">Fairy Tales for the Disillusioned: Enchanted Stories from the French Decadent Tradition</title>
		<author>
			<persName><forename type="first">G</forename><surname>Schultz</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><surname>Seifert</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2019">2019</date>
			<publisher>Princeton University Press</publisher>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b9">
	<analytic>
		<title level="a" type="main">Folk materials, re-visions, and narrative images: The intertextual games they play</title>
		<author>
			<persName><forename type="first">C</forename><surname>Malarte-Feldman</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Children&apos;s Literature Association Quarterly</title>
		<imprint>
			<biblScope unit="volume">28</biblScope>
			<biblScope unit="page" from="210" to="218" />
			<date type="published" when="2003">2003</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b10">
	<monogr>
		<title level="m" type="main">Substantial Changes in Graphic Design with the Emergence of Generative Design Processes</title>
		<author>
			<persName><forename type="first">A</forename><forename type="middle">V</forename><surname>Schimpf</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2019">2019</date>
		</imprint>
		<respStmt>
			<orgName>Universidad Internacional de La Rioja</orgName>
		</respStmt>
	</monogr>
	<note type="report_type">Master&apos;s thesis</note>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
