From f8a841f90da7badddc76824c548ed9a9af730924 Mon Sep 17 00:00:00 2001 From: profitroll Date: Thu, 27 Apr 2023 11:17:54 +0200 Subject: [PATCH] Changed example data --- .gitignore | 2 + config_example.json | 5 + configs/example.json | 37 ++ data/example.json | 1172 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 1216 insertions(+) create mode 100644 config_example.json create mode 100644 configs/example.json create mode 100644 data/example.json diff --git a/.gitignore b/.gitignore index f85743e..069191a 100644 --- a/.gitignore +++ b/.gitignore @@ -153,6 +153,8 @@ cython_debug/ #.idea/ # Custom +config.json + data/* !data/example.json diff --git a/config_example.json b/config_example.json new file mode 100644 index 0000000..c346f5b --- /dev/null +++ b/config_example.json @@ -0,0 +1,5 @@ +{ + "languages": [ + "example" + ] +} \ No newline at end of file diff --git a/configs/example.json b/configs/example.json new file mode 100644 index 0000000..119b018 --- /dev/null +++ b/configs/example.json @@ -0,0 +1,37 @@ +{ + "locale": "en_US", + "header": { + "formats": { + "date": "%#d. %B %Y", + "address": "{number} {street}, {city}, {zip}" + }, + "placeholders": { + "birth_date_place": "{date} in {city} ({country})" + } + }, + "jobs": { + "formats": { + "default": "%B %Y" + }, + "placeholders": { + "single": "{start}", + "from_to": "{start} til {end}", + "ongoing": "{start} til now" + } + }, + "education": { + "formats": { + "default": "%Y" + }, + "placeholders": { + "single": "{start}", + "from_to": "{start} til {end}", + "ongoing": "{start} til now" + } + }, + "footer": { + "placeholders": { + "signature": "{date}" + } + } +} \ No newline at end of file diff --git a/data/example.json b/data/example.json new file mode 100644 index 0000000..0fbf62d --- /dev/null +++ b/data/example.json @@ -0,0 +1,1172 @@ +{ + "header": { + "name": "Name", + "surname": "Surname", + "birth_date": "1970-01-01T00:00:00", + "birth_place": { + "timezone": { + "gmtOffset": -5, + "timeZoneId": "America/New_York", + "dstOffset": -4 + }, + "bbox": { + "east": -73.7000090638712, + "south": 40.49611539517034, + "north": 40.91553277600008, + "west": -74.25559136315213, + "accuracyLevel": 0 + }, + "asciiName": "New York City", + "astergdem": 43, + "countryId": "6252001", + "fcl": "P", + "srtm3": 57, + "countryCode": "US", + "adminCodes1": { + "ISO3166_2": "NY" + }, + "adminId1": "5128638", + "lat": "40.71427", + "fcode": "PPL", + "continentCode": "NA", + "elevation": 10, + "adminCode1": "NY", + "lng": "-74.00597", + "geonameId": 5128581, + "toponymName": "New York City", + "population": 8804190, + "wikipediaURL": "en.wikipedia.org/wiki/New_York_City", + "adminName5": "", + "adminName4": "", + "adminName3": "", + "alternateNames": [ + { + "isShortName": true, + "name": "뉴욕", + "lang": "ko" + }, + { + "name": "뉴욕 시", + "lang": "ko" + }, + { + "name": "10001", + "lang": "post" + }, + { + "name": "10002", + "lang": "post" + }, + { + "name": "10003", + "lang": "post" + }, + { + "name": "10004", + "lang": "post" + }, + { + "name": "10005", + "lang": "post" + }, + { + "name": "10006", + "lang": "post" + }, + { + "name": "10007", + "lang": "post" + }, + { + "name": "10008", + "lang": "post" + }, + { + "name": "10009", + "lang": "post" + }, + { + "name": "10010", + "lang": "post" + }, + { + "name": "10011", + "lang": "post" + }, + { + "name": "10012", + "lang": "post" + }, + { + "name": "10013", + "lang": "post" + }, + { + "name": "10014", + "lang": "post" + }, + { + "name": "10016", + "lang": "post" + }, + { + "name": "10017", + "lang": "post" + }, + { + "name": "10018", + "lang": "post" + }, + { + "name": "10019", + "lang": "post" + }, + { + "name": "10020", + "lang": "post" + }, + { + "name": "10021", + "lang": "post" + }, + { + "name": "10022", + "lang": "post" + }, + { + "name": "10023", + "lang": "post" + }, + { + "name": "10024", + "lang": "post" + }, + { + "name": "10025", + "lang": "post" + }, + { + "name": "10026", + "lang": "post" + }, + { + "name": "10027", + "lang": "post" + }, + { + "name": "10028", + "lang": "post" + }, + { + "name": "10029", + "lang": "post" + }, + { + "name": "10030", + "lang": "post" + }, + { + "name": "10031", + "lang": "post" + }, + { + "name": "10032", + "lang": "post" + }, + { + "name": "10033", + "lang": "post" + }, + { + "name": "10034", + "lang": "post" + }, + { + "name": "10035", + "lang": "post" + }, + { + "name": "10036", + "lang": "post" + }, + { + "name": "10037", + "lang": "post" + }, + { + "name": "10038", + "lang": "post" + }, + { + "name": "10039", + "lang": "post" + }, + { + "name": "10040", + "lang": "post" + }, + { + "name": "10041", + "lang": "post" + }, + { + "name": "10043", + "lang": "post" + }, + { + "name": "10044", + "lang": "post" + }, + { + "name": "10045", + "lang": "post" + }, + { + "name": "10055", + "lang": "post" + }, + { + "name": "10060", + "lang": "post" + }, + { + "name": "10065", + "lang": "post" + }, + { + "name": "10069", + "lang": "post" + }, + { + "name": "10080", + "lang": "post" + }, + { + "name": "10081", + "lang": "post" + }, + { + "name": "10087", + "lang": "post" + }, + { + "name": "10090", + "lang": "post" + }, + { + "name": "10101", + "lang": "post" + }, + { + "name": "10102", + "lang": "post" + }, + { + "name": "10103", + "lang": "post" + }, + { + "name": "10104", + "lang": "post" + }, + { + "name": "10105", + "lang": "post" + }, + { + "name": "10106", + "lang": "post" + }, + { + "name": "10107", + "lang": "post" + }, + { + "name": "10108", + "lang": "post" + }, + { + "name": "10109", + "lang": "post" + }, + { + "name": "10110", + "lang": "post" + }, + { + "name": "10111", + "lang": "post" + }, + { + "name": "10112", + "lang": "post" + }, + { + "name": "10113", + "lang": "post" + }, + { + "name": "10114", + "lang": "post" + }, + { + "name": "10115", + "lang": "post" + }, + { + "name": "10116", + "lang": "post" + }, + { + "name": "10117", + "lang": "post" + }, + { + "name": "10118", + "lang": "post" + }, + { + "name": "10119", + "lang": "post" + }, + { + "name": "10120", + "lang": "post" + }, + { + "name": "10121", + "lang": "post" + }, + { + "name": "10122", + "lang": "post" + }, + { + "name": "10123", + "lang": "post" + }, + { + "name": "10124", + "lang": "post" + }, + { + "name": "10125", + "lang": "post" + }, + { + "name": "10126", + "lang": "post" + }, + { + "name": "10128", + "lang": "post" + }, + { + "name": "10129", + "lang": "post" + }, + { + "name": "10130", + "lang": "post" + }, + { + "name": "10131", + "lang": "post" + }, + { + "name": "10132", + "lang": "post" + }, + { + "name": "10133", + "lang": "post" + }, + { + "name": "10138", + "lang": "post" + }, + { + "name": "10150", + "lang": "post" + }, + { + "name": "10151", + "lang": "post" + }, + { + "name": "10152", + "lang": "post" + }, + { + "name": "10153", + "lang": "post" + }, + { + "name": "10154", + "lang": "post" + }, + { + "name": "10155", + "lang": "post" + }, + { + "name": "10156", + "lang": "post" + }, + { + "name": "10157", + "lang": "post" + }, + { + "name": "10158", + "lang": "post" + }, + { + "name": "10159", + "lang": "post" + }, + { + "name": "10160", + "lang": "post" + }, + { + "name": "10161", + "lang": "post" + }, + { + "name": "10162", + "lang": "post" + }, + { + "name": "10163", + "lang": "post" + }, + { + "name": "10164", + "lang": "post" + }, + { + "name": "10165", + "lang": "post" + }, + { + "name": "10166", + "lang": "post" + }, + { + "name": "10167", + "lang": "post" + }, + { + "name": "10168", + "lang": "post" + }, + { + "name": "10169", + "lang": "post" + }, + { + "name": "10170", + "lang": "post" + }, + { + "name": "10171", + "lang": "post" + }, + { + "name": "10172", + "lang": "post" + }, + { + "name": "10173", + "lang": "post" + }, + { + "name": "10174", + "lang": "post" + }, + { + "name": "10175", + "lang": "post" + }, + { + "name": "10176", + "lang": "post" + }, + { + "name": "10177", + "lang": "post" + }, + { + "name": "10178", + "lang": "post" + }, + { + "name": "10179", + "lang": "post" + }, + { + "name": "10185", + "lang": "post" + }, + { + "name": "10199", + "lang": "post" + }, + { + "name": "10203", + "lang": "post" + }, + { + "name": "10211", + "lang": "post" + }, + { + "name": "10212", + "lang": "post" + }, + { + "name": "10213", + "lang": "post" + }, + { + "name": "10242", + "lang": "post" + }, + { + "name": "10249", + "lang": "post" + }, + { + "name": "10256", + "lang": "post" + }, + { + "name": "10258", + "lang": "post" + }, + { + "name": "10259", + "lang": "post" + }, + { + "name": "10260", + "lang": "post" + }, + { + "name": "10261", + "lang": "post" + }, + { + "name": "10265", + "lang": "post" + }, + { + "name": "10268", + "lang": "post" + }, + { + "name": "10269", + "lang": "post" + }, + { + "name": "10270", + "lang": "post" + }, + { + "name": "10271", + "lang": "post" + }, + { + "name": "10272", + "lang": "post" + }, + { + "name": "10273", + "lang": "post" + }, + { + "name": "10274", + "lang": "post" + }, + { + "name": "10275", + "lang": "post" + }, + { + "name": "10276", + "lang": "post" + }, + { + "name": "10277", + "lang": "post" + }, + { + "name": "10278", + "lang": "post" + }, + { + "name": "10279", + "lang": "post" + }, + { + "name": "10280", + "lang": "post" + }, + { + "name": "10281", + "lang": "post" + }, + { + "name": "10282", + "lang": "post" + }, + { + "name": "10285", + "lang": "post" + }, + { + "name": "10286", + "lang": "post" + }, + { + "name": "Aebura", + "isHistoric": true + }, + { + "name": "Bandar Raya New York", + "lang": "ms" + }, + { + "isColloquial": true, + "name": "Big Apple", + "lang": "en" + }, + { + "name": "Cathair Nua-Eabhrac", + "lang": "ga" + }, + { + "name": "City of New York" + }, + { + "name": "Eabhraig Nuadh", + "lang": "gd" + }, + { + "isPreferredName": true, + "name": "Efrog Newydd", + "lang": "cy" + }, + { + "name": "Evrek Nowydh", + "lang": "kw" + }, + { + "name": "Ga-no-no" + }, + { + "name": "http://id.loc.gov/authorities/names/n79007751", + "lang": "link" + }, + { + "name": "https://en.wikipedia.org/wiki/New_York_City", + "lang": "link" + }, + { + "name": "https://uk.wikipedia.org/wiki/%D0%9D%D1%8C%D1%8E-%D0%99%D0%BE%D1%80%D0%BA", + "lang": "link" + }, + { + "name": "Kanón:no" + }, + { + "name": "Kanono" + }, + { + "name": "Kota New York", + "lang": "id" + }, + { + "name": "Lungsod ng New York", + "lang": "tl" + }, + { + "name": "Nei Yarrick Schtadt", + "lang": "pdc" + }, + { + "name": "Neu Amsterdam" + }, + { + "name": "Neu Jorck" + }, + { + "name": "New Amsterdam" + }, + { + "name": "New Orange" + }, + { + "name": "New Yorc" + }, + { + "name": "New York", + "lang": "br" + }, + { + "name": "New York", + "lang": "cs" + }, + { + "name": "New York", + "lang": "da" + }, + { + "isShortName": true, + "isPreferredName": true, + "name": "New York", + "lang": "en" + }, + { + "name": "New York", + "lang": "et" + }, + { + "name": "New York", + "lang": "eu" + }, + { + "name": "New York", + "lang": "fi" + }, + { + "name": "New York", + "lang": "fr" + }, + { + "name": "New York", + "lang": "frp" + }, + { + "name": "New York", + "lang": "hbs" + }, + { + "name": "New York", + "lang": "hr" + }, + { + "name": "New York", + "lang": "hu" + }, + { + "name": "New York", + "lang": "ia" + }, + { + "name": "New York", + "lang": "io" + }, + { + "name": "New York", + "lang": "it" + }, + { + "name": "New York", + "lang": "li" + }, + { + "name": "New York", + "lang": "nb" + }, + { + "name": "New York", + "lang": "nds" + }, + { + "name": "New York", + "lang": "nl" + }, + { + "name": "New York", + "lang": "nn" + }, + { + "name": "New York", + "lang": "no" + }, + { + "name": "New York", + "lang": "pms" + }, + { + "name": "New York", + "lang": "qu" + }, + { + "name": "New York", + "lang": "ro" + }, + { + "name": "New York", + "lang": "sk" + }, + { + "name": "New York", + "lang": "sl" + }, + { + "name": "New York", + "lang": "sv" + }, + { + "isShortName": true, + "name": "New York", + "lang": "tr" + }, + { + "name": "New York borg", + "lang": "is" + }, + { + "name": "New York-borg", + "lang": "is" + }, + { + "name": "New York City", + "lang": "bs" + }, + { + "name": "New York City", + "lang": "de" + }, + { + "name": "New York City", + "lang": "en" + }, + { + "name": "New York City", + "lang": "ku" + }, + { + "name": "New York City", + "lang": "lb" + }, + { + "name": "New York City", + "lang": "nl" + }, + { + "name": "New York City", + "lang": "ro" + }, + { + "name": "New York City", + "lang": "sq" + }, + { + "name": "New Yorke" + }, + { + "name": "New York kenti", + "lang": "tr" + }, + { + "name": "New York Stad", + "lang": "af" + }, + { + "name": "New Yorku" + }, + { + "name": "Niujorkas", + "lang": "lt" + }, + { + "name": "Njujork" + }, + { + "name": "Nouvelle Yorck" + }, + { + "name": "Nouvieau York", + "lang": "nrm" + }, + { + "name": "Nova Amsterda" + }, + { + "name": "Nova Iorque", + "lang": "gl" + }, + { + "name": "Nova Iorque", + "lang": "pt" + }, + { + "name": "Nova York", + "lang": "ca" + }, + { + "name": "Nova York", + "lang": "gl" + }, + { + "name": "Nova York", + "lang": "scn" + }, + { + "name": "Nova-York", + "lang": "io" + }, + { + "name": "Nòva York", + "lang": "oc" + }, + { + "isPreferredName": true, + "name": "Novjorko", + "lang": "eo" + }, + { + "name": "Nov-Jorko", + "lang": "eo" + }, + { + "name": "Novum Eboracum", + "lang": "la" + }, + { + "name": "Nowy Jork", + "lang": "pl" + }, + { + "name": "Nua-Eabhrac", + "lang": "ga" + }, + { + "name": "Nueva York", + "lang": "an" + }, + { + "isPreferredName": true, + "name": "Nueva York", + "lang": "es" + }, + { + "isShortName": true, + "isPreferredName": true, + "name": "Ņujorka", + "lang": "lv" + }, + { + "name": "NY", + "lang": "abbr" + }, + { + "name": "NYC", + "lang": "abbr" + }, + { + "name": "NYC", + "lang": "iata" + }, + { + "name": "Nýja Jórvík", + "lang": "is" + }, + { + "name": "Nyu York Shehiri", + "lang": "ug" + }, + { + "name": "Q60", + "lang": "wkdt" + }, + { + "name": "Thành phố New York", + "lang": "vi" + }, + { + "isColloquial": true, + "name": "The Big Apple", + "lang": "en" + }, + { + "name": "USNYC", + "lang": "unlc" + }, + { + "name": "York Berri", + "lang": "eu" + }, + { + "name": "Νέα Υόρκη", + "lang": "el" + }, + { + "isPreferredName": true, + "name": "Нью-Ёрк", + "lang": "be" + }, + { + "name": "Нью-Йорк", + "lang": "os" + }, + { + "name": "Нью-Йорк", + "lang": "ro" + }, + { + "isPreferredName": true, + "name": "Нью-Йорк", + "lang": "ru" + }, + { + "name": "Нью-Йорк", + "lang": "uk" + }, + { + "name": "Ню Йорк", + "lang": "bg" + }, + { + "name": "Њујорк", + "lang": "mk" + }, + { + "name": "Њујорк", + "lang": "sr" + }, + { + "name": "Њу Јорк", + "lang": "mk" + }, + { + "name": "ნიუ-იორკი", + "lang": "ka" + }, + { + "name": "ניו יארק", + "lang": "yi" + }, + { + "name": "ניו־יאָרק", + "lang": "yi" + }, + { + "name": "ניו יורק", + "lang": "he" + }, + { + "name": "نيويورك", + "lang": "ar" + }, + { + "name": "نیویارک شہر", + "lang": "ur" + }, + { + "name": "نیویورک", + "lang": "fa" + }, + { + "name": "न्यूयॉर्क", + "lang": "hi" + }, + { + "name": "নিউ ইয়র্ক সিটি", + "lang": "bn" + }, + { + "name": "நியூயார்க் நகரம்", + "lang": "ta" + }, + { + "name": "นครนิวยอร์ก", + "lang": "th" + }, + { + "name": "ニューヨーク", + "lang": "ja" + }, + { + "name": "マンハッタン", + "lang": "ja" + }, + { + "name": "紐約", + "lang": "zh" + }, + { + "name": "紐約市", + "lang": "zh" + }, + { + "name": "紐約市", + "lang": "zh-TW" + } + ], + "adminName2": "", + "name": "New York", + "fclName": "city, village,...", + "countryName": "United States", + "fcodeName": "populated place", + "adminName1": "New York" + }, + "location": { + "street": "Liberty Island", + "number": "1", + "zip": "NY 10004", + "city": "Manhattan" + }, + "nationality": "American", + "family_status": "single", + "phone": "+12123633180", + "email": "statue_of_liberty@msn.com", + "website": "https://thestatueofliberty.com" + }, + "table_jobs": [ + { + "time_start": "1886-10-28T00:00:00", + "time_end": "1933-01-01T00:00:00", + "description": "Sample Number 1" + }, + { + "time_start": "1933-01-01T00:00:00", + "time_end": "1982-01-01T00:00:00", + "description": "Sample Number 2" + }, + { + "time_start": "1982-01-01T00:00:00", + "time_end": null, + "description": "Sample Number 3" + } + ], + "table_education": [ + { + "time_start": "1886-10-28T00:00:00", + "time_end": "1933-01-01T00:00:00", + "description": "Sample Number 1" + }, + { + "time_start": "1933-01-01T00:00:00", + "time_end": "1982-01-01T00:00:00", + "description": "Sample Number 2" + }, + { + "time_start": "1982-01-01T00:00:00", + "time_end": null, + "description": "Sample Number 3" + } + ], + "skills": [ + "Sample Number 1", + "Sample Number 2", + "Sample Number 3", + "Sample Number 4", + "Sample Number 5" + ], + "hobbies": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas congue dui sapien, a pulvinar nulla cursus id. Nunc vestibulum convallis turpis et suscipit. Donec porttitor ipsum ac suscipit hendrerit. Ut porta sodales eros a bibendum. Cras quis ipsum at nibh molestie rutrum ac vitae diam. Phasellus vestibulum vehicula velit non suscipit. Aliquam semper felis ac mollis varius. Morbi nec viverra sem. Integer sagittis aliquet purus, vel suscipit ligula porta at. Suspendisse mauris ipsum, lobortis at erat et, vehicula lobortis dui. Fusce venenatis, sapien vitae imperdiet interdum, est erat tempus tellus, non ultricies mauris enim feugiat nulla." +} \ No newline at end of file