Skip to content

Commit ab42801

Browse files
committed
优化生成ppt逻辑,删除临时ppt文件
1 parent e826d2a commit ab42801

File tree

7 files changed

+255
-32
lines changed

7 files changed

+255
-32
lines changed

free-apps/src/main/java/com/coderdream/freeapps/util/bbc/GenSixMinutePptx.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ public static void genPpt(String folderName, String titleName) {
4343
String titleTemplateFileName = fillTitlePicture(folderName);
4444
// 第二步:设置标题,填充单词
4545
fillContent(folderName, titleTemplateFileName, titleName);
46+
47+
// 删除temp文件
48+
File file = new File(titleTemplateFileName);
49+
if (file.isFile() & file.exists()) {
50+
file.delete();
51+
System.out.println("删除temp文件");
52+
}
4653
}
4754

4855
/**
@@ -95,7 +102,7 @@ public static void fillContent(String folderName, String templateFileName, Strin
95102
Title title = new Title(titleName, titleName, folderName);
96103
Map props = new HashMap(); // 末日滚动:我们为什么喜欢末日滚动?
97104
props.put("titleName", titleName);
98-
if("230209".equals(folderName)) {
105+
if ("230209".equals(folderName)) {
99106
props.put("titleName", "我们为什么喜欢末日滚动?");
100107
}
101108

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
240606
1+
200806
2+
200813
3+
200820
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
2+
blood types are kinds of stickers or chemical markers which support our immune system - the organs, cells and processes which protect the human body from infection and illness.
3+
well, not according to dr emma pomeroy of cambridge university’s archaeology department. she thinks that - like horoscopes – there’s no scientific basis for a connection between blood types and personalities.
4+
i didn’t, sam, but japanese culture is certainly interested in blood. there’s even a word ‘burahara’ meaning ‘blood harassment’, which is used to describe hostility towards people from a certain blood group considered to be selfish – but which group? that’s my quiz question for today – which blood types may fall victim to ‘burahara’? is it: a) blood type a? b) blood type b? or c) blood type o?
5+
according to japanese tradition, blood type as are perfectionists - people who want everything to be perfect and demand the highest standards possible.
6+
chie kobayashi
7+
scientifically speaking, blood types help support our immune system - the organs and cellular processes which protect the human body from infection.
8+
but as we’ve heard, it’s actually b) blood type b.
9+
in this programme we’ll be finding out all about blood – why humans have different blood types and whether blood is something more than just a way of pumping oxygen around your body.
10+
and of course we’ll be learning some new vocabulary as well. now, neil, i have an interesting fact for you - did you know that many japanese popstars’ websites will feature their blood type alongside information like their age and hobbies?
11+
that’s all we have time for today. bye for now.
12+
but apart from customs and traditions, is there actually any science behind these beliefs?
13+
never mind, i’ll settle for being curious, stubborn and generous! in today’s programme we’ve been talking all about blood types and personalities. in japan, blood type a people are thought of as perfectionists - people who want everything to be perfect.
14+
ok, sam, we’ll find out the answer later. as we’ve heard, blood is a big deal in japan. marnie chesterton, from bbc world service programme, crowdscience, travelled to tokyo where she asked japanese translator, chie kobayashi, to explain more:
15+
ah, generous type os – like me. i always knew i was special… and curious and stubborn, wasn’t that the type o personality?
16+
oh yes, today’s quiz question was about blood type personalities. i asked you which undesirable blood type is considered selfish in japan.
17+
but it’s unfortunate blood type bs who have the least desirable personality – selfish and independent. “woe betide the type bs” remarks the presenter, marnie chesterton – an informal british expression said when there will be trouble ahead for someone – in this case, poor type bs!
18+
bye!
19+
Neil
20+
hello. this is 6 minute english from bbc learning english. i’m neil.
21+
hmm, lots of westerners don’t know their blood type, but in parts of asia blood groups are a topic of daily conversation. people select romantic partners based on blood type and different blood groups are associated with different personalities.
22+
sam
23+
Georgina
24+
which makes me wonder what exactly blood types are.
25+
those chemical markers can identify foreign bodies like pathogens - small organisms, such a virus or bacteria, that can cause disease. the variety of blood types seems to be a result of different bodily responses to different disease- causing pathogens.
26+
for blood type a, generally it is thought they are perfectionists, more detail- oriented, pretty much good at precise type jobs, and that makes them good at helping others and good at teamwork and respecting rules and customs. that’s a typical blood a type.
27+
Dina Newman
28+
i said a) blood type a.
29+
i’ll say a) blood type a.
30+
and explain why the same blood type is needed for a successful blood transfusion – the procedure in which blood is transferred from one person’s body to another during an operation.
31+
which explains why blood of the same type is needed in blood transfusions – medical procedures in which blood is taken from one person and put into another person’s body, often after an accident or during an operation.
32+
and explains the high demand for type o blood which can be given to anyone.
33+
ah, you mean the different groups used to classify humans by blood – types a, b, ab and o. i think i’m type o. how about you, neil?
34+
what blood type are you, sam?
35+
neil
36+
marnie chesterton
37+
40 percent of japan’s population are sensitive, anxious type as. 30 percent are curious and stubborn, generous type os. ten percent are creative abs. but woe betide the twenty percent type bs because they have a far less desirable personality, apparently.
38+
this contrasts with type os who are considered to be stubborn – people who are determined to do what they want and refuse to change their mind.
39+
and i’m sam.
40+
Doug Kirkpatrick
41+
unlike type os who are considered stubborn – determined to get their own way and unwilling to change.
42+
and woe betide selfish type bs – an informal expression said when there will be trouble for someone or if they will be punished for doing a particular thing.
43+
they also help identify foreign pathogens - small organisms, such a virus or bacteria, that can cause a disease.
44+
well, it may sound strange but actually i don’t know.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
2+
blood types are kinds of stickers or chemical markers which support our immune system - the organs, cells and processes which protect the human body from infection and illness.
3+
doug kirkpatrick
4+
well, not according to dr emma pomeroy of cambridge university’s archaeology department. she thinks that - like horoscopes – there’s no scientific basis for a connection between blood types and personalities.
5+
i didn’t, sam, but japanese culture is certainly interested in blood. there’s even a word ‘burahara’ meaning ‘blood harassment’, which is used to describe hostility towards people from a certain blood group considered to be selfish – but which group? that’s my quiz question for today – which blood types may fall victim to ‘burahara’? is it: a) blood type a? b) blood type b? or c) blood type o?
6+
according to japanese tradition, blood type as are perfectionists - people who want everything to be perfect and demand the highest standards possible.
7+
chie kobayashi
8+
scientifically speaking, blood types help support our immune system - the organs and cellular processes which protect the human body from infection.
9+
but as we’ve heard, it’s actually b) blood type b.
10+
in this programme we’ll be finding out all about blood – why humans have different blood types and whether blood is something more than just a way of pumping oxygen around your body.
11+
and of course we’ll be learning some new vocabulary as well. now, neil, i have an interesting fact for you - did you know that many japanese popstars’ websites will feature their blood type alongside information like their age and hobbies?
12+
dina newman
13+
that’s all we have time for today. bye for now.
14+
but apart from customs and traditions, is there actually any science behind these beliefs?
15+
never mind, i’ll settle for being curious, stubborn and generous! in today’s programme we’ve been talking all about blood types and personalities. in japan, blood type a people are thought of as perfectionists - people who want everything to be perfect.
16+
ok, sam, we’ll find out the answer later. as we’ve heard, blood is a big deal in japan. marnie chesterton, from bbc world service programme, crowdscience, travelled to tokyo where she asked japanese translator, chie kobayashi, to explain more:
17+
ah, generous type os – like me. i always knew i was special… and curious and stubborn, wasn’t that the type o personality?
18+
oh yes, today’s quiz question was about blood type personalities. i asked you which undesirable blood type is considered selfish in japan.
19+
georgina
20+
but it’s unfortunate blood type bs who have the least desirable personality – selfish and independent. “woe betide the type bs” remarks the presenter, marnie chesterton – an informal british expression said when there will be trouble ahead for someone – in this case, poor type bs!
21+
bye!
22+
Neil
23+
Onora O’Neill
24+
David Edmonds
25+
hello. this is 6 minute english from bbc learning english. i’m neil.
26+
hmm, lots of westerners don’t know their blood type, but in parts of asia blood groups are a topic of daily conversation. people select romantic partners based on blood type and different blood groups are associated with different personalities.
27+
sam
28+
which makes me wonder what exactly blood types are.
29+
those chemical markers can identify foreign bodies like pathogens - small organisms, such a virus or bacteria, that can cause disease. the variety of blood types seems to be a result of different bodily responses to different disease- causing pathogens.
30+
for blood type a, generally it is thought they are perfectionists, more detail- oriented, pretty much good at precise type jobs, and that makes them good at helping others and good at teamwork and respecting rules and customs. that’s a typical blood a type.
31+
i said a) blood type a.
32+
Rob
33+
i’ll say a) blood type a.
34+
and explain why the same blood type is needed for a successful blood transfusion – the procedure in which blood is transferred from one person’s body to another during an operation.
35+
which explains why blood of the same type is needed in blood transfusions – medical procedures in which blood is taken from one person and put into another person’s body, often after an accident or during an operation.
36+
and explains the high demand for type o blood which can be given to anyone.
37+
ah, you mean the different groups used to classify humans by blood – types a, b, ab and o. i think i’m type o. how about you, neil?
38+
what blood type are you, sam?
39+
neil
40+
marnie chesterton
41+
40 percent of japan’s population are sensitive, anxious type as. 30 percent are curious and stubborn, generous type os. ten percent are creative abs. but woe betide the twenty percent type bs because they have a far less desirable personality, apparently.
42+
this contrasts with type os who are considered to be stubborn – people who are determined to do what they want and refuse to change their mind.
43+
and i’m sam.
44+
unlike type os who are considered stubborn – determined to get their own way and unwilling to change.
45+
and woe betide selfish type bs – an informal expression said when there will be trouble for someone or if they will be punished for doing a particular thing.
46+
they also help identify foreign pathogens - small organisms, such a virus or bacteria, that can cause a disease.
47+
well, it may sound strange but actually i don’t know.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
i didn’t, sam, but japanese culture is certainly interested in blood. there’s even a word ‘burahara’ meaning ‘blood harassment’, which is used to describe hostility towards people from a certain blood group considered to be selfish – but which group? that’s my quiz question for today – which blood types may fall victim to ‘burahara’? is it: a) blood type a? b) blood type b? or c) blood type o?
3+
according to japanese tradition, blood type as are perfectionists - people who want everything to be perfect and demand the highest standards possible.
4+
dina newman
5+
that’s all we have time for today. bye for now.
6+
but apart from customs and traditions, is there actually any science behind these beliefs?
7+
never mind, i’ll settle for being curious, stubborn and generous! in today’s programme we’ve been talking all about blood types and personalities. in japan, blood type a people are thought of as perfectionists - people who want everything to be perfect.
8+
georgina
9+
but it’s unfortunate blood type bs who have the least desirable personality – selfish and independent. “woe betide the type bs” remarks the presenter, marnie chesterton – an informal british expression said when there will be trouble ahead for someone – in this case, poor type bs!
10+
Neil
11+
hello. this is 6 minute english from bbc learning english. i’m neil.
12+
hmm, lots of westerners don’t know their blood type, but in parts of asia blood groups are a topic of daily conversation. people select romantic partners based on blood type and different blood groups are associated with different personalities.
13+
which makes me wonder what exactly blood types are.
14+
onora o’neill
15+
Rob
16+
and explain why the same blood type is needed for a successful blood transfusion – the procedure in which blood is transferred from one person’s body to another during an operation.
17+
which explains why blood of the same type is needed in blood transfusions – medical procedures in which blood is taken from one person and put into another person’s body, often after an accident or during an operation.
18+
and explains the high demand for type o blood which can be given to anyone.
19+
david edmonds
20+
ah, you mean the different groups used to classify humans by blood – types a, b, ab and o. i think i’m type o. how about you, neil?
21+
what blood type are you, sam?
22+
neil
23+
this contrasts with type os who are considered to be stubborn – people who are determined to do what they want and refuse to change their mind.
24+
and woe betide selfish type bs – an informal expression said when there will be trouble for someone or if they will be punished for doing a particular thing.
25+
they also help identify foreign pathogens - small organisms, such a virus or bacteria, that can cause a disease.
26+
blood types are kinds of stickers or chemical markers which support our immune system - the organs, cells and processes which protect the human body from infection and illness.
27+
doug kirkpatrick
28+
rob
29+
well, not according to dr emma pomeroy of cambridge university’s archaeology department. she thinks that - like horoscopes – there’s no scientific basis for a connection between blood types and personalities.
30+
chie kobayashi
31+
scientifically speaking, blood types help support our immune system - the organs and cellular processes which protect the human body from infection.
32+
but as we’ve heard, it’s actually b) blood type b.
33+
in this programme we’ll be finding out all about blood – why humans have different blood types and whether blood is something more than just a way of pumping oxygen around your body.
34+
and of course we’ll be learning some new vocabulary as well. now, neil, i have an interesting fact for you - did you know that many japanese popstars’ websites will feature their blood type alongside information like their age and hobbies?
35+
ok, sam, we’ll find out the answer later. as we’ve heard, blood is a big deal in japan. marnie chesterton, from bbc world service programme, crowdscience, travelled to tokyo where she asked japanese translator, chie kobayashi, to explain more:
36+
ah, generous type os – like me. i always knew i was special… and curious and stubborn, wasn’t that the type o personality?
37+
Professor Colomina
38+
oh yes, today’s quiz question was about blood type personalities. i asked you which undesirable blood type is considered selfish in japan.
39+
Dr Vaidehi Tandel
40+
Kavita Puri
41+
bye!
42+
sam
43+
those chemical markers can identify foreign bodies like pathogens - small organisms, such a virus or bacteria, that can cause disease. the variety of blood types seems to be a result of different bodily responses to different disease- causing pathogens.
44+
for blood type a, generally it is thought they are perfectionists, more detail- oriented, pretty much good at precise type jobs, and that makes them good at helping others and good at teamwork and respecting rules and customs. that’s a typical blood a type.
45+
i said a) blood type a.
46+
i’ll say a) blood type a.
47+
marnie chesterton
48+
40 percent of japan’s population are sensitive, anxious type as. 30 percent are curious and stubborn, generous type os. ten percent are creative abs. but woe betide the twenty percent type bs because they have a far less desirable personality, apparently.
49+
and i’m sam.
50+
unlike type os who are considered stubborn – determined to get their own way and unwilling to change.
51+
well, it may sound strange but actually i don’t know.

0 commit comments

Comments
 (0)