FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 484f0024 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@1464 29193198-4895-4776-b068-10539e920549
parent d67b92f6
No related branches found
No related tags found
No related merge requests found
ssb22@Silass-Mac-mini.local.236
\ No newline at end of file
......@@ -88,8 +88,10 @@ del fname2txt # now 'generating' maps (txt,lang) to 1 or filename
def getTxtLang(s):
if '!synth:' in s and "_" in s: return gradint.textof(s).decode('utf-8'),gradint.languageof(s)
elif s.endswith(gradint.extsep+"txt"): return gradint.readText(s).decode('utf-8'), gradint.languageof(s)
else: return None,None
elif s.endswith(gradint.extsep+"txt"):
langToSynth = gradint.languageof(s)
if langToSynth==languageToCache: return gradint.readText(s).decode('utf-8'), langToSynth # else don't bother reading the file (it might be over ftpfs)
return None,None
def decache(s):
textToSynth,langToSynth = getTxtLang(s)
......
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