Skip to content

Commit

Permalink
#17 in progress - subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
mjureczko committed Aug 14, 2024
1 parent 2928e1f commit 614796b
Show file tree
Hide file tree
Showing 16 changed files with 901 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ internal class ReportCommemorativePhotosTest : ReportAbstractTest() {
treasuresProgress.commemorativePhotosByTreasuresDescriptionIds.put(2, tempPhoto(600, 600))
storageHelper.save(treasuresProgress)
StorageHelper(context).save(Route(treasuresProgress.routeName))
// model.initialize(context, null, treasuresProgress)
val reportPhotos = ReportCommemorativePhotos(createFacebookViewModel().state.value, font, seed)

//when
Expand All @@ -62,7 +61,6 @@ internal class ReportCommemorativePhotosTest : ReportAbstractTest() {
treasuresProgress.commemorativePhotosByTreasuresDescriptionIds.put(3, tempPhoto(400, 800))
treasuresProgress.commemorativePhotosByTreasuresDescriptionIds.put(4, tempPhoto(600, 500))
storageHelper.save(treasuresProgress)
// model.initialize(context, null, treasuresProgress)
val reportPhotos = ReportCommemorativePhotos(createFacebookViewModel().state.value, font, seed)

//when
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ class ReportGeneratorTest {

//when
val model = FacebookViewModel(StorageHelper(context), context.resources, StandardTestDispatcher())
// //SavedStateHandle(mapOf()))
// model.initialize(context, hunterPath, treasuresProgress)
// //MapBox doesn't work in tests
var state = model.state.value
val mapIdx = state.elements.indices.find { state.elements[it].type == Type.MAP }!!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class ReportMapSummaryTest : ReportAbstractTest() {
hunterPath.addLocation(Coordinates(10.0, 10.0), Date(1))
hunterPath.addLocation(Coordinates(10.0, 11.0), Date(1_000_000))
hunterPath.addLocation(Coordinates(10.0, 11.0), Date(2_000_000))
// model.initialize(context, hunterPath, treasuresProgress)
saveEmptyProgress()
storageHelper.save(hunterPath)
val reportMapHeader = ReportMapSummary(createFacebookViewModel().state.value, font)
Expand Down
24 changes: 12 additions & 12 deletions app/src/kalinowice/assets/custom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<tipFileName>tip_02.m4a</tipFileName>
<qrCode>k01002</qrCode>
<movieFileName>kalinowice_02.mp4</movieFileName>
<subtitlesFileName>en_01.srt</subtitlesFileName>
<subtitlesFileName>en_02.srt</subtitlesFileName>
</treasureDescription>
<treasureDescription>
<!--dąbrówka-->
Expand All @@ -32,7 +32,7 @@
<tipFileName>sound_ddaa89a4-2925-45a1-a5a1-93f72c04aeff.3gp</tipFileName>
<qrCode>k01003</qrCode>
<movieFileName>kalinowice_03.mp4</movieFileName>
<subtitlesFileName>en_01.srt</subtitlesFileName>
<subtitlesFileName>en_03.srt</subtitlesFileName>
</treasureDescription>
<treasureDescription>
<!--dzwonek zmarłych-->
Expand All @@ -43,7 +43,7 @@
<tipFileName>sound_ddaa89a4-2925-45a1-a5a1-93f72c04aeff.3gp</tipFileName>
<qrCode>k01004</qrCode>
<movieFileName>kalinowice_04.mp4</movieFileName>
<subtitlesFileName>en_01.srt</subtitlesFileName>
<subtitlesFileName>en_04.srt</subtitlesFileName>
</treasureDescription>
<treasureDescription>
<!-- kapliczka u Nieszwieca-->
Expand All @@ -54,7 +54,7 @@
<tipFileName>sound_ddaa89a4-2925-45a1-a5a1-93f72c04aeff.3gp</tipFileName>
<qrCode>k01005</qrCode>
<movieFileName>kalinowice_05.mp4</movieFileName>
<subtitlesFileName>en_01.srt</subtitlesFileName>
<subtitlesFileName>en_05.srt</subtitlesFileName>
</treasureDescription>
<treasureDescription>
<!-- kopaczka -->
Expand All @@ -65,7 +65,7 @@
<tipFileName>tip_06.m4a</tipFileName>
<qrCode>k01006</qrCode>
<movieFileName>kalinowice_06.mp4</movieFileName>
<subtitlesFileName>en_01.srt</subtitlesFileName>
<subtitlesFileName>en_06.srt</subtitlesFileName>
</treasureDescription>
<treasureDescription>
<!-- krzyż przy wiejskiej -->
Expand All @@ -76,7 +76,7 @@
<tipFileName>tip_07.m4a</tipFileName>
<qrCode>k01007</qrCode>
<movieFileName>kalinowice_07.mp4</movieFileName>
<subtitlesFileName>en_01.srt</subtitlesFileName>
<subtitlesFileName>en_07.srt</subtitlesFileName>
</treasureDescription>
<treasureDescription>
<!-- lipa -->
Expand All @@ -87,7 +87,7 @@
<tipFileName>sound_72686712-ceb1-40b6-a420-2d4016bf3872.3gp</tipFileName>
<qrCode>k01008</qrCode>
<movieFileName>kalinowice_08.mp4</movieFileName>
<subtitlesFileName>en_01.srt</subtitlesFileName>
<subtitlesFileName>en_08.srt</subtitlesFileName>
</treasureDescription>
<treasureDescription>
<!-- miłorząb -->
Expand All @@ -98,7 +98,7 @@
<tipFileName>sound_72686712-ceb1-40b6-a420-2d4016bf3872.3gp</tipFileName>
<qrCode>k01009</qrCode>
<movieFileName>kalinowice_09.mp4</movieFileName>
<subtitlesFileName>en_01.srt</subtitlesFileName>
<subtitlesFileName>en_09.srt</subtitlesFileName>
</treasureDescription>
<treasureDescription>
<!-- Oko opatrzności -->
Expand All @@ -109,7 +109,7 @@
<tipFileName>sound_72686712-ceb1-40b6-a420-2d4016bf3872.3gp</tipFileName>
<qrCode>k01010</qrCode>
<movieFileName>kalinowice_10.mp4</movieFileName>
<subtitlesFileName>en_01.srt</subtitlesFileName>
<subtitlesFileName>en_10.srt</subtitlesFileName>
</treasureDescription>
<treasureDescription>
<!-- plac zabaw -->
Expand All @@ -120,7 +120,7 @@
<tipFileName>sound_72686712-ceb1-40b6-a420-2d4016bf3872.3gp</tipFileName>
<qrCode>k01011</qrCode>
<movieFileName>kalinowice_11.mp4</movieFileName>
<subtitlesFileName>en_01.srt</subtitlesFileName>
<subtitlesFileName>en_11.srt</subtitlesFileName>
</treasureDescription>
<treasureDescription>
<!-- Stary cmentarz -->
Expand All @@ -131,7 +131,7 @@
<tipFileName>tip_12.m4a</tipFileName>
<qrCode>k01012</qrCode>
<movieFileName>kalinowice_12.mp4</movieFileName>
<subtitlesFileName>en_01.srt</subtitlesFileName>
<subtitlesFileName>en_12.srt</subtitlesFileName>
</treasureDescription>
<treasureDescription>
<!-- Szkoła -->
Expand All @@ -142,7 +142,7 @@
<tipFileName>tip_13.m4a</tipFileName>
<qrCode>k01013</qrCode>
<movieFileName>kalinowice_13.mp4</movieFileName>
<subtitlesFileName>en_01.srt</subtitlesFileName>
<subtitlesFileName>en_13.srt</subtitlesFileName>
</treasureDescription>

</treasures>
Expand Down
63 changes: 63 additions & 0 deletions app/src/kalinowice/assets/en_02.srt
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
1
00:00:00,300 --> 00:00:04,900
Does Kalinowice have a resident who visits Africa every year?

2
00:00:05,000 --> 00:00:07,900
Of course, it's our stork!

3
00:00:08,000 --> 00:00:10,900
Storks are birds that fly to warm countries for the winter

4
00:00:11,000 --> 00:00:13,900
They spend the coldest months in Egypt

5
00:00:14,000 --> 00:00:16,900
and if they have the inclination to travel further

6
00:00:17,000 --> 00:00:20,900
they can reach Uganda, Ethiopia, Nigeria, Sudan

7
00:00:21,000 --> 00:00:22,900
or even South Africa

8
00:00:23,000 --> 00:00:24,900
Take a look at our stork

9
00:00:25,000 --> 00:00:27,900
does he look like a fan of long journeys?

10
00:00:28,000 --> 00:00:30,900
There is also an interesting story behind the nest itself

11
00:00:31,000 --> 00:00:33,900
It was originally located in a barn

12
00:00:34,000 --> 00:00:36,900
that was destroyed by fire

13
00:00:37,000 --> 00:00:39,400
However, the inhabitants of Kalinowice

14
00:00:39,500 --> 00:00:40,900
were so attached to the stork

15
00:00:41,000 --> 00:00:43,900
that they moved its nest to a pole

16
00:00:44,000 --> 00:00:46,900
where it is located to this day
75 changes: 75 additions & 0 deletions app/src/kalinowice/assets/en_03.srt
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
1
00:00:00,300 --> 00:00:01,900
We are in Dąbrowa

2
00:00:02,000 --> 00:00:03,900
a pre-war farm

3
00:00:04,000 --> 00:00:06,900
The object may seem inconspicuous

4
00:00:07,000 --> 00:00:09,900
but history has left a dramatic mark on it

5
00:00:10,000 --> 00:00:13,900
According to some, tragic events took place here

6
00:00:14,000 --> 00:00:15,900
during the Silesian Uprising

7
00:00:16,000 --> 00:00:17,900
A unit of scouts - insurgents

8
00:00:18,000 --> 00:00:18,900
died here

9
00:00:19,000 --> 00:00:20,900
and their bodies were drowned

10
00:00:21,000 --> 00:00:22,900
in one of the farm wells

11
00:00:23,000 --> 00:00:24,900
After the war

12
00:00:24,000 --> 00:00:27,900
a unit of Hubertus' Black Wolves - Hitler's last soldiers

13
00:00:28,000 --> 00:00:29,900
found shelter here

14
00:00:30,000 --> 00:00:32,900
German partisans who led a terrorist fight

15
00:00:33,000 --> 00:00:35,900
immediately after World War II

16
00:00:36,000 --> 00:00:40,900
Here they tried to organize a secret weapons warehouse

17
00:00:41,000 --> 00:00:42,900
But there is nothing to fear

18
00:00:43,000 --> 00:00:46,900
the members of the organization were arrested a long time ago

19
00:00:47,000 --> 00:00:49,900
and the military equipment was removed from here
39 changes: 39 additions & 0 deletions app/src/kalinowice/assets/en_04.srt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
1
00:00:00,300 --> 00:00:01,900
In old times

2
00:00:02,000 --> 00:00:04,900
the life cycle of village inhabitants was determined by prayers

3
00:00:05,000 --> 00:00:07,900
Since few people had a watch back then

4
00:00:08,000 --> 00:00:11,900
bells calling for prayer were needed

5
00:00:12,000 --> 00:00:15,900
The bell visible here is a remnant of those times

6
00:00:16,000 --> 00:00:23,900
To this day, he calls for the Angelus at 6, 12 and 6 p.m.

7
00:00:24,000 --> 00:00:26,900
The inhabitants know it as the bell of the dead

8
00:00:27,000 --> 00:00:29,900
This is because it also rings with a call

9
00:00:30,000 --> 00:00:31,900
to pray for the souls of inhabitants

10
00:00:32,000 --> 00:00:34,900
who have passed away from this world
59 changes: 59 additions & 0 deletions app/src/kalinowice/assets/en_05.srt
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
1
00:00:00,300 --> 00:00:03,900
Have you heard about the Swedish Deluge?

2
00:00:04,000 --> 00:00:05,900
Despite what the name might suggest

3
00:00:06,000 --> 00:00:07,900
it was a terrible war

4
00:00:08,000 --> 00:00:10,900
that took place nearly 400 years ago

5
00:00:11,000 --> 00:00:12,900
It claimed many victims

6
00:00:13,000 --> 00:00:14,900
and the shrine visible here

7
00:00:15,000 --> 00:00:16,900
is intended to perpetuate their memory

8
00:00:17,000 --> 00:00:18,900
It is also worth mentioning

9
00:00:19,000 --> 00:00:23,900
that a town called Gorzowy was located somewhere in the fields here

10
00:00:24,000 --> 00:00:25,900
During the military operations

11
00:00:26,000 --> 00:00:27,900
it burned down completely

12
00:00:28,000 --> 00:00:29,900
and now it is not certain

13
00:00:30,000 --> 00:00:32,900
where exactly the buildings were located

14
00:00:33,000 --> 00:00:35,900
Maybe one of you will become an archaeologist one day

15
00:00:36,000 --> 00:00:38,900
and will be able to find its trace
Loading

0 comments on commit 614796b

Please sign in to comment.