aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris2017-01-21 14:48:25 +0100
committerJoris2017-01-21 16:21:46 +0100
commit6401a92ab7f8addebe99324a1612108fde333e44 (patch)
tree45322f86c35923a84449f18a43f207dbbcf89f55
parent6b7074fde5feb7d1dfe543ffa45f79dd0daa45fe (diff)
downloadreading-6401a92ab7f8addebe99324a1612108fde333e44.tar.gz
reading-6401a92ab7f8addebe99324a1612108fde333e44.tar.bz2
reading-6401a92ab7f8addebe99324a1612108fde333e44.zip
Add book covers
-rw-r--r--src/main/resources/cover/L'Enfant Océan.jpgbin0 -> 32861 bytes
-rw-r--r--src/main/resources/cover/L'Espionne du Roi-Soleil.jpgbin0 -> 42350 bytes
-rw-r--r--src/main/resources/cover/L'Étrange cas du Dr Jekyll et de M. Hyde.jpgbin0 -> 25715 bytes
-rw-r--r--src/main/resources/cover/La Quête d'Ewilan.jpgbin0 -> 46756 bytes
-rw-r--r--src/main/resources/cover/La Sélection.jpgbin0 -> 55218 bytes
-rw-r--r--src/main/resources/cover/La rivière à l'envers.jpgbin0 -> 40325 bytes
-rw-r--r--src/main/resources/cover/Lady Grace.jpgbin0 -> 108849 bytes
-rw-r--r--src/main/resources/cover/Lou !.jpgbin0 -> 28249 bytes
-rw-r--r--src/main/scala/reading/Books.scala18
-rw-r--r--src/main/scala/reading/models/Book.scala8
10 files changed, 16 insertions, 10 deletions
diff --git a/src/main/resources/cover/L'Enfant Océan.jpg b/src/main/resources/cover/L'Enfant Océan.jpg
new file mode 100644
index 0000000..9564287
--- /dev/null
+++ b/src/main/resources/cover/L'Enfant Océan.jpg
Binary files differ
diff --git a/src/main/resources/cover/L'Espionne du Roi-Soleil.jpg b/src/main/resources/cover/L'Espionne du Roi-Soleil.jpg
new file mode 100644
index 0000000..f1455e8
--- /dev/null
+++ b/src/main/resources/cover/L'Espionne du Roi-Soleil.jpg
Binary files differ
diff --git a/src/main/resources/cover/L'Étrange cas du Dr Jekyll et de M. Hyde.jpg b/src/main/resources/cover/L'Étrange cas du Dr Jekyll et de M. Hyde.jpg
new file mode 100644
index 0000000..5ff1cba
--- /dev/null
+++ b/src/main/resources/cover/L'Étrange cas du Dr Jekyll et de M. Hyde.jpg
Binary files differ
diff --git a/src/main/resources/cover/La Quête d'Ewilan.jpg b/src/main/resources/cover/La Quête d'Ewilan.jpg
new file mode 100644
index 0000000..6e9d25d
--- /dev/null
+++ b/src/main/resources/cover/La Quête d'Ewilan.jpg
Binary files differ
diff --git a/src/main/resources/cover/La Sélection.jpg b/src/main/resources/cover/La Sélection.jpg
new file mode 100644
index 0000000..4c8cc67
--- /dev/null
+++ b/src/main/resources/cover/La Sélection.jpg
Binary files differ
diff --git a/src/main/resources/cover/La rivière à l'envers.jpg b/src/main/resources/cover/La rivière à l'envers.jpg
new file mode 100644
index 0000000..1ac0041
--- /dev/null
+++ b/src/main/resources/cover/La rivière à l'envers.jpg
Binary files differ
diff --git a/src/main/resources/cover/Lady Grace.jpg b/src/main/resources/cover/Lady Grace.jpg
new file mode 100644
index 0000000..2b69f58
--- /dev/null
+++ b/src/main/resources/cover/Lady Grace.jpg
Binary files differ
diff --git a/src/main/resources/cover/Lou !.jpg b/src/main/resources/cover/Lou !.jpg
new file mode 100644
index 0000000..e681d20
--- /dev/null
+++ b/src/main/resources/cover/Lou !.jpg
Binary files differ
diff --git a/src/main/scala/reading/Books.scala b/src/main/scala/reading/Books.scala
index 65c893f..42a1c26 100644
--- a/src/main/scala/reading/Books.scala
+++ b/src/main/scala/reading/Books.scala
@@ -148,7 +148,7 @@ object Books {
),
Book(
- title = "L’Enfant Océan",
+ title = "L'Enfant Océan",
author = "J-C MOURLEVAT et Vincent DUTRAIT",
year = "2010",
period = None,
@@ -159,7 +159,7 @@ object Books {
),
Book(
- title = "L’oeil du loup",
+ title = "L'oeil du loup",
author = "Daniel PENNAC",
year = "1984",
period = None,
@@ -284,7 +284,7 @@ object Books {
),
Book(
- title = "L’Espionne du Roi-Soleil",
+ title = "L'Espionne du Roi-Soleil",
author = "Annie PIETRI",
year = "2002",
period = Some(Louis14),
@@ -295,7 +295,7 @@ object Books {
),
Book(
- title = "L’Omelette au sucre",
+ title = "L'Omelette au sucre",
author = "JP ARROU-VIGNOD",
year = "1999",
period = Some(Contemporain),
@@ -440,7 +440,7 @@ object Books {
),
Book(
- title = "La Quête d’Ewilan",
+ title = "La Quête d'Ewilan",
author = "Pierre BOTTERO",
year = "2005-2016",
parts = 4,
@@ -452,7 +452,7 @@ object Books {
),
Book(
- title = "Les Mondes d’Ewilan",
+ title = "Les Mondes d'Ewilan",
author = "Pierre BOTTERO et Jean-Louis THOUARD",
year = "2005-2006",
parts = 3,
@@ -611,7 +611,7 @@ object Books {
),
Book(
- title = "La Rivière à l’envers",
+ title = "La rivière à l'envers",
author = "J-C MOURLEVAT",
year = "2000-2002",
parts = 2,
@@ -782,7 +782,7 @@ object Books {
),
Book(
- title = "L’Etrange cas du Dr JEKYLL et M. HYDE",
+ title = "L'Étrange cas du Dr Jekyll et de M. Hyde",
author = "R.L STEVENSON",
year = "1886",
period = None,
@@ -837,7 +837,7 @@ object Books {
),
Book(
- title = "L’Ordre Terne",
+ title = "L'Ordre Terne",
author = "I.M NANCY",
year = "2015-2016",
parts = 2,
diff --git a/src/main/scala/reading/models/Book.scala b/src/main/scala/reading/models/Book.scala
index 7930a63..836fa19 100644
--- a/src/main/scala/reading/models/Book.scala
+++ b/src/main/scala/reading/models/Book.scala
@@ -13,7 +13,13 @@ case class Book(
) extends Ordered[Book] {
def compare(that: Book) = {
def formatTitle(title: String) =
- title.toLowerCase.replaceAll("^les ", "").replaceAll("^le ", "")
+ title
+ .toLowerCase
+ .replaceAll("^les ", "")
+ .replaceAll("^le ", "")
+ .replaceAll("^l'", "")
+ .replaceAll("^é", "e")
+ .replaceAll("^è", "e")
formatTitle(this.title).compare(formatTitle(that.title))
}
}