diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/resources/cover/L'Enfant Océan.jpg | bin | 0 -> 32861 bytes | |||
-rw-r--r-- | src/main/resources/cover/L'Espionne du Roi-Soleil.jpg | bin | 0 -> 42350 bytes | |||
-rw-r--r-- | src/main/resources/cover/L'Étrange cas du Dr Jekyll et de M. Hyde.jpg | bin | 0 -> 25715 bytes | |||
-rw-r--r-- | src/main/resources/cover/La Quête d'Ewilan.jpg | bin | 0 -> 46756 bytes | |||
-rw-r--r-- | src/main/resources/cover/La Sélection.jpg | bin | 0 -> 55218 bytes | |||
-rw-r--r-- | src/main/resources/cover/La rivière à l'envers.jpg | bin | 0 -> 40325 bytes | |||
-rw-r--r-- | src/main/resources/cover/Lady Grace.jpg | bin | 0 -> 108849 bytes | |||
-rw-r--r-- | src/main/resources/cover/Lou !.jpg | bin | 0 -> 28249 bytes | |||
-rw-r--r-- | src/main/scala/reading/Books.scala | 18 | ||||
-rw-r--r-- | src/main/scala/reading/models/Book.scala | 8 |
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 Binary files differnew file mode 100644 index 0000000..9564287 --- /dev/null +++ b/src/main/resources/cover/L'Enfant Océan.jpg diff --git a/src/main/resources/cover/L'Espionne du Roi-Soleil.jpg b/src/main/resources/cover/L'Espionne du Roi-Soleil.jpg Binary files differnew file mode 100644 index 0000000..f1455e8 --- /dev/null +++ b/src/main/resources/cover/L'Espionne du Roi-Soleil.jpg 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 Binary files differnew file mode 100644 index 0000000..5ff1cba --- /dev/null +++ b/src/main/resources/cover/L'Étrange cas du Dr Jekyll et de M. Hyde.jpg diff --git a/src/main/resources/cover/La Quête d'Ewilan.jpg b/src/main/resources/cover/La Quête d'Ewilan.jpg Binary files differnew file mode 100644 index 0000000..6e9d25d --- /dev/null +++ b/src/main/resources/cover/La Quête d'Ewilan.jpg diff --git a/src/main/resources/cover/La Sélection.jpg b/src/main/resources/cover/La Sélection.jpg Binary files differnew file mode 100644 index 0000000..4c8cc67 --- /dev/null +++ b/src/main/resources/cover/La Sélection.jpg diff --git a/src/main/resources/cover/La rivière à l'envers.jpg b/src/main/resources/cover/La rivière à l'envers.jpg Binary files differnew file mode 100644 index 0000000..1ac0041 --- /dev/null +++ b/src/main/resources/cover/La rivière à l'envers.jpg diff --git a/src/main/resources/cover/Lady Grace.jpg b/src/main/resources/cover/Lady Grace.jpg Binary files differnew file mode 100644 index 0000000..2b69f58 --- /dev/null +++ b/src/main/resources/cover/Lady Grace.jpg diff --git a/src/main/resources/cover/Lou !.jpg b/src/main/resources/cover/Lou !.jpg Binary files differnew file mode 100644 index 0000000..e681d20 --- /dev/null +++ b/src/main/resources/cover/Lou !.jpg 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)) } } |