diff options
author | Thanasis Antoniou | 2019-06-17 23:22:22 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-06-18 00:10:36 +0300 |
commit | 2a43f71ee2e407dbb64b1b9010d719215637fa9a (patch) | |
tree | ae58bddb1468b8bd599ce690c0f7137950fcbdae /devtools/create_bladerunner/subtitles/mixResourceCreator | |
parent | a060d35418e27aa6af7eaf45aca78d2b993e1561 (diff) | |
download | scummvm-rg350-2a43f71ee2e407dbb64b1b9010d719215637fa9a.tar.gz scummvm-rg350-2a43f71ee2e407dbb64b1b9010d719215637fa9a.tar.bz2 scummvm-rg350-2a43f71ee2e407dbb64b1b9010d719215637fa9a.zip |
DEVTOOLS: BLADERUNNER: Quick guide for transcriptions
Also minor improvements in the python scripts
Made audio links working again with LibreOffice Calc and added a subtitles version sheet in the python script that creates the Excel document and the audio links
Diffstat (limited to 'devtools/create_bladerunner/subtitles/mixResourceCreator')
-rw-r--r-- | devtools/create_bladerunner/subtitles/mixResourceCreator/packBladeRunnerMIXFromPCTLKXLS04.py | 8 | ||||
-rw-r--r-- | devtools/create_bladerunner/subtitles/mixResourceCreator/subtlsVersTextResource.py | 44 |
2 files changed, 6 insertions, 46 deletions
diff --git a/devtools/create_bladerunner/subtitles/mixResourceCreator/packBladeRunnerMIXFromPCTLKXLS04.py b/devtools/create_bladerunner/subtitles/mixResourceCreator/packBladeRunnerMIXFromPCTLKXLS04.py index 2febd3576c..f7d77e29a2 100644 --- a/devtools/create_bladerunner/subtitles/mixResourceCreator/packBladeRunnerMIXFromPCTLKXLS04.py +++ b/devtools/create_bladerunner/subtitles/mixResourceCreator/packBladeRunnerMIXFromPCTLKXLS04.py @@ -114,6 +114,9 @@ if (not osLibFound) \ sys.stdout.write("[Error] Errors were found when trying to import required python libraries\n") sys.exit(1) +pathToParent = os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir) +pathToCommon = os.path.join(pathToParent, "common") +sys.path.append(pathToCommon) from os import path from xlrd import * @@ -122,7 +125,7 @@ from struct import * from subtlsVersTextResource import * COMPANY_EMAIL = "classic.adventures.in.greek@gmail.com" -APP_VERSION = "1.00" +APP_VERSION = "1.10" APP_NAME = "packBladeRunnerMIXFromPCTLKXLS" APP_WRAPPER_NAME = "mixResourceCreator.py" APP_NAME_SPACED = "Blade Runner MIX Resource Creator" @@ -176,7 +179,8 @@ SUPPORTED_TRANSLATION_SHEETS = [('OPTIONS.TR', 'KIA6PT'), # TODO we probably could skip importing ERRORMSG.TRx (to SUBTITLES.MIX) altogether, since translating that has no point! In that case SYSTEM.FON should be removed from here since it's currently of no use otherwise and support for it is not really required. SUPPORTED_OTHER_FILES_FOR_MIX = [DEFAULT_SUBTITLES_FONT_NAME, 'KIA6PT.FON', 'TAHOMA18.FON', 'TAHOMA24.FON', 'SYSTEM.FON'] -SUPPORTED_LANGUAGES_DESCRIPTION_CODE_TLIST = [('EN_ANY', 'E', 'English'), ('DE_DEU', 'G', 'German'), ('FR_FRA', 'F', 'French'), ('IT_ITA', 'I', 'Italian'), ('ES_ESP', 'S', 'Spanish'), ('RU_RUS', 'R', 'Russian'), ('EFIGS', '#', 'EFIGS')] +# v1.10: Russian code (RU_RUS) now corresponds to 'E' suffix instead of 'R' since the unofficial Russian version supported uses the English resources without renaming them, and this is how the ScummVM engine handles that version currently. +SUPPORTED_LANGUAGES_DESCRIPTION_CODE_TLIST = [('EN_ANY', 'E', 'English'), ('DE_DEU', 'G', 'German'), ('FR_FRA', 'F', 'French'), ('IT_ITA', 'I', 'Italian'), ('ES_ESP', 'S', 'Spanish'), ('RU_RUS', 'E', 'Russian'), ('EFIGS', '#', 'EFIGS')] DEFAULT_LANG_DESC_CODE = SUPPORTED_LANGUAGES_DESCRIPTION_CODE_TLIST[0] DEFAULT_TARGET_ENCODING_PER_FONT = [(SUBTITLES_FONT_NAME_CATEGORY, WINDOWS_1252_ENCODING), ('KIA6PT', 'cp437'), ('TAHOMA', 'cp437'), ('SYSTEM', 'latin-1')] diff --git a/devtools/create_bladerunner/subtitles/mixResourceCreator/subtlsVersTextResource.py b/devtools/create_bladerunner/subtitles/mixResourceCreator/subtlsVersTextResource.py deleted file mode 100644 index a372bab1a5..0000000000 --- a/devtools/create_bladerunner/subtitles/mixResourceCreator/subtlsVersTextResource.py +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env python -# -*- coding: UTF-8 -*- -# - -my_module_version = "1.00" -my_module_name = "subtlsVersTextResource" - -# Template for SBTLVERS.TRE sheet's values ((row 2 and below) -SBTLVERS_TEXT_RESOURCE_TUPLE_LIST = [ - (0, "ScummVM Team", "Credits"), - (1, "2", "Version (an incremental number)"), - (2, "##:##:## ##/##/####", "Placeholder – Date of compilation (HH:mm:ss dd/mm/yyyy)"), - (3, "EFIGS", "Placeholder – Language mode") - ] -# -# -# -class sbtlVersTextResource: - m_traceModeEnabled = True - # traceModeEnabled is bool to enable more printed debug messages - def __init__(self, traceModeEnabled = True): - self.m_traceModeEnabled = traceModeEnabled - return - - def printSbtlVersTemplate(self): - for (idTre, textTre) in SBTLVERS_TEXT_RESOURCE_TUPLE_LIST: - print "%s\t%s" % (idTre, textTre) - return - - def getSbtlVersEntriesList(self): - return SBTLVERS_TEXT_RESOURCE_TUPLE_LIST - -if __name__ == '__main__': - # main() - print "[Debug] Running %s as main module" % (my_module_name) - traceModeEnabled = False - sbtlVersTRInstance = sbtlVersTextResource(traceModeEnabled) - sbtlVersTRInstance.printSbtlVersTemplate() - -else: - #debug - #print "[Debug] Running %s imported from another module" % (my_module_name) - pass -
\ No newline at end of file |