diff --git a/config.json b/config.json index 7f683a0..d51a9f8 100644 --- a/config.json +++ b/config.json @@ -29,5 +29,35 @@ "android": { "filename": "android.png" } - } -} + }, + + "oloeng": { + "saveLocation": "/var/tmp", + "filename": "/image.png", + "imagesLocation": "./oloturia", + "csvLocation": "./oloeng", + "csvTree": "ram.csv", + "csvSpeech": "rtext.csv", + "csvSubs": "subs.csv", + "csvObj": "obj.csv", + "font": "./ubuntu.ttf", + "xSize":2400, + "ySize":500, + "panelLength":600, + "twitter": { + "token": "./twitter_token", + "filename": "/twitter.png" + }, + "mastodon": { + "token": "./mastodon_token", + "filename": "/mastodon.png" + }, + "telegram": { + "token": "./telegram_token", + "filename": "/telegram.png" + }, + "android": { + "filename": "android.png" + } + } +} \ No newline at end of file diff --git a/oloeng/obj.csv b/oloeng/obj.csv new file mode 100644 index 0000000..0737edc --- /dev/null +++ b/oloeng/obj.csv @@ -0,0 +1,8 @@ +A11.png,248,185,OBJ00.png,OBJ01.png,OBJ02.png,OBJ03.png,OBJ04.png,OBJ05.png,OBJ06.png,OBJ07.png,OBJ08.png,OBJ09.png,OBJ10.png,OBJ11.png,OBJ12.png,OBJ13.png,OBJ14.png,OBJ15.png,OBJ16.png +B13.png,256,186,OBJ00.png,OBJ01.png,OBJ02.png,OBJ03.png,OBJ04.png,OBJ05.png,OBJ06.png,OBJ07.png,OBJ08.png,OBJ09.png,OBJ10.png,OBJ11.png,OBJ12.png,OBJ13.png,OBJ14.png,OBJ15.png,OBJ16.png +B14.png,253,190,OBJ00.png,OBJ01.png,OBJ02.png,OBJ03.png,OBJ04.png,OBJ05.png,OBJ06.png,OBJ07.png,OBJ08.png,OBJ09.png,OBJ10.png,OBJ11.png,OBJ12.png,OBJ13.png,OBJ14.png,OBJ15.png,OBJ16.png +A29.png,326,194,OBJ00.png,OBJ01.png,OBJ02.png,OBJ03.png,OBJ04.png,OBJ05.png,OBJ06.png,OBJ07.png,OBJ08.png,OBJ09.png,OBJ10.png,OBJ11.png,OBJ12.png,OBJ13.png,OBJ14.png,OBJ15.png,OBJ16.png +Q21.png,199,266,OBJ00.png,OBJ01.png,OBJ02.png,OBJ03.png,OBJ04.png,OBJ05.png,OBJ06.png,OBJ07.png,OBJ08.png,OBJ09.png,OBJ10.png,OBJ11.png,OBJ12.png,OBJ13.png,OBJ14.png,OBJ15.png,OBJ16.png +ART01.png,368,116,ARTO01.png,ARTO02.png,ARTO03.png,ARTO04.png,ARTO05.png,ARTO06.png,ARTO07.png,ARTO08.png,ARTO09.png,ARTO10.png +ART02.png,368,115,R +ART03.png,368,115,R diff --git a/oloeng/ram.csv b/oloeng/ram.csv new file mode 100644 index 0000000..10605d1 --- /dev/null +++ b/oloeng/ram.csv @@ -0,0 +1,120 @@ +000,A00,B00,B20,B28,A13,A19,U00,ART00ENG +A00,A01,A02,A03,P00 +A01,A05,A07 +A02,A05,A07 +A03,A06 +A04ENG,A05,A06,A07 +A05,A08,A09 +A06,A10,A11 +A07,A12 +A08,END +A09,END +A10,END +A11,END +A12,END +A13,B24ENG,A14,A18 +A14,A16 +A15,END +A16,A15,A17 +A17,END +A18,A16 +A19,P00,A27,A22,A26 +A20ENG,A21,A28,A30 +A21,A23,A24 +A22,A21 +A23,END +A24,END +A25,B04ENG,O00 +A26,A21 +A27,A21 +A28,A32,A29,A31 +A29,END +A30,A32,B10,A08,A10 +A31,END +A32,END +ART00ENG,ART01 +ART01,ART02 +ART02,ART03 +ART03,END +B00,B00.0,B00.1,B00.2,B00.3 +B00.0,B01,B02,B03,P00 +B00.1,B01,B02,B03,P00 +B00.2,B01,B02,B03,P00 +B00.3,B01,B02,B03,P00 +B01,B05,B06,B08 +B02,B05,B06,B08 +B03,B07 +B04ENG,B05,B07,B06,B08 +B05,B09.0,B09.1,B10,B11,B15 +B06,B10,A08,A09,B12,B09.0,B09.1 +B07,B13,B14 +B08,B16 +B09.0,END +B09.1,END +B10,END +B11,END +B12,END +B13,END +B14,END +B15,END +B16,END +B20,B21.0,B22,B25.0,B26.0,P00,Q00,Q04ENG,Q08ENG,Q17 +B21.0,B21.1,B26.1,B25.1 +B22,B21.1,B26.1,B25.1 +B24ENG,A05,A06,A07,B06,B07,B06,B08,B21.1,B26.1,B25.1 +B25.0,B21.1,B26.1,B25.1 +B26.0,B21.1,B26.1,B25.1 +B21.1,B21.2,B23,B27 +B25.1,B21.2,B23,B27 +B26.1,B21.2,B23,B27 +B21.2,END +B23,END +B27,END +B28,P00,B29 +B29,B30 +B30,B31,B32 +B31,END +B32,END +C01,C02 +C02,C04,C05,C04 +C03,C06 +C04,C06 +C05,C06 +C06,END +O00,O00.0,O00.1,O00.2,O00.3 +O00.0,O01,O02 +O00.1,A28,A30 +O00.2,B08,A07 +O00.3,Q05 +O01,O04,O05 +O02,O04,O05 +O04,END +O05,END +P00,A04ENG,A20ENG,B04ENG,B24ENG +Q00,Q01,Q07 +Q01,B23,Q02,Q03 +Q02,Q02.1,Q02.0 +Q02.0,END +Q02.1,END +Q03,END +Q04ENG,Q05,Q07 +Q05,Q06 +Q06,END +Q07,Q20,Q21,B23,B27 +Q08ENG,Q07,Q09,Q10,Q13 +Q09,B23,B27,Q11,Q12 +Q10,B23,B27,Q11,Q12 +Q11,END +Q12,END +Q13,B23,B27,Q14,Q15 +Q14,END +Q15,END +Q16,B23,B27,Q18,Q19 +Q17,Q16,Q07 +Q18,END +Q19,END +Q20,END +Q21,END +Q22,END +Q23,END +U00,P00 diff --git a/oloeng/rtext.csv b/oloeng/rtext.csv new file mode 100644 index 0000000..866ba12 --- /dev/null +++ b/oloeng/rtext.csv @@ -0,0 +1,100 @@ +A00.png;1;268;77;What a lousy day;Is there anybody?;I'd like a@;Whoa!;$NAME, where are you?;Sea greaves;I'm going to buy@$OBJECT;I wonder where@$NAME is...;They released $FILMS on@ Netfluxsp;I ate $FOOD +A01.png;1;327;110;I'm nervous!;I'm very angry!;What a nuisance!;$OBJECT;Flop off!;AAAAAH!;$SWEARING;$NAME is late! +A02.png;1;282;100;I'll get through@this!;I've got an idea!;Sea greaves;Waiter, a pizza! +A03.png;1;296;103;I wonder what's@inside this box;Ammazzon sent me@this parcel;Sea greaves;It's from $NAME;It's for $NAME,@should I open it?;Usually I don't@open anonymous parcels;With this@I'm going to@resolve all my problems +A04ENG.png;0 +A05.png;0 +A06.png;0 +A07.png;1;228;96;HO NO!@È CAZZOPOLLO!;CAZZOPOLLO! +A07.png;1;228;96;OH NOES!@COCKCHICKEN!;COCKCHICKEN! +A08.png;1;293;132;$SWEARING;IT'S ALL $NAME FAULT!;WHY IT'S@ALWAYS@MY FAULT!;I'M GOING TO@KICK HIM!;LOUSY DAY! +A09.png;1;286;136;Very efficient!;Very well!;That's the way@you do it!;Exactly so!;Plain simple!;Sea greaves!;Ready for Christmas?;$NAME was right;$NAME was wrong +A10.png;0 +A11.png;0 +A12.png;0 +A13.png;0 +A14.png;1;330;168;I'm bored;I want to get back@to $LUOGOCP;I'm here since@$ANNO;I'd like a @$OBJECT;I miss@$NAME;I would eat even@$FOOD;It's $NUMERO@days since my arrival here;Hopefully@it's not raining;$SWEARING;It's all $NAME@fault;I need @$OBJECT to build@a raft;It's a ship over there?;Eeeeeh... +A15.png;0 +A16.png;0 +A17.png;0 +A18.png;0 +A19.png;1;122;108;What a melanchonic@sunset...;I wonder what will happen@in $NUMERO years...;I wonder how is@life after death...;I wonder what@happened to $NAME;I wonder if we@will ever solve the problem@$QUESTOP;I miss my@$PET;I miss $NAME;$NAME was right;What a beautiful sunset... +A20ENG.png;0 +A21.png;0 +A22.png;1;123;110;Anyway...;However...;Perhaps...;Mm...;Of course, of course...;So...;On the other hand...;Maybe... +A23.png;1;188;102;Maybe they found me;Oh no!; $SWEARING ;I forgot the oven on;I didn't return $OBJECT@to $NAME;$FOOD was poisoned;The $FOOD I ate@had gone bad;uh oh...;They hacked my $SOCIAL;$NAME found out that@I flirt with $NAME;It's the end +A24.png;1;104;110;Suddenly, THE HORROR;What the...;I forgot my $PET@at the gas station;Maybe $FOOD@was poisoned;That's the true@meaning of life!;Now I finally understand@$FILMS ending;Yabba dabba bubba;$NAME is a liar!;I wonder where@I left $OBJECT +A26.png;1;91;91;$SWEARING;I'm going to kick him!;$NAME tricked on me;I'm going to punch him@$NUMERO times;I'll avenge my $PET;I was tricked like a@child!;I didn't undersand@$FILMS ending! +A27.png;1;90;113;Ahh...;Eh...;$NAME and $NAME won't be@disappointed;It's time for a@new $PET;Last year I made@$NUMERO euros;I should stop buying@$OBJPLU ;It's like this!;I read it on $QUOTID +A28.png;1;157;204;We're going@to crash@on $PLANET;Sensors readings@say that air on@$PLANET is@breathable;Oh no! We're@going adrift@in the Space!;The Kellogg's route@in less than@$NUMERO Parseqs!;How did I@get there?;Trips in@space!;The Space!;From here the@view is marvellious +A29.png;1;126;65;A small step for a man...;A small step for a woman...;Hello $NAME;I can see my house from here;Earth from up there is nice;This planet is mine now +A30.png;1;309;87;I'm inside@the Matrix!;I'm in the@VIRTUAL REALITY!;I'M IN A@PARALLEL UNIVERSE!;Get me out of@this computer!;The vortex of@informations!;I see@CYBERSPACE!;I'm on the@INTERNET! +A31.png;2;113;111;281;309;$COLORA ALERT!;$HELP;$COLORA ALERT;$DESPAIR +A32.png;2;109;91;134;213;Space, last frotier...;$LUOGOCP;Space, last frontier;$PLANET;Captain's log, star date $NUMERO;$PLANET +ART00ENG.png;1;62;90;Hm... an exhibition by@$NAME $COGNAME;An exibithion of $ARTE $MOVIMENTO;...$COGNAME was part@of the $MOVIMENTO movement;An $ARTE exibithion!@Neat! +ART01.png;1;70;80;Hm...@"$TITOLARTE"; "$TITOLARTE" is an@unsurpassed example@of $MOVIMENTO movement;This is the famous@"$TITOLARTE";A work by@$NAME $COGNAME; "$TITOLARTE"@by $NAME $COGNAME +ART02.png;0 +ART03.png;1;54;66;WOW, this work@$VALUTAZIONE;I'm disappointed;This work is worth@$NUMERO euros!;A classic from@$MOVIMENTO movement;They shoud have called it@"$TITOLARTE";Why?;It's fake!;$NAME would say that it's@$VALUTAZIONE, but I think that@$VALUTAZIONE instead;$VALUTAZIONE +B00.0.png;2;40;48;288;78;Excuse me@where is the train@station?;The train what?;What do you think about@$QUESTOP?;$ANSOP;How do you cook@$FOOD?;I don't know;Do you know $NAME?;I don't think so;Are you $NAME?;No, I'm $NAME;Are we friend on@$SOCIAL?;Maybe;Your car is in the way;OK, I'll move it;I've got bad news@for your $PET;Oh no,@what happened?;How's the match?;$TEAMCALCIO is $RISULTATOCALCIO@vs $TEAMCALCIO +B00.1.png;2;159;45;315;122;Excuse me;What do you want?;I'd like a $OBJECT;Marine or land grown?;Where's the toilet?;Get out@of my home!;The bathroom@is infested by@$ANIMAL!;$SWEARING!;Where's the toilet?;Over there!;An interview for the@$QUOTID;$RSTAMPA;Who are you?;I'm $NAME;Shush...;But...;How's the match?;$TEAMCALCIO is $RISULTATOCALCIO@vs $TEAMCALCIO +B00.2.png;2;48;32;330;55;$HELP;$HELP;It's all your fault!;No, it's your fault!;It's all your fault;It's not my fault@it's the $COMPLOTTS;$TEAMCALCIO scored!;YAY!;$CORPONOME found us!;$DESPAIR;It's a conspyracy@of $COMPLOTTS;$SWEARING +B00.3.png;2;90;85;286;120;$CORPONOME, $CORPOAZIONE;$REAZIONECORPO ;$CORPONOME, are you@$COGNAME ?;$REAZIONENAME +B01.png;2;160;38;250;80;Idiot!;Mind your language;I hate you!;Who cares!;I'm calling@the police!;Police@can't help@you here;Go to hell;No, you go to hell;Why did you scream?;Because you@screamed!;I hate you!;Hate is negative;Next time,@I'll get angry;There won't be@a next time +B02.png;2;219;67;227;180;$INSULT;$INSULT +B03.png;2;188;79;270;172;I got a present!;For me?;I got you this!;Wow!;It was in the@mailbox;It has finally@arrived! +B04ENG.png;0 +B05.png;2;171;102;200;220;What?;What what?;But...;It's all your falut!;Sea greaves?;Yes!;But...;Not a chance!;So, it wasn't $NAME?;No! It was $NAME!;Whoops, was it private?;Yes, and you posted@it on $SOCIAL; +B06.png;2;179;80;245;165;Sorry;Buzz off;But I prepared $FOOD;Eat it yourself!;I thought that...;You thought it wrong +B07.png;1;297;89;What a surprise!;I wonder what's inside!;I'm excited! +B08.png;1;80;106;OH NOES! COCKCHICKEN!;COCKCHICKEN! +B09.0.png;0 +B09.1.png;0 +B10.png;0 +B11.png;2;182;97;247;202;DISGUSTING!;BLEARGH!;You ate@$FOOD;BLORGH!;Bah...;GLOAGG +B12.png;1;288;130;$INSULT;Sea greaves!;NEVER AGAIN!;I DELETE YOU FROM@$SOCIAL;$QUOTID will know about@that! +B13.png;0 +B14.png;0 +B15.png;0 +B16.png;0 +B20.png;2;145;81;335;139;Let's watch TV;click;Oh $PROGRAM is on;click;TV time;peepo;I'll watch@$FILMS on DVD;bzuuz +B21.0.png;1;110;81;...for a THOUSAND years!;...reproduction@of $ANIMAL...;...before they could react!;...$ANIMAL eat@ $FOOD...;POW ZAP@BOOM!;...damned $COGNAME@we will see again!;...this is the recipe@for $FOOD broth;...third world war... +B21.1.png;1;110;81;...for a THOUSAND years!;...reproduction@of $ANIMAL...;...before they could react!;...$ANIMAL eat@ $FOOD...;POW ZAP@BOOM!;...damned $COGNAME@we will see again!;...this is the recipe@for $FOOD broth;...third world war... +B21.2.png;1;110;81;...for a THOUSAND years!;...reproduction@of $ANIMAL...;...before they could react!;...$ANIMAL eat@ $FOOD...;POW ZAP@BOOM!;...damned $COGNAME@we will see again!;...this is the recipe@for $FOOD broth;...third world war... +B22.png;1;189;100;Incredible!;Did they get mad?!;Shameful!;This is trash TV;I pay for this?;Holy cow!;Stop it! +B23.png;0 +B24ENG.png;0 +B25.0.png;1;131;87;Uahahah!;Funny!;Ridiculous!;Ahah that's dumb! +B25.1.png;1;131;87;Uahahah!;Funny!;Ridiculous!;Ahah that's dumb! +B26.0.png;0 +B26.1.png;0 +B27.png;1;157;119;I'm tired;Enough TV for today;There's only trash@on TV;I'll go make a@$FOOD sandwich;I'll check@$SOCIAL +B28.png;2;118;43;470;92;I'd like $FOOD@with some $SIDEDISH@and $FOOD in@$DRESSING;At once@monsieur +B29.png;2;160;61;106;152;I suggest@$VINO from $ANNO;A good vintage;Do you want some wine?;I'll take $VINO;We have some good@$VINO from $LUOGOCP;Let's try it! +B30.png;0 +B31.png;2;91;134;335;112;$REAZIONEVINO;thank you monsieur +B32.png;2;135;157;290;109;$VERSO;Is it too sour, monsieur? +Q00.png;0 +Q01.png;1;200;183;Ep n.$NUMERO@Bingu in the country;Ep n.$NUMERO@Bingu saves the day;Ep n.$NUMERO@Bingu mad;Ep n.$NUMERO@Bingu plays cricket;Ep n.$NUMERO@Bingu in $LUOGOCP;Ep n.$NUMERO@Bingu superhero;Ep n.$NUMERO@Bingu supersonic;Ep n.$NUMERO@Bingu explodes;Ep n.$NUMERO@Bingu in space;Ep n.$NUMERO@Bingu shoots the president +Q02.0.png;2;111;125;300;167;nuorg... nuorgon...;bopsulapsi;asgkanazewani;okhotooo;urialenea;guoabauob;mufurghiu;acadpeo;cipbrobzal;fungublast;turtigliaz;menubauos;kobrobangkoegh;giufbans;origiogao;bmububmlfumb;gieobobo;pingdfo;zkobkbfm;gogogo;auguaugu;igneosvuz;spaziobin;ghauruf;orghorsof;pantido;bglibul;asplru;ssooosfm;bbbubbusbn;itsudo;vudizby;anvufnv;eiegugu;sivivivivbibiib;clckcju +Q02.1.png;0 +Q03.png;0 +Q04ENG.png;2;290;226;247;349;$COGNAME;$NAME $COGNAME +Q05.png;1;190;89;Detective!@Body of $TITOLO $COGNAME@was stabbed@$NUMERO times!;Detective!@We don't have any clues!;Detective!@the waitress heard a@shot around@ten o'clock;Detective!@we suspect of@$SOSPETTO;Detective!@someone poisoned@$FOOD!;Detective!@The assassin used@$WEAPON +Q06.png;2;150;80;260;188;The culprit is@$SOSPETTO;$SURPRISE;The weapon@is a $WEAPON;$SURPRISE;Let's ask $SOSPETTO@about it;$SURPRISE;I give up!;$SURPRISE;It's a case of suicide!;$SURPRISE +Q07.png;0 +Q08ENG.png;1;220;257;Chef $COGNAME +Q09.png;1;125;119;Today I present $FOOD@in $DRESSING;Let's prepare a cup of@creamy $DRESSING;You will need a spoonful@of $DRESSING for the $SIDEDISH +Q10.png;1;190;156;Emulsionate@some $SIDEDISH;Mix together $DRESSING;and $SIDEDISH;Add some $DRESSING +Q11.png;1;247;137;Et voila!@$FOOD;Ready for the oven!;Serve it in a warm cup;Meanwhile, prepare some @$FOOD;I hope@restaurants are@still open +Q12.png;1;135;127;Infornate per @$NUMERO minuti;Sarà pronto in un@batterdocchio!;Ecco che cuoce@$FOOD +Q12.png;1;135;127;Cook at $NUMERO°C@for $NUMERO minutes! +Q13.png;1;256;184;Let's taste it! +Q14.png;0 +Q15.png;1;213;89;mmm;yum!;good;not bad;it tastes gross;it sucks;call an ambulance;too sour;too sweet;too bitter +Q16.png;2;111;97;259;148;You introduced $NUMERO taxes!;You did it!;You don't have respect!;You don't have it!;Where were you when it was around?;Where were you instead!;You stole $NUMERO from the@budget!;You stole it!;Don't interrupt me!;You don't interrupt me! +Q17.png;1;105;100;Good evening and welcome to@this debate.@Today we have sen. $COGNAME and@sen. $COGNAME who discuss about $PROBLEM +Q18.png;2;201;105;375;159;I punch you in the face!;Security!;I'll kill you!;Stop it!;I'll kick your ass;No no NO! +Q19.png;2;110;143;366;192;I quit!;Oh well;It's impossible to@reason with you!;Please stay!;This sucks!;What? +Q20.png;1;170;129;Drive a $AUTO@means freedom;$MARCAAUTO $AUTO@at $NUMERO Euro +Q21.png;1;201;129;Eau de $NAME@pour homme;Buy this thing;$NUMERO euro! +U00.png;1;63;153;Oh noes! Ufos are @$UFO;Oh no! Ufos are @$UFO diff --git a/oloeng/subs.csv b/oloeng/subs.csv new file mode 100644 index 0000000..6d96862 --- /dev/null +++ b/oloeng/subs.csv @@ -0,0 +1,58 @@ +$ALIENTECH;Gamma;Beta;Upsilon;Ultraviolent;nuclear;laser;fotonic;ray;Kappa;poison;megatonic;subsonic;subnuclear;hyperreal;black matter;red;green;seismic +$ANIMAL;cattle;cophephors;zebras;centaurs;hares;grasshoppers;sponges;cockatoos;echidnas;owls;lemurs;leeches;sea cucumbers;hyenas;elephants;mastodons;ostriches;pangolins;cats +$ANNO;2013;2010;2009;2001;1994;1982;1965;1958;1931;1920;1883;1432;450;212 a.C.;3000 a.C.;2058;2092;4923;40543;$NUMERO a.C.;$NUMERO d.C. +$ANSOP;I don't know;I support this;It depends;I think not;What?;Come on! +$ARTE;painters;photographers;graffiti;sculptors;ebanists;cartoonists +$AUTO;Glasont;Punda;Pesante;Escrot;Ingolf;Dunda;Mucca;Suxo;Priapus;Smurt;Scassienne;Tfungo;Ybsilbulb;Climbo;Mucra +$AUTO;Frontierra;Ceivic;Mengange;Corvutte;Jella;Strato;Testagrossa;Rhombius +$AZIONECP;fights crime +$CANE;PAZZO;CAZZO;PANE;CANE +$CHNL;ZBC;UBC;GBC +$COGNAME;Smiths;Castres;Lewson;Johnsons;Headbangs;O'Halley;Duca;Frothinson;Flenningan;Robinbon;Theodor;Tromp;Mucherson;Quickby +$COLORA;RED;VERY RED;GREEN;YELLOW;BLACK;BROWN;INANE +$COMPLOTTS;the Powers That Be;Soros;Berlusconi;UFOs;Illuminati;Communists;Secret Police;KGB;CIA;zombies +$CORPOAZIONE;I have to ask you some questions +$CORPONOME;Police +$DESPAIR;I'm scared!;Ready for combat!;Oh no!;We're lost! +$DRESSING;cream;vinegar;dugong gravy;raspberry jam;boa blood;snail gravy;drain sludge;watery;oil and garlic;butter;ash +$FILMS;Avatras;Prinception;The Gothfather;Peter Bong;Twin Pupps;The incredible BRULK;Goddizunzkl;Jorker;Tethanic;Batmans;Avengums;Star Trinks;Star Sbrek;KOYAANKYSIAQSTY;Babe the fartful pig;Moby Brick;Ghostbutters;Brown Mirror;The usual supines;Fight Clam +$FOOD;sea greaves;grass;lichens;live snails;foliage;mushrooms;deer's backs;pterodactly eggs;small sausages;stikes of cephalus;pumpkin toast;sweet hare;a $ANIMAL quiche;strawberrys;buttered koala;pizza;fried drones;peas +$HELP;Help!;Alarm!;AAAAAH!;SOS! +$INSULT;Idiot!;Fool!;Crazy!;Charlatan!;Silly you! +$LUOGOCP;Rome;Casalecchio;London;Paris;Munich;Rotterdam;Vilinius;Bainokur;Moscow;Tokyo;Ulan Bataar;Peking;Oslo;New York;Leicester;Liverpool;Venice;Modena;Monsterrat +$MARCAAUTO;Renult;Fnord;Chervolets;Candillac;Bopel;Wolskbsdbobaghen +$MOSTRO;Vampire;Ghost;Zombie +$MOVIMENTO;impressionists;cubists;expressionists;pepessionists;spherists;naifs +$NAME;Bobby;Carl;Lorenz;Joseph;Alma;Anthony;Laura;John;Linda;Soros;David;Luke;Acracid;Anna;Berlusconi;Cephalo;Bumbo;Dupont;Susan;Pearl;Valentine;Lee;Peter;Philippe;Teo;Leo;Paula;Quinto;Monica;William;Emiliano;Olivia +$NUMERG;one;two;three;four;five;six;seven;eight;nine;zero;$NUMERO +$NUMERO;23;465;4341;453;123;11;345566;4356349349;456;33;23450;912;1120;564554545;40;1;4;61;10;0;342;34;234;435435 +$OBJECT;a sweater;sea greaves;a wallet;two hooks;some baking soda;an egg;a chicken;a ruler;a wheel;a shovel;a doll's house;a ball;a clock;a cone;a game;a pole +$OBJPLU;some sweaters;sea greaves;wallets;hooks;eggs;chickens;rulers;tyres;shovels;cones +$OPERA;$MOSTRO maledetto;Il $PET ninja;Il mistero di $LUOGOCP;Attenzione:@ $MOSTRO uccide;$MOSTRO da $PLANET;Morte a $LUOGOCP;$WEAPON per $COGNAME;$WEAPON mortale;Il $PET @con $WEAPON;$MOSTRO con $WEAPON +$OPERA;$MOSTRO;$PET ninja;Mistery of $LUOGOCP;$MOSTRO from $PLANET;Death in $LUOGOCP;$WEAPON for $COGNAME;Mortal $WEAPON;$PET @with $WEAPON;$MOSTRO with $WEAPON +$PET;hamster;cat;dog;parrot;jellyfish;anteater;bunny;pangolin;kangaroo;echidna;boar;barn owl +$PLANET;Urabus;Saturb;Jupinter;Percury;Wenus;the Bloon;Bars;Neptube;Bluto;Quaoar;the core of the BSUN;Bune;Enbor +$PROBLEM;taxes;education;equity;juggling;healthcare;economy;sport;horses;homeostasis;$SOCIAL +$PROGRAM;Brown Mirror;Grays Bananony;Game of Prones;Big Dog Theory;False Detective;Eurovison +$QUESTOP;global warming;sea greaves;boa constrictosr;Elvis Presley;$SOCIAL addiction +$QUOTID;The Times New Roman;The BSUN;Bilddd;Le Sfigaro +$REAZIONECORPO;You're wrong!;Not my fault!;I don't know nothing;I have an alibi! +$REAZIONENAME;No I am@$COGNAME !;$REAZIONECORPO +$REAZIONEVINO;wunderbar;awful;good;tastes like piss;very good;the best wine@I ever tasted; +$RISULTATOCALCIO;winning $NUMERG to $NUMERG;losing $NUMERG to $NUMERG;a draw +$RSTAMPA;No comment;I was framed;Ask $NAME@not me!;My lawyer said@I shouldn't speak with@the press;$SWEARING@STOP IT!@$SWEARING +$SIDEDISH;frucid lemons;asparagus;pop corns;wolf broth;solphites;lard;bee fat;beans;carrots;iceberg salad;clove of garlic;paint;hairy bread;anchovies;roasted potatoes;gum bears;stikes of cephalus +$SOCIAL;Fungusbook;Twinter;Mastodong;Tinber;Pinderes;Istagraetz;Whastappz;Telgramm;Vkonkatze;GOGLE ORKUT;Stiktoks;YouBute;Pornhag +$SOSPETTO;the BUTLER;the WAITRESS;the SECRETARY;$TITOLO $COGNAME;the LOVER;the MILKMAN;the DOG;MYSELF +$STRANEZZA;Spine;the Clavicle;the Pungiball;the Gorgonzola;the Solar Plexus;Hungary;the Sea Greaves;the Balls;the Quadratini;the Wurstel; the Grass; the Green Lizard; the Tundra; the Ulna; the Smurf; the Bamba; the Bumba; the Balla; the Parrot; the Mucus; the Knee; the Pancotto; the Cigar; the Fallow deer; the Faun; the Jacket; the Ligure; the Micio; the Bambinello +$SURPRISE;Wow!;OMG!;Incredible! +$SWEARING;FFS!;OMG!;DAMN!;GOSH! +$TEAMCALCIO;Juventus;Ninja team;Brasil;Schalke 69;BananerMunich;Dinamo Kiav;il Tettenham;Irreal Madrid;mystery team;a team of@demons summoned by@a mad necromancer +$TITOLARTE;Nativity;Still life with@ $SIDEDISH;$TITOLO $COLORA;Rhapsody in $COLORA;$STRANEZZA of $NAME;Triumph of $STRANEZZA;$STRANEZZA desnuda;$STRANEZZA $COLORA +$TITOLO;Marquis;Count;Knight;Duke;Mr. +$TRACCIA;blood;mucus;gravy +$UFO;from $PLANET are invading!;are attacking $LUOGOCP !;are attacking with $ALIENTECH !;shooting $ALIENTECH rays!;$DESPAIR;are poisoning $FOOD +$VALUTAZIONE;it sucks;it's incomprehensible;it's perfect;it's obscene;it's unique;it's clean;it's colourful +$VERSO;Ghargh;Nuorghs;Blaargh;Orghll;Blough;Murghle;Gahbnnur;Ptoar;Splutz +$VINO;Ghianti;Lambrucchio;Shibruaz;Toccai;un Sanjsbuolueaus;Moetschandos;Gewurzstramzilxbxy;Moller Thurgidau;Brancamucus;a wine +$WEAPON;a stiletto;a chandelier;a gun;a rifle;a brick;a spanner;an icebreaker;poison;a pencil;a lion;a cobra;a big hammer;an uzi;a grenade;an arrow;a knife;a bulb;a corkscrew;a mad rattlesnake;a well trained housecat;a trap;a saw \ No newline at end of file diff --git a/oloturia/A04ENG.png b/oloturia/A04ENG.png new file mode 100644 index 0000000..7e4edf9 Binary files /dev/null and b/oloturia/A04ENG.png differ diff --git a/oloturia/A20ENG.png b/oloturia/A20ENG.png new file mode 100644 index 0000000..31698b9 Binary files /dev/null and b/oloturia/A20ENG.png differ diff --git a/oloturia/ART00ENG.png b/oloturia/ART00ENG.png new file mode 100644 index 0000000..131c06d Binary files /dev/null and b/oloturia/ART00ENG.png differ diff --git a/oloturia/B04ENG.png b/oloturia/B04ENG.png new file mode 100644 index 0000000..cb693b0 Binary files /dev/null and b/oloturia/B04ENG.png differ diff --git a/oloturia/B24ENG.png b/oloturia/B24ENG.png new file mode 100644 index 0000000..85ce307 Binary files /dev/null and b/oloturia/B24ENG.png differ diff --git a/oloturia/Q04ENG.png b/oloturia/Q04ENG.png new file mode 100644 index 0000000..8b01bdc Binary files /dev/null and b/oloturia/Q04ENG.png differ diff --git a/oloturia/Q08ENG.png b/oloturia/Q08ENG.png new file mode 100644 index 0000000..94dddd9 Binary files /dev/null and b/oloturia/Q08ENG.png differ diff --git a/oloturia/subs.csv b/oloturia/subs.csv index ce19749..f835a68 100644 --- a/oloturia/subs.csv +++ b/oloturia/subs.csv @@ -26,7 +26,7 @@ $NAME;Bobby;Carl;Lorenz;Giuseppe;Alma;Antonietto;Laura;Ascanio;Gianni;Lello;Arna $NUMERG;uno;due;tre;quattro;cinque;sei;zero;$NUMERO $NUMERO;23;465;4341;453;123;11;345566;4356349349;456;33;23450;912;1120;564554545;40;1;4;61;10;0;342;34;234;435435 $OBJECT;un giubbino;ciccioli di mare;un portafogli;un tornio;due ganci;del lievito;un uovo;un catafalco;una gallina;un righello;uno pneumatico;un robot $ROBOT@;una zangola;un CD di@$PROGRAM;una vanga;una palla;una casa@per bambole;un cipresso;un cono;un orologio;una penna;un gioco@in scatola;un pilone -$iOBJPLU:dei giubbini variopinti;i ciccioli di mare;dei portafogli;dei torni;dei ganci;del lievito;delle uova;dei catafalchi;delle galline;dei righelli;degli pneumatici;dei robots;delle zangole;dei DVD di@$PROGRAM;delle vanghe;delle palle;dei cipressi;dei coni per la pulizia@dell'orecchio;degli orologi;delle penne;dei giochi@in scatola;dei piloni;dei souvenir da@$LUOGOCP +$OBJPLU:dei giubbini variopinti;i ciccioli di mare;dei portafogli;dei torni;dei ganci;del lievito;delle uova;dei catafalchi;delle galline;dei righelli;degli pneumatici;dei robots;delle zangole;dei DVD di@$PROGRAM;delle vanghe;delle palle;dei cipressi;dei coni per la pulizia@dell'orecchio;degli orologi;delle penne;dei giochi@in scatola;dei piloni;dei souvenir da@$LUOGOCP $OPERA;$MOSTRO maledetto;Il $PET ninja;Il mistero di $LUOGOCP;Attenzione:@ $MOSTRO uccide;$MOSTRO da $PLANET;Morte a $LUOGOCP;$WEAPON per $COGNAME;$WEAPON mortale;Il $PET @con $WEAPON;$MOSTRO con $WEAPON $PET;criceto;gattino;cagnino;pappagallino;medusino;cefalino;formicaleone;coniglino;pangolino;cangurino;echidnino;cinghialino;barbagiannino $PLANET;Urabo;Saturbo;Giglove;Percurio;Wenere;la Bluna;Barte;Nettubo;Blutino;Quaoar;il nucleo del BSOLE;Kelper 334b;Bune;Enbor;la Morte Grigia;pianeta Ceppo;pianeta Conco;la cometa@di Sbrolley;Hale Sbopp diff --git a/randstrip.py b/randstrip.py index 0c57b2f..32a9a42 100755 --- a/randstrip.py +++ b/randstrip.py @@ -94,12 +94,22 @@ def writeStrip(story,fontSize,config): textVign = fetchText(indVign,config) if textVign!=0: - for x in range(len(textVign[0])): - text_vign = textVign[1][x] - while text_vign.find('$') != -1: - text_vign = replaceText(text_vign,config) - text_vign = text_vign.replace('@','\n') - addtext.multiline_text((int(textVign[0][x][0]),int(textVign[0][x][1])),text_vign,fill="#000000",font=fnt,align="center") + try: + for x in range(len(textVign[0])): + text_vign = textVign[1][x] + try: + while text_vign.find('$') != -1: + text_vign = replaceText(text_vign,config) + except AttributeError: + print("Problem parsing:") + print(textVign) + quit() + text_vign = text_vign.replace('@','\n') + addtext.multiline_text((int(textVign[0][x][0]),int(textVign[0][x][1])),text_vign,fill="#000000",font=fnt,align="center") + except TypeError: + print("Problem finding text for:") + print(indVign) + quit() obj = addThing(indVign,config) if obj!=0: @@ -122,6 +132,7 @@ def writeStrip(story,fontSize,config): def createStrip(config,specialPlatform="",fontSize=22): """Create strip and save it createStrip(str path/filename)""" + try: story = fetchVign(config) finalStrip = writeStrip(story,fontSize,config) @@ -148,7 +159,7 @@ def readConfig(profile=False,platform=False): try: checkProfile = config[profile] except KeyError: - print("Profile not found") + print("Profile "+profile+" not found") quit() saveLocation = checkLocal(config[profile]["saveLocation"]) imagesLocation = checkLocal(config[profile]["imagesLocation"]) @@ -178,25 +189,47 @@ def checkLocal(directory): if __name__ == "__main__": import argparse + + parser = argparse.ArgumentParser() parser.add_argument('-s','--story',metavar='story',default='',nargs=4,help='name of the images') parser.add_argument('-m','--multiple',metavar='multiple',default=[1],nargs=1,type=int,help='multiple output (int >0)') parser.add_argument('-x','--xsize',metavar='xsize',default=0,type=int,nargs=1,help='resize image x') parser.add_argument('-p','--profile',metavar='profile',default="",type=str,nargs=1,help='profile') + parser.add_argument('-o','--output',metavar='output',const=True,default=False,nargs="?",help='output file, if name not specified, default path will be used') args = parser.parse_args() - if args.multiple[0] <= 0: + + if args.multiple[0] <= 0: #Wrong multiple choice quit() config = readConfig(profile=args.profile) - for x in range(0,args.multiple[0]): - if (args.story == ''): + + if args.output == True: #Output on but no filename specified + fileName = config["saveLocation"]+config["filename"] + elif type(args.output) == str: #Output specified + fileName = args.output + + for ist in range(0,args.multiple[0]): + if (args.story == ''): #No story specified story = fetchVign(config) else: - story = [] + story = [] #Story specified for x in args.story: story.append(x) finalStrip = writeStrip(story,22,config) - if args.multiple[0] == 1: - if args.xsize == 0: + + if args.xsize != 0: #Resize specified + finalStrip = finalStrip.resize((args.xsize[0],int(args.xsize[0]/2400*500))) + + if args.multiple[0] == 1: #No multiple selected + if args.output == False: finalStrip.show() else: - finalStrip.resize((args.xsize[0],int(args.xsize[0]/2400*500))).show() + finalStrip.save(fileName) + else: #Multiple selected + if args.output == False: + print(story) + else: + finalStrip.save(str(ist)+fileName+".png") + + + diff --git a/telegram_main.py b/telegram_main.py index e63cdee..94fa59b 100755 --- a/telegram_main.py +++ b/telegram_main.py @@ -7,8 +7,8 @@ import os fileDir = os.path.dirname(os.path.abspath(__file__)) fileDir = fileDir +"/" -def newStrip(bot, update): - config = readConfig(platform="telegram") +def newStrip(bot, update, args): + config = readConfig(platform="telegram",profile=args) status = createStrip(config) if status == 0: try: @@ -26,6 +26,6 @@ if __name__ == "__main__": token = content[0].strip() updater = Updater(token) dp = updater.dispatcher - dp.add_handler(CommandHandler('strip',newStrip)) + dp.add_handler(CommandHandler('strip',newStrip, pass_args=True)) updater.start_polling() updater.idle()