FOLDER="alnik"
SEGMENTS=$(ls $FOLDER/seg*.ogg)
#echo $SEGMENTS

for SEGMENT in $SEGMENTS; do

SEGMENT_BN=$(basename $SEGMENT .ogg)

echo "
<style>
	::cue{
		font-size: 16px;
		background-color: transparent;
		color: black;
		font-weight: bold;
		padding: 1em;
		margin-bottom: 1em;
		line-height: 1.5;
	}
</style>
<figure style=\"display:inline-block;\">
<video controls src=\"$SEGMENT\">
<track default kind=\"captions\" src=\"$FOLDER/$SEGMENT_BN.vtt\" srclang=\"en\" />
</video>
<figcaption>$SEGMENT</figcaption>
</figure>
"

done
