From 6401a92ab7f8addebe99324a1612108fde333e44 Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 21 Jan 2017 14:48:25 +0100 Subject: Add book covers --- "src/main/resources/cover/L'Enfant Oc\303\251an.jpg" | Bin 0 -> 32861 bytes src/main/resources/cover/L'Espionne du Roi-Soleil.jpg | Bin 0 -> 42350 bytes ...\303\211trange cas du Dr Jekyll et de M. Hyde.jpg" | Bin 0 -> 25715 bytes .../resources/cover/La Qu\303\252te d'Ewilan.jpg" | Bin 0 -> 46756 bytes "src/main/resources/cover/La S\303\251lection.jpg" | Bin 0 -> 55218 bytes .../cover/La rivi\303\250re \303\240 l'envers.jpg" | Bin 0 -> 40325 bytes src/main/resources/cover/Lady Grace.jpg | Bin 0 -> 108849 bytes src/main/resources/cover/Lou !.jpg | Bin 0 -> 28249 bytes src/main/scala/reading/Books.scala | 18 +++++++++--------- src/main/scala/reading/models/Book.scala | 8 +++++++- 10 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 "src/main/resources/cover/L'Enfant Oc\303\251an.jpg" create mode 100644 src/main/resources/cover/L'Espionne du Roi-Soleil.jpg create mode 100644 "src/main/resources/cover/L'\303\211trange cas du Dr Jekyll et de M. Hyde.jpg" create mode 100644 "src/main/resources/cover/La Qu\303\252te d'Ewilan.jpg" create mode 100644 "src/main/resources/cover/La S\303\251lection.jpg" create mode 100644 "src/main/resources/cover/La rivi\303\250re \303\240 l'envers.jpg" create mode 100644 src/main/resources/cover/Lady Grace.jpg create mode 100644 src/main/resources/cover/Lou !.jpg (limited to 'src') diff --git "a/src/main/resources/cover/L'Enfant Oc\303\251an.jpg" "b/src/main/resources/cover/L'Enfant Oc\303\251an.jpg" new file mode 100644 index 0000000..9564287 Binary files /dev/null and "b/src/main/resources/cover/L'Enfant Oc\303\251an.jpg" 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 Binary files /dev/null and b/src/main/resources/cover/L'Espionne du Roi-Soleil.jpg differ diff --git "a/src/main/resources/cover/L'\303\211trange cas du Dr Jekyll et de M. Hyde.jpg" "b/src/main/resources/cover/L'\303\211trange cas du Dr Jekyll et de M. Hyde.jpg" new file mode 100644 index 0000000..5ff1cba Binary files /dev/null and "b/src/main/resources/cover/L'\303\211trange cas du Dr Jekyll et de M. Hyde.jpg" differ diff --git "a/src/main/resources/cover/La Qu\303\252te d'Ewilan.jpg" "b/src/main/resources/cover/La Qu\303\252te d'Ewilan.jpg" new file mode 100644 index 0000000..6e9d25d Binary files /dev/null and "b/src/main/resources/cover/La Qu\303\252te d'Ewilan.jpg" differ diff --git "a/src/main/resources/cover/La S\303\251lection.jpg" "b/src/main/resources/cover/La S\303\251lection.jpg" new file mode 100644 index 0000000..4c8cc67 Binary files /dev/null and "b/src/main/resources/cover/La S\303\251lection.jpg" differ diff --git "a/src/main/resources/cover/La rivi\303\250re \303\240 l'envers.jpg" "b/src/main/resources/cover/La rivi\303\250re \303\240 l'envers.jpg" new file mode 100644 index 0000000..1ac0041 Binary files /dev/null and "b/src/main/resources/cover/La rivi\303\250re \303\240 l'envers.jpg" 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 Binary files /dev/null and b/src/main/resources/cover/Lady Grace.jpg differ diff --git a/src/main/resources/cover/Lou !.jpg b/src/main/resources/cover/Lou !.jpg new file mode 100644 index 0000000..e681d20 Binary files /dev/null and b/src/main/resources/cover/Lou !.jpg 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)) } } -- cgit v1.2.3