Subversion Repositories wimsdev

Rev

Rev 4509 | 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
2
 !goto proc
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\
10
nl,boy girl,5
20 reyssat 11
!exit
12
 
8204 bpr 13
!! third parm to get many firstname distinct in one time (FG)
4054 guerimand 14
!! Maj french fname by Jérémy Lebas
15
 
20 reyssat 16
:proc
8204 bpr 17
!!should be calculate from the list ?
18
slib_bound=35
20 reyssat 19
 
4054 guerimand 20
slib_test=!itemcnt $wims_read_parm
21
!if $slib_test=3
22
 !distribute item $wims_read_parm into slib_lang,slib_genre,slib_nb
8204 bpr 23
 slib_genre=!singlespace $slib_genre
24
 !bound slib_genre within boy, girl, boy girl, girl boy default boy
4054 guerimand 25
 slib_langs=!words2items $wims_site_languages
26
 !bound slib_lang within $slib_langs default en
27
!else
28
!! old configuration parameters needed to be saved until modules use this slib has been change
29
 slib_opt=!items2words $wims_read_parm
30
 slib_genre=$empty
31
 !if boy iswordof $slib_opt
32
  slib_genre=boy
20 reyssat 33
 !endif
4054 guerimand 34
 !if girl iswordof $slib_opt
35
  slib_genre=$slib_genre girl
36
 !endif
37
 slib_langs=!words2items $wims_site_languages
38
 slib_lang=$module_language
39
 !for slib_l in $slib_langs
40
  !if $slib_l iswordof $slib_opt
41
   slib_lang=$slib_l
42
  !endif
43
 !next slib_l
44
!endif
8204 bpr 45
!bound slib_nb between 1 and $slib_bound default 1
4508 bpr 46
!default slib_genre=!randitem boy,girl
4507 bpr 47
!if $lang iswordof fr nl
48
 !default slib_lang=$lang
49
!endif
20 reyssat 50
!if $slib_lang=fr
4054 guerimand 51
 slib_boy=Alain, André, Bernard, Bertrand, \
20 reyssat 52
  Carlos, Charles, Christophe, Claude, \
53
  Didier, Fabrice, François, Frédéric, Georges, \
54
  Gérard, Guillaume, Jacques, Jean, Joseph, \
55
  Laurent, Louis, Luc, Marc, \
56
  Matthieu, Michel, Olivier, Patrick, Paul, Philippe, Pierre, \
4054 guerimand 57
  Richard, Robert, Thierry, Xavier, \
58
 Stephan, Jordy, Alexandre, Emrullah, Esteban, Florent, Sacha, Antonin, Nicolas, Dorian, Ryan, Camille, \
59
 Logan, Anthony, Mel, Louis, Jordan, Jean-Christophe, Smaïn, Tristan, Louis, Thomas, Kohai, Thibault, Mouhammad, \
60
 Rudy, Romuald, Clément, Erwan, Hugo, Olivier, Thibault, Nicolas, Medhi, Valentin, Alan, Baptiste, Ambroise, Alexandre, \
61
 Dorian, Axel, Logan, Noam, Adem, Alric, Alexandre, Anthony, Quentin, Alexandre, Laurent, Pierre, Jayson, Remy, Aymen, Cyril, \
62
 Maxime, Magomed, Yannis, Louis, Sébastien, Thibault, Steven, Thomas, Mike, Nathan, Alexis, Quentin, Sébastien, Thomas,\
8204 bpr 63
 Hind, Pablo, Alexy, Rim, Enzo, Pierre, Guillaume, Benjamin, Jérémy, Jimmy, Thomas, Prasanth, Daniel, Théo, Ruben, Matthieu, \
4054 guerimand 64
 Paul, Francis, Florian, Clément, Théo, Nour-El-Houda, Sofiane, Rayane, Kevin, Téo, Yoan, Damien, Kevin, Christian, Kain, Hugo, \
8204 bpr 65
 Anthony, Deniz, Ludovic, Olivier, Romain, Cedric, Thomas, William, Levi, Lorenzo, Jonathan, Joachim, Gaël, Bilal, Jérémy, Raphaël, Florent,\
4054 guerimand 66
 Marvin, Wajdi, Florian, Matteo, Nassim, Hamza, Fabian, Idris, Allan, Marwanne, Abdoulla, Thomas, Lilian, Faycel, Sébastien, Johan, Kevin, Benjamin, Thomas, Akromat, Diye, Majdi, Medhi,\
67
 Christopher, Thomas, Walid
68
 
69
 slib_girl=Alice, Anne, Bernadette, \
20 reyssat 70
  Caroline, Catherine, Céline, Claire, Cloé, Denise, \
71
  Emmanuelle, Frédérique, Jeanne, Jeannine, Joséphine, Julie,\
72
  Laeticia, Laure, Lucie, Marie, Marion, Mireille, \
4054 guerimand 73
  Patricia, Rose, Sophie, Sylvie, \
4509 bpr 74
 Lorna, Leslie, Maëlys, Marie, Malia, Pauline, Lamia, Alexia, Kenssy-Maïlys, Emma, Pauline, Eléonore, Elise, Séréna, Maé, \
4054 guerimand 75
 Manon, Aude, Amélie, Myrina, Eva, Chiara, Caroline, Caroline, Ambre, Oriane, Marie-Anaïs, Clémence, Manon, Floriane, Camille, \
76
 Willow, Sarah, Alicia, Romane, Lucie, Marine, Dorine, Maeva, Manon, Chloe, Laetitia, Lea, Soumeya, Sarah, Manuela, Olivia, Yael,\
77
 Charlotte, Marine, Sandy, Chloé, Doris, Erika, Marion, Lola, Chavely, Myriam, Elisa, Manuela, Isabelle, Fanny, Amandine, Elisa, Maia, \
78
 Jade, Christel, Barbara, Jade, Maissa, Eva, Julie, Elsa, Melissa, Andrea, Carla, Mariama, Esther, Elise, Loane, Laurie, Anna, Manoa, \
79
 Elena, Léonie, Célia, Chloé, Romane, Salomé, Pauline, Setareh, Aurélia, Marine, Cherrine, Vanessa, Ornella, Charlotte, Christelle, \
8204 bpr 80
 Victoria, Noémie, Laurie, Juliette, Marion, Lena, Laura, Emilie, Anne-Laure, Claire, Imen, Nina, Andrea, Clémentine, Laëtitia, Lory, \
4054 guerimand 81
 Ophélie, Cathy, Paula, Margot, Célia, Estelle, Jade, Melody, Amira, Inès, Inès, Sarah, Kaouthar, Nausica, Jacqueline,Lina, Maeva, Lizie, \
82
 Marissa, Noemie, Alessia, Marie, Luana, Rhita, Marion, Melissa, Kelly, Erika, Océane, Yasmina, Clélia, \
4509 bpr 83
 Noellia, Allison, Amel, Alicia, Maeva, Camille, Alexia, Inès, Christina, Iris, Cynthia, Inès
20 reyssat 84
!endif
85
 
86
!if $slib_lang=nl
87
 
8204 bpr 88
 slib_boy=Jan,Piet,Klaas,Gerard,Jonny,\
89
 Sjonnie,Wim,Henk,Willem,Willem-Jan,\
90
 Koos,Paul,Robin,Bart,Dani,\
91
 Edgar,Jacob,Willem,Mohammed,Ali,\
92
 Joost,Johan,Karel,Martin,Hans,\
93
 Frederik,Bennie,Benno,Freddy,Jelmer,\
94
 Rinus,Marinus,Roderick,Simon,Anton,\
95
 Ton,Tom,Nico
20 reyssat 96
 
8204 bpr 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
107
 
8204 bpr 108
!default slib_boy=Andrew, Anthony, Bill, Brian, Charles,\
109
 Charlie, Christopher,Daniel, David,  Donald,\
110
 Edward, Edwin, George, Harry, Henry,\
111
 Jack, Jacob, James, Jason, Jeff,\
112
 John, Joseph, Kenneth, Kevin, Mark,\
113
 Michael, Oliver, Oscar, Paul, Peter,\
114
 Richard, Robert, Ronald, Steven, Thomas, William
20 reyssat 115
 
116
 
8204 bpr 117
!default slib_girl=Alice, Amelia, Anna, Ava, Barbara,\
118
 Betty, Carol, Catherine, Deborah, Diana,\
119
 Donna, Dorothy, Elisabeth, Emily, Helen,\
120
 Isla, Isabella, Jane, Jennifer, Jessica,\
121
 Karen, Kimberly, Laura, Linda,  Lisa,\
122
 Margaret, Marguerite, Maria, Marilyn, Mary,\
123
 Mia, Michelle, Nancy, Patricia, Olivia,\
124
 Rose, Ruth, Sarah, Sandra, Sharon,\
125
 Sophie, Susan, Victoria, Virginia
126
 
127
 
4054 guerimand 128
slib_out=$empty
129
!if girl iswordof $slib_genre
130
 slib_out=!append item $slib_girl to $slib_out
20 reyssat 131
!endif
4054 guerimand 132
!if boy iswordof $slib_genre
133
 slib_out=!append item $slib_boy to $slib_out
20 reyssat 134
!endif
4054 guerimand 135
slib_out=!listuniq $slib_out
136
slib_out=!shuffle $slib_out
137
slib_out=!item 1 to $slib_nb of $slib_out
8204 bpr 138