[gnome-getting-started-docs] Keyboard driven responses. Translation fixes.
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-getting-started-docs] Keyboard driven responses. Translation fixes.
- Date: Wed, 14 Nov 2012 16:42:54 +0000 (UTC)
commit 0e72ee7e0994bb984c865bfa3c46322597f6d9a6
Author: Jakub Steiner <jimmac gmail com>
Date: Wed Nov 14 17:41:34 2012 +0100
Keyboard driven responses. Translation fixes.
- had to tune other scenes too.
animation/gnome-launching-applications.blend | Bin 1685484 -> 1685484 bytes
animation/gnome-responding-to-messages.blend | Bin 2485396 -> 2692864 bytes
animation/gnome-responding-to-messages.py | 22 ++++++++++------------
animation/gnome-task-switching.blend | Bin 2608988 -> 2608988 bytes
animation/tex/avatar-jimmac.png | Bin 649 -> 572 bytes
animation/tex/avatar-vano.png | Bin 0 -> 677 bytes
getting-started/C/animation.xml | 7 ++++++-
7 files changed, 16 insertions(+), 13 deletions(-)
---
diff --git a/animation/gnome-launching-applications.blend b/animation/gnome-launching-applications.blend
index df5764d..37f9d97 100644
Binary files a/animation/gnome-launching-applications.blend and b/animation/gnome-launching-applications.blend differ
diff --git a/animation/gnome-responding-to-messages.blend b/animation/gnome-responding-to-messages.blend
index 26acb16..20e246b 100644
Binary files a/animation/gnome-responding-to-messages.blend and b/animation/gnome-responding-to-messages.blend differ
diff --git a/animation/gnome-responding-to-messages.py b/animation/gnome-responding-to-messages.py
index a36d4d6..10fb89d 100644
--- a/animation/gnome-responding-to-messages.py
+++ b/animation/gnome-responding-to-messages.py
@@ -1,4 +1,4 @@
-import bpy,os,re
+import bpy,os
from xml.etree import ElementTree as ET
def typewriteit(scene):
@@ -13,9 +13,14 @@ def typewriteit(scene):
j = int((bpy.context.scene.frame_current-640)/2)
else:
j = 0
+ if bpy.context.scene.frame_current >= 1024:
+ k = int((bpy.context.scene.frame_current-1024)/2)
+ else:
+ k = 0
#print(typewrite, i, typewrite[:i])
bpy.data.objects['bubble.response'].data.body = typewrite[:i]
- bpy.data.objects['mt.bubble.response'].data.body = typewrite2[:j]
+ bpy.data.objects['bubble.response2'].data.body = typewrite2[:j]
+ bpy.data.objects['bubble.response3'].data.body = typewrite3[:k]
def render(lang):
#bpy.context.scene.render.resolution_percentage =
@@ -29,15 +34,7 @@ def render(lang):
bpy.ops.render.render(animation=True)
else:
print('already rendered')
- transcodepath = "../getting-started/" + lang + "/figures/"
- regexobj = re.search(r"^(.*\/)(.*)-(\d*)-(\d*)(\.avi)$", bpy.context.scene.render.frame_path())
- webmfile = regexobj.group(2) + ".webm"
- transcodecmd = "ffmpeg -y -i " + bpy.context.scene.render.frame_path() + " -b:v 8000k " + transcodepath + webmfile
- if (not os.path.isfile(transcodepath+webmfile)):
- os.system(transcodecmd)
- else:
- print('already transcoded',transcodepath + webmfile)
-
+
#translates strings and calls render
def main():
global typewrite
@@ -53,7 +50,8 @@ def main():
if textobj.get('id') in bpy.data.objects: #prelozit jestli existuje jako index
bpy.data.objects[textobj.get('id')].data.body = textobj.text
bpy.data.objects['typewriter'].data.body = t[lang].find('t[ id="bubble.response"]').text
- bpy.data.objects['typewriter2'].data.body = t[lang].find('t[ id="bubble.response"]').text
+ bpy.data.objects['typewriter2'].data.body = t[lang].find('t[ id="bubble.response2"]').text
+ bpy.data.objects['typewriter3'].data.body = t[lang].find('t[ id="bubble.response3"]').text
bpy.data.objects['user.mt.bubble'].data.body = bpy.data.objects['user'].data.body #needs to be left aligned :/
render(lang)
diff --git a/animation/gnome-task-switching.blend b/animation/gnome-task-switching.blend
index b082993..94af0f1 100644
Binary files a/animation/gnome-task-switching.blend and b/animation/gnome-task-switching.blend differ
diff --git a/animation/tex/avatar-jimmac.png b/animation/tex/avatar-jimmac.png
index 0cf4185..331c41c 100644
Binary files a/animation/tex/avatar-jimmac.png and b/animation/tex/avatar-jimmac.png differ
diff --git a/animation/tex/avatar-vano.png b/animation/tex/avatar-vano.png
new file mode 100644
index 0000000..ac17eb5
Binary files /dev/null and b/animation/tex/avatar-vano.png differ
diff --git a/getting-started/C/animation.xml b/getting-started/C/animation.xml
index b16cfc2..18f8351 100644
--- a/getting-started/C/animation.xml
+++ b/getting-started/C/animation.xml
@@ -5,9 +5,10 @@
<t id='title-respond'>Responding to Messages</t>
<t id='title-MT'>Delayed Response</t>
<t id='activities'>Activities</t>
-<t id='return'>return</t>
+<t id='enter'>Enter</t>
<t id='alt'>alt</t>
<t id='tab'>tab</t>
+<t id='esc'>Esc</t>
<t id='search'>help</t>
<t id='search2'>web</t>
<t id='title-justtype'>Just start typingâ</t>
@@ -18,4 +19,8 @@
<t id='select'>Select</t>
<t id='bubble.message'>Ready for the meeting?</t>
<t id='bubble.response'>I'll be there in a sec...</t>
+<t id='bubble.message2'>Good stuff, thanks again</t>
+<t id='bubble.response2'>Thanks for the support</t>
+<t id='bubble.message3'>No worries.</t>
+<t id='bubble.response3'>Too kind.</t>
</titles>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]