Subversion Repositories wimsdev

Rev

Rev 11575 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
!if $wims_read_parm!=slib_header
14592 bpr 2
  !goto proc
20 reyssat 3
!endif
4158 bpr 4
 
4349 bpr 5
slib_author=Gang, XIAO
4158 bpr 6
 
4507 bpr 7
slib_example=fr\
8
\
4054 guerimand 9
en,girl,3\
11575 czzmrn 10
nl,boy girl,5\
11
it,boy,4
14592 bpr 12
 
20 reyssat 13
!exit
14
 
8204 bpr 15
!! third parm to get many firstname distinct in one time (FG)
4054 guerimand 16
!! Maj french fname by Jérémy Lebas
17
 
20 reyssat 18
:proc
8204 bpr 19
!!should be calculate from the list ?
20
slib_bound=35
20 reyssat 21
 
4054 guerimand 22
slib_test=!itemcnt $wims_read_parm
23
!if $slib_test=3
14592 bpr 24
  !distribute item $wims_read_parm into slib_lang,slib_genre,slib_nb
25
  slib_genre=!singlespace $slib_genre
26
  !bound slib_genre within boy, girl, boy girl, girl boy default boy
27
  slib_langs=!words2items $wims_site_languages
28
  !bound slib_lang within $slib_langs default en
4054 guerimand 29
!else
14592 bpr 30
  !! old configuration parameters needed to be saved until modules use this slib has been change
31
  slib_opt=!items2words $wims_read_parm
32
  slib_genre=$empty
33
  !if boy iswordof $slib_opt
34
    slib_genre=boy
4054 guerimand 35
  !endif
14592 bpr 36
  !if girl iswordof $slib_opt
37
    slib_genre=$slib_genre girl
38
  !endif
39
  slib_langs=!words2items $wims_site_languages
40
  slib_lang=$module_language
41
  !for slib_l in $slib_langs
42
    !if $slib_l iswordof $slib_opt
43
      slib_lang=$slib_l
44
    !endif
45
  !next slib_l
4054 guerimand 46
!endif
8204 bpr 47
!bound slib_nb between 1 and $slib_bound default 1
4508 bpr 48
!default slib_genre=!randitem boy,girl
4507 bpr 49
!if $lang iswordof fr nl
14592 bpr 50
  !default slib_lang=$lang
4507 bpr 51
!endif
20 reyssat 52
!if $slib_lang=fr
14592 bpr 53
  slib_boy=Alain, André, Bernard, Bertrand, \
54
    Carlos, Charles, Christophe, Claude, \
55
    Didier, Fabrice, François, Frédéric, Georges, \
56
    Gérard, Guillaume, Jacques, Jean, Joseph, \
57
    Laurent, Louis, Luc, Marc, \
58
    Matthieu, Michel, Olivier, Patrick, Paul, Philippe, Pierre, \
59
    Richard, Robert, Thierry, Xavier, \
60
    Stephan, Jordy, Alexandre, Emrullah, Esteban, Florent, Sacha, Antonin, Nicolas, Dorian, Ryan, Camille, \
61
    Logan, Anthony, Mel, Louis, Jordan, Jean-Christophe, Smaïn, Tristan, Louis, Thomas, Kohai, Thibault, Mouhammad, \
62
    Rudy, Romuald, Clément, Erwan, Hugo, Olivier, Thibault, Nicolas, Medhi, Valentin, Alan, Baptiste, Ambroise, Alexandre, \
63
    Dorian, Axel, Logan, Noam, Adem, Alric, Alexandre, Anthony, Quentin, Alexandre, Laurent, Pierre, Jayson, Remy, Aymen, Cyril, \
64
    Maxime, Magomed, Yannis, Louis, Sébastien, Thibault, Steven, Thomas, Mike, Nathan, Alexis, Quentin, Sébastien, Thomas,\
65
    Hind, Pablo, Alexy, Rim, Enzo, Pierre, Guillaume, Benjamin, Jérémy, Jimmy, Thomas, Prasanth, Daniel, Théo, Ruben, Matthieu, \
66
    Paul, Francis, Florian, Clément, Théo, Nour-El-Houda, Sofiane, Rayane, Kevin, Téo, Yoan, Damien, Kevin, Christian, Kain, Hugo, \
67
    Anthony, Deniz, Ludovic, Olivier, Romain, Cedric, Thomas, William, Levi, Lorenzo, Jonathan, Joachim, Gaël, Bilal, Jérémy, Raphaël, Florent,\
68
    Marvin, Wajdi, Florian, Matteo, Nassim, Hamza, Fabian, Idris, Allan, Marwanne, Abdoulla, Thomas, Lilian, Faycel, Sébastien, Johan, Kevin, Benjamin, Thomas, Akromat, Diye, Majdi, Medhi,\
69
    Christopher, Thomas, Walid
4054 guerimand 70
 
14592 bpr 71
  slib_girl=Alice, Anne, Bernadette, \
72
    Caroline, Catherine, Céline, Claire, Cloé, Denise, \
73
    Emmanuelle, Frédérique, Jeanne, Jeannine, Joséphine, Julie,\
74
    Laeticia, Laure, Lucie, Marie, Marion, Mireille, \
75
    Patricia, Rose, Sophie, Sylvie, \
76
    Lorna, Leslie, Maëlys, Marie, Malia, Pauline, Lamia, Alexia, Kenssy-Maïlys, Emma, Pauline, Eléonore, Elise, Séréna, Maé, \
77
    Manon, Aude, Amélie, Myrina, Eva, Chiara, Caroline, Caroline, Ambre, Oriane, Marie-Anaïs, Clémence, Manon, Floriane, Camille, \
78
    Willow, Sarah, Alicia, Romane, Lucie, Marine, Dorine, Maeva, Manon, Chloe, Laetitia, Lea, Soumeya, Sarah, Manuela, Olivia, Yael,\
79
    Charlotte, Marine, Sandy, Chloé, Doris, Erika, Marion, Lola, Chavely, Myriam, Elisa, Manuela, Isabelle, Fanny, Amandine, Elisa, Maia, \
80
    Jade, Christel, Barbara, Jade, Maissa, Eva, Julie, Elsa, Melissa, Andrea, Carla, Mariama, Esther, Elise, Loane, Laurie, Anna, Manoa, \
81
    Elena, Léonie, Célia, Chloé, Romane, Salomé, Pauline, Setareh, Aurélia, Marine, Cherrine, Vanessa, Ornella, Charlotte, Christelle, \
82
    Victoria, Noémie, Laurie, Juliette, Marion, Lena, Laura, Emilie, Anne-Laure, Claire, Imen, Nina, Andrea, Clémentine, Laëtitia, Lory, \
83
    Ophélie, Cathy, Paula, Margot, Célia, Estelle, Jade, Melody, Amira, Inès, Inès, Sarah, Kaouthar, Nausica, Jacqueline,Lina, Maeva, Lizie, \
84
    Marissa, Noemie, Alessia, Marie, Luana, Rhita, Marion, Melissa, Kelly, Erika, Océane, Yasmina, Clélia, \
85
    Noellia, Allison, Amel, Alicia, Maeva, Camille, Alexia, Inès, Christina, Iris, Cynthia, Inès
20 reyssat 86
!endif
87
 
88
!if $slib_lang=nl
14592 bpr 89
  slib_boy=Jan,Piet,Klaas,Gerard,Jonny,\
90
    Sjonnie,Wim,Henk,Willem,Willem-Jan,\
91
    Koos,Paul,Robin,Bart,Dani,\
92
    Edgar,Jacob,Willem,Mohammed,Ali,\
93
    Joost,Johan,Karel,Martin,Hans,\
94
    Frederik,Bennie,Benno,Freddy,Jelmer,\
95
    Rinus,Marinus,Roderick,Simon,Anton,\
96
    Ton,Tom,Nico
97
  slib_girl=Marlies,Marloes,Anna,Hanna,Johanna,\
98
    Aaltje,Mariska,Roelie,Joke,Ellie,\
99
    Elli,Evelien,Vera,Kristel,Christel,\
100
    Chantal, Loeki,Aafke,Marijke,Petra,\
101
    Olga,Sien,Jo,Karlijn,Katinka,\
102
    Bonnie,Carolien, Anita,Hedwig,Karen,\
103
    Karin,Koosje,Rosa,Lidwina,Astrid,\
104
    Lenie,Lena,Maria,Eva,Marijke,\
105
    Anneke,Alie
20 reyssat 106
!endif
11575 czzmrn 107
!if $slib_lang=it
14592 bpr 108
  slib_boy=Achille, Adriano, Alberto, Alberto, Aldo, Alessandro, Alessio,\
109
    Alfonso, Amedeo, Andrea, Angelo, Antonio, Attilio, Beniamino, Biagio,\
110
    Boris, Bruno, Carlo, Cesare, Corrado, Cosimo, Daniele, Dario, Davide,\
111
    Edoardo, Elio, Emilio, Enrico, Ercole, Ermes, Ettore, Fabio, Fabrizio,\
112
    Federico, Felice, Filippo, Flavio, Fortunato, Francesco, Franco,\
113
    Fulvio, Furio, Gabriele, Gaetano, Gastone, Gennaro, Giorgio, Giovanni,\
114
    Giuliano, Guglielmo, Guido, Ignazio, Isacco, Italo, Leandro, Leonardo,\
115
    Livio, Lorenzo, Luca, Luca, Luigi, Marcello, Marco, Marino, Mario,\
116
    Martino, Massimo, Matteo, Mauro, Michele, Narciso, Nicola, Norberto,\
117
    Orazio, Oreste, Orlando, Oscar, Osvaldo, Otello, Ottavio, Paolo,\
118
    Paride, Pasquale, Pietro, Raffaele, Raimondo, Renato, Riccardo,\
119
    Roberto, Rocco, Rodolfo, Romano, Rosario, Ruggero, Salvatore, Samuele,\
120
    Sebastiano, Sergio, Silvano, Simone, Sisto, Stefano, Telemaco, Teseo,\
121
    Tiberio, Tiziano, Tommaso, Tullio, Ugo, Ulderico, Ulisse, Umberto,\
122
    Urbano, Valentino, Valerio, Vincenzo, Virginio, Vittorio, Walter,\
123
    Zaccaria, Zeno
124
  slib_girl=Ada, Agnese, Alessandra, Alice, Amelia, Angelica, Antonia, Antonietta,\
125
    Arianna, Barbara, Beatrice, Bianca, Carla, Caterina, Cecilia, Chiara,\
126
    Clara, Cristina, Diana, Dora, Elena, Eleonora, Eliana, Elisabetta,\
127
    Eloisa, Elvira, Emilia, Enrica, Ester, Eva, Fabrizia, Federica,\
128
    Flavia, Flora, Franca, Francesca, Fulvia, Gabriella, Gaia, Giada,\
129
    Ginevra, Gioia, Giovanna, Giuliana, Grazia, Ida, Ilaria, Ines, Iole,\
130
    Irene, Irma, Isabella, Isotta, Laura, Lavinia, Leila, Letizia, Licia,\
131
    Lidia, Luana, Luisa, Maddalena, Mara, Marcella, Margherita, Maria,\
132
    Marianna, Marina, Marisa, Marta, Marzia, Matilde, Maura, Milena,\
133
    Moira, Monica, Nadia, Natalia, Ofelia, Olga, Olimpia, Olivia, Ornella,\
134
    Orsola, Ortensia, Pamela, Paola, Patrizia, Rachele, Raffaella,\
135
    Rebecca, Regina, Renata, Rita, Roberta, Romina, Rosa, Rossana,\
136
    Sabrina, Sara, Serena, Silvana, Simona, Sofia, Stefania, Stella,\
137
    Susanna, Tamara, Tania, Tatiana, Tecla, Teresa, Tiziana, Valentina,\
138
    Valeria, Veronica, Viola, Virginia, Vittoria, Viviana
11575 czzmrn 139
!endif
140
 
8204 bpr 141
!default slib_boy=Andrew, Anthony, Bill, Brian, Charles,\
14592 bpr 142
  Charlie, Christopher,Daniel, David,  Donald,\
143
  Edward, Edwin, George, Harry, Henry,\
144
  Jack, Jacob, James, Jason, Jeff,\
145
  John, Joseph, Kenneth, Kevin, Mark,\
146
  Michael, Oliver, Oscar, Paul, Peter,\
147
  Richard, Robert, Ronald, Steven, Thomas, William
20 reyssat 148
 
8204 bpr 149
!default slib_girl=Alice, Amelia, Anna, Ava, Barbara,\
14592 bpr 150
  Betty, Carol, Catherine, Deborah, Diana,\
151
  Donna, Dorothy, Elisabeth, Emily, Helen,\
152
  Isla, Isabella, Jane, Jennifer, Jessica,\
153
  Karen, Kimberly, Laura, Linda,  Lisa,\
154
  Margaret, Marguerite, Maria, Marilyn, Mary,\
155
  Mia, Michelle, Nancy, Patricia, Olivia,\
156
  Rose, Ruth, Sarah, Sandra, Sharon,\
157
  Sophie, Susan, Victoria, Virginia
8204 bpr 158
 
4054 guerimand 159
slib_out=$empty
160
!if girl iswordof $slib_genre
14592 bpr 161
  slib_out=!append item $slib_girl to $slib_out
20 reyssat 162
!endif
4054 guerimand 163
!if boy iswordof $slib_genre
14592 bpr 164
  slib_out=!append item $slib_boy to $slib_out
20 reyssat 165
!endif
4054 guerimand 166
slib_out=!listuniq $slib_out
167
slib_out=!shuffle $slib_out
168
slib_out=!item 1 to $slib_nb of $slib_out