From c206364bff92101991d76280c31a8030b9d6044a Mon Sep 17 00:00:00 2001 From: "Silas S. Brown" <ssb22@cam.ac.uk> Date: Tue, 10 Nov 2009 12:13:15 +0000 Subject: [PATCH] Gradint update git-svn-id: http://svn.code.sf.net/p/e-guidedog/code/ssb22/gradint@439 29193198-4895-4776-b068-10539e920549 --- gradint-build/Makefile | 7 +- gradint-build/src/defaults.py | 160 ---------------------------------- 2 files changed, 4 insertions(+), 163 deletions(-) delete mode 100644 gradint-build/src/defaults.py diff --git a/gradint-build/Makefile b/gradint-build/Makefile index a03d6a6..1ab5f07 100644 --- a/gradint-build/Makefile +++ b/gradint-build/Makefile @@ -186,9 +186,9 @@ publish: $(All_Versions) ssh -i ~/.srcf/keyfile st0rage.org "cd eGuidedog/ssb22/gradint; screen -d -m /bin/bash -c '. build-sync.sh'" gradint-build.bgz: - mkdir ../gradint-build - cp -r * ../gradint-build - mv ../gradint-build gradint + mkdir ../gradint-build00 + cp -r * ../gradint-build00 + mv ../gradint-build00 gradint cd gradint; for N in *.py src/*.py Makefile; do if ! test $$N == src/top.py && ! test $$N == gradint.py; then (echo "# This file is part of the source code of";grep "^program_name" src/top.py|sed -e 's/[^"]*"//' -e 's/"//' -e 's/^/# /';grep "^# " src/top.py;cat $$N) > $$N-new; mv $$N-new $$N; fi; done; cd .. cd gradint ; make clean ; rm -rf extras ; cd .. tar -jcf gradint-build.bgz gradint/ @@ -217,5 +217,6 @@ CD: $(Mac_Files) gradint.zip cleanup: rm -f `find . -type f -name '*~' -o -name '*.pyc'` + rm -f src/defaults.py clean: cleanup rm -f gradint.py $(All_Versions) diff --git a/gradint-build/src/defaults.py b/gradint-build/src/defaults.py deleted file mode 100644 index 2278f6b..0000000 --- a/gradint-build/src/defaults.py +++ /dev/null @@ -1,160 +0,0 @@ -# This file is part of the source code of -# gradint v0.993 (c) 2002-2009 Silas S. Brown. GPL v3+. -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# This is the start of defaults.py - configuration defaults, automatically extracted from default settings.txt and advanced.txt, so user customisations don't have to be complete (helps with upgrades) -firstLanguage = "en" -secondLanguage = "zh" -outputFile = "" -compress_SH = False -outputFile_appendSilence = 0 -if outputFile.endswith("cdr"): outputFile_appendSilence = 5 -beepThreshold = 20 -startAnnouncement = None -endAnnouncement = None -commentsToAdd = None -orderlessCommentsToAdd = None -otherLanguages = ["cant","ko","jp"] -possible_otherLanguages = ["cant","ko","jp","en","zh"] -maxLenOfLesson = 30*60 -saveProgress = 1 -ask_teacherMode = 0 -maxNewWords = 5 -maxReviseBeforeNewWords = 3 -newInitialNumToTry = 5 -recentInitialNumToTry = 3 -newWordsTryAtLeast = 3 -knownThreshold = 5 -reallyKnownThreshold = 10 -meaningTestThreshold = 20 -randomDropThreshold = 14 -randomDropLevel = 0.67 -randomDropThreshold2 = 35 -randomDropLevel2 = 0.97 -shuffleConstant = 2.0 -transitionPromptThreshold = 10 -advancedPromptThreshold = 20 -transitionPromptThreshold2 = 2 -advancedPromptThreshold2 = 5 -limit_words = max(1,int(maxNewWords * 0.4)) -logFile = "log.txt" -briefInterruptLength = 10 -synth_priorities = "eSpeak MacOS SAPI" -extra_speech = [] -extra_speech_tofile = [] -sapiVoices = { -} -synthCache = "" -synthCache_test_mode = 0 -justSynthesize = "" -lily_file = "C:\\Program Files\\NeoSpeech\\Lily16\\data-common\\userdict\\userdict_chi.csv" -ptts_program = None -partialsDirectory = "partials" -betweenPhrasePause = 0.3 -partials_are_sporadic = 0 -partials_cache_file = "" -vocabFile = "vocab.txt" -samplesDirectory = "samples" -promptsDirectory = "samples"+os.sep+"prompts" -progressFile = "progress.txt" -progressFileBackup = "progress.bak" -pickledProgressFile = "progress.bin" -gui_output_directory = "output" -limit_filename = "!limit" -intro_filename = "_intro" -poetry_filename = "!poetry" -variants_filename = "!variants" -exclude_from_scan = "_disabled" -exclude_from_coverage = "z_try_again" -userNameFile="username.txt" -import_recordings_from = r"\My Documents" -max_extra_buttons = 12 -GUI_translations={ -"@variants-zh":[u"简体å—",u"ç¹é«”å—"], -"Word in %s":{"zh":u"%sè¯è¯","zh2":u"%s詞語"}, -"Meaning in %s":{"zh":u"%sæ„æ€"}, -"en":{"zh":u"英文"}, -"zh":{"zh":u"䏿–‡"}, -"press Control-V to paste":{"zh":u"剪贴: 打Ctrl+V","zh2":u"剪貼: 打Ctrl+V"}, -"press Apple-V to paste":{"zh":u"剪贴: 打苹果+V","zh2":u"剪貼: 打蘋果+V"}, -"Your first language":{"zh":u"ä½ çš„è¯è¨€","zh2":u"ä½ çš„èªžè¨€"}, -"second":{"zh":u"å¦ä¹ ","zh2":u"å¸ç¿’"}, -"Change languages":{"zh":u"改å˜è¯è¨€é€‰æ‹©","zh2":u"æ”¹è®Šèªžè¨€é¸æ“‡"}, -"Cancel lesson":{"zh":u"退出课","zh2":u"退出課"}, -"Manage word list":{"zh":u"管ç†è¯æ±‡","zh2":u"管ç†è©žåŒ¯"}, -"words in":{"zh":u"è¯, 用","zh2":u"詞, 用"}, -"new words in":{"zh":u"æ–°è¯, 用","zh2":u"新詞, 用"}, -"mins":{"zh":u"分钟","zh2":u"分é˜"}, -"Start lesson":{"zh":u"开始课","zh2":u"開始課"}, -"Clear test boxes":{"zh":u"扫清输入地方","zh2":u"掃清輸入地方"}, -"Quit":{"zh":u"放弃","zh2":u"放棄"}, -"Back to main menu":{"zh":u"回去主è¦é¡¹ç›®è¡¨","zh2":u"回去主è¦é …目表"}, -"Delete non-hanzi":{"zh":u"除å—éžæ±‰å—","zh2":u"除å—éžæ¼¢å—"}, -"Speak":{"zh":u"å‘音","zh2":u"發音"}, -"Add to %s":{"zh":u"åŠ åˆ°è¯æ±‡(%s)","zh2":u"åŠ åˆ°è©žåŒ¯(%s)"}, -"Recorded words":{"zh":u"录音è¯è¯","zh2":u"錄音詞語"}, -"To":{"zh":u"到"}, -"Make":{"zh":u"åš"}, -"Speaker":{"zh":u"扬声器","zh2":u"æšè²å™¨"}, -"Change or delete item":{"zh":u"æ›´æ¢/åˆ é™¤","zh2":u"æ›´æ›/刪除"}, -"You have not changed the test boxes. Do you want to delete %s?":{"zh":u"ä½ è¿˜æ²¡ç¼–è¾‘äº†ã€‚ä½ æƒ³åˆ é™¤%så—?","zh2":u"ä½ é‚„æ²’ç·¨è¼¯äº†ã€‚ä½ æƒ³åˆªé™¤%så—Ž?"}, -"Restore":{"zh":u"归还","zh2":u"æ¸é‚„"}, -"Hear this lesson again?":{"zh":u"冿¬¡å¬é‚£ä¸ªè¯¾å—?","zh2":u"冿¬¡è½é‚£å€‹èª²å—Ž?"}, -"Start this lesson again?":{"zh":u"冿¬¡å¼€å§‹è¿™ä¸ªè¯¾å—?","zh2":u"冿¬¡é–‹å§‹é€™å€‹èª²å—Ž?"}, -"You have %d words in your collection":{"zh":u"ä½ çš„æ±‡ç¼–æœ‰%dè¯","zh2":u"ä½ çš„å½™ç·¨æœ‰%d詞"}, -"%d new words + %d old words":{"zh":u"%dæ–°è¯è€Œ%dæ—§è¯","zh2":u"%d新詞而%d舊詞"}, -"minutes":{"zh":u"分钟","zh2":u"分é˜"}, -"seconds":{"zh":u"ç§’"}, -"Today's lesson teaches %d new words\nand revises %d old words\n\nPlaying time: %d %s %d %s":{"zh":u"今天我们å¦%dæ–°è¯è€Œå¤ä¹ %dæ—§è¯\n需è¦%d%s%d%s","zh2":u"今天我們å¸%d新詞而複習%d舊詞\n需è¦%d%s%d%s"}, -"Today we will learn %d words\nThis will require %d %s %d %s\nFollow the spoken instructions carefully":{"zh":u"今天我们å¦%dæ–°è¯, 需è¦%d%s%d%s\n请仔细å¬ä»Žå£å¤´æŒ‡ç¤º","zh2":u"今天我們å¸%d新詞, 需è¦%d%s%d%s\n請仔細è½å¾žå£é 指示"}, -"Family mode (multiple user)":{"zh":u"åŠ åˆ«çš„å¦ç”Ÿ(家人ç‰)","zh2":u"åŠ åˆ¥çš„å¸ç”Ÿ(家人ç‰)"}, -"Add new name":{"zh":u"åŠ åå—"}, -"Students":{"zh":u"å¦ç”Ÿ","zh2":u"å¸ç”Ÿ"}, -"Brief interrupt":{"zh":u"çŸæ‰“å²”"}, -"Resume":{"zh":u"æ¢å¤","zh2":u"æ¢å¾©"}, -"Emergency brief interrupt":{"zh":u"ç´§æ€¥çš„çŸæ‰“å²”","zh2":u"ç·Šæ€¥çš„çŸæ‰“å²”"}, -"Resuming...":{"zh":u"æ£åœ¨æ¢å¤...","zh2":u"æ£åœ¨æ¢å¾©..."}, -"Big print":{"zh":u"大å·å—体","zh2":u"大號å—é«”"}, -"Compressing, please wait":{"zh":u"æ£åœ¨åŽ‹ç¼©...","zh2":u"æ£åœ¨å£“縮..."}, -"All recordings have been compressed to MP3. Do you also want to make a ZIP file for sending as email?":{"zh":u"所有录音都压缩æˆä¸ºMP3了。 ä½ ä¹Ÿæƒ³åšä¸€ä¸ªZIP文件所以能éšemail附上å—?","zh2":u"所有錄音都壓縮æˆç‚ºMP3了。 ä½ ä¹Ÿæƒ³åšä¸€å€‹ZIP文件所以能隨email附上嗎?"}, -"Compress all recordings":{"zh":u"压缩一切录音","zh2":u"壓縮一切錄音"}, -"Play":{"zh":u"æ¼”"}, -"Re-record":{"zh":u"从新录音","zh2":u"從新錄音"}, -"(empty)":{"zh":u"(空虚)","zh2":u"(空虛)"}, -"Record":{"zh":u"录音","zh2":u"錄音"}, -"Add more words":{"zh":u"åŠ å¤šè¯","zh2":u"åŠ å¤šè©ž"}, -"New folder":{"zh":u"æ–°å·å®—"}, -"Stop":{"zh":u"åœæ¢"}, -"Action of spacebar during recording:":{"zh":u"ç©ºæ ¼é”®åœ¨å½•éŸ³çš„æ—¶å€™çš„åŠŸèƒ½:","zh2":u"ç©ºæ ¼éµåœ¨éŒ„音的時候的功能:"}, -"move down":{"zh":u"è¿›æ¥ä¸‹é¢"}, -"move along":{"zh":u"è¿›æ¥å³è¾¹","zh2":u"進æ¥å³é‚Š"}, -"stop":{"zh":u"åœæ¢"}, -"(Up)":{"zh":u"(上é¢)"}, -"Record from %s":{"zh":u"从%såšå½•音","zh2":u"從%såšéŒ„音"}, -"Record from file":{"zh":u"从文件åšå½•音","zh2":u"從文件åšéŒ„音"}, -"Manage recorded words using Gradint":{"zh":u"用这个软件管ç†å½•音","zh2":u"用這個軟件管ç†éŒ„音"}, -"Open the recorded words folder":{"zh":u"打开录音的å·å®—","zh2":u"打開錄音的å·å®—"}, - } -scriptVariants = {} -GUI_for_editing_only = 0 -GUI_omit_settings = 0 -GUI_omit_statusline = 0 -recorderMode = 0 -runInBackground = 0 -useTK = 1 -waitBeforeStart = 1 -startFunction = None -oss_sound_device = "" -soundVolume = 1 -saveLesson = "" -loadLesson = 0 -justSaveLesson = 0 -compress_progress_file = 0 -paranoid_file_management = 0 -once_per_day = 0 -- GitLab