Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

""" 

@file 

@brief shortcut to data 

""" 

import os 

 

 

def load_prenoms_w(): 

""" 

returns a list of first names, 

taken from `Nominis <http://nominis.cef.fr/contenus/prenom/alphabetique.html>`_. 

""" 

folder = os.path.abspath(os.path.dirname(__file__)) 

name = os.path.join(folder, "prenoms_w.txt") 

with open(name, "r", encoding="utf-8") as f: 

names = f.readlines() 

names = [_.strip(" \n\r\t") for _ in names] 

return [_ for _ in names if _]