FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 22be8df5 authored by Silas S. Brown's avatar Silas S. Brown
Browse files

Gradint update

git-svn-id: http://svn.code.sf.net/p/e-guidedog/code/ssb22/gradint@1326 29193198-4895-4776-b068-10539e920549
parent ee973237
No related branches found
No related tags found
No related merge requests found
...@@ -226,7 +226,7 @@ publish0: $(All_Versions) gradint.py ...@@ -226,7 +226,7 @@ publish0: $(All_Versions) gradint.py
grep ^program_name < src/top.py|head -1|sed -e 's/.*radint v/v/' -e 's/ .*/./' > ~/public_html/gradint/latest-version.txt grep ^program_name < src/top.py|head -1|sed -e 's/.*radint v/v/' -e 's/ .*/./' > ~/public_html/gradint/latest-version.txt
make clean make clean
~/homepage/update ~/homepage/update
ssh -i ~/.srcf/keyfile st0rage.org "cd eGuidedog/ssb22/gradint; screen -d -m /bin/bash -c '. build-sync.sh'" ssh -i ~/.srcf/keyfile ssh.st0rage.org "cd eGuidedog/ssb22/gradint; screen -d -m /bin/bash -c '. build-sync.sh'"
publish: publish:
# do it from /tmp so as to avoid confusing HomeSync if ssh'ing in from a PWF Mac # do it from /tmp so as to avoid confusing HomeSync if ssh'ing in from a PWF Mac
......
...@@ -266,7 +266,7 @@ def parseSynthVocab(fname,forGUI=0): ...@@ -266,7 +266,7 @@ def parseSynthVocab(fname,forGUI=0):
elif l2.startswith("limit off"): doLimit = 0 elif l2.startswith("limit off"): doLimit = 0
elif l2.startswith("begin poetry"): doPoetry,lastPromptAndWord,disablePoem = True,None,False elif l2.startswith("begin poetry"): doPoetry,lastPromptAndWord,disablePoem = True,None,False
elif l2.startswith("end poetry"): doPoetry = lastPromptAndWord = None elif l2.startswith("end poetry"): doPoetry = lastPromptAndWord = None
elif l2.startswith("poetry vocab line:"): doPoetry,lastPromptAndWord = 0,cond(lastPromptAndWord,lastPromptAndWord,0) # not None, in case we're at the very start of a poem (see "just processed"... at end) elif l2.startswith("poetry vocab line"): doPoetry,lastPromptAndWord = 0,cond(lastPromptAndWord,lastPromptAndWord,0) # not None, in case we're at the very start of a poem (see "just processed"... at end)
else: canProcess=1 else: canProcess=1
if not canProcess: continue if not canProcess: continue
elif "#" in l and l.strip(wsp)[0]=='#': continue # guard condition '"#" in l' improves speed elif "#" in l and l.strip(wsp)[0]=='#': continue # guard condition '"#" in l' improves speed
...@@ -324,7 +324,7 @@ def parseSynthVocab(fname,forGUI=0): ...@@ -324,7 +324,7 @@ def parseSynthVocab(fname,forGUI=0):
if doLimit: limitedFiles[f]="synth:"+str(limitNo) if doLimit: limitedFiles[f]="synth:"+str(limitNo)
if doPoetry: lastPromptAndWord = [prompt_L1only,f] if doPoetry: lastPromptAndWord = [prompt_L1only,f]
elif doPoetry: disablePoem=1 # if one of the lines can't be synth'd, disable the rest of the poem (otherwise get wrongly connected lines, disconnected lines, or re-introduction of isolated lines that were previously part of a poem but can't be synth'd on this platform) elif doPoetry: disablePoem=1 # if one of the lines can't be synth'd, disable the rest of the poem (otherwise get wrongly connected lines, disconnected lines, or re-introduction of isolated lines that were previously part of a poem but can't be synth'd on this platform)
if not lastPromptAndWord==None: doPoetry = 1 # just processed a "poetry vocab line:" (lastPromptAndWord is either the real last prompt and word, or 0 if we were at the start) if not lastPromptAndWord==None: doPoetry = 1 # just processed a "poetry vocab line" (lastPromptAndWord is either the real last prompt and word, or 0 if we were at the start)
return ret return ret
def sanitise_otherLanguages(): def sanitise_otherLanguages():
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
# quotes) on a line by itself, and the line immediately under it will be # quotes) on a line by itself, and the line immediately under it will be
# interpreted normally without being linked into the poem. This is useful # interpreted normally without being linked into the poem. This is useful
# for setting relevant vocabulary to be introduced part-way through learning # for setting relevant vocabulary to be introduced part-way through learning
# the poem. # the poem. (In recent versions of Gradint the colon can be omitted.)
# #
# If you have recordings in one language and you want the # If you have recordings in one language and you want the
# equivalents in another language to be synthesized, you can # equivalents in another language to be synthesized, you can
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment