aboutsummaryrefslogtreecommitdiff
path: root/devtools/create_bladerunner/subtitles/module.mk
diff options
context:
space:
mode:
authorThanasis Antoniou2019-03-09 13:57:00 +0200
committerThanasis Antoniou2019-03-09 13:59:59 +0200
commit5102af631d0ee3d22a4fdc079ee78d089f5dcf4a (patch)
tree1bcb9cc78d67c0a73e735a4b4f555a7ee75038be /devtools/create_bladerunner/subtitles/module.mk
parent949b9a0d91cb41c19cfc8223c7799c9d44582c63 (diff)
downloadscummvm-rg350-5102af631d0ee3d22a4fdc079ee78d089f5dcf4a.tar.gz
scummvm-rg350-5102af631d0ee3d22a4fdc079ee78d089f5dcf4a.tar.bz2
scummvm-rg350-5102af631d0ee3d22a4fdc079ee78d089f5dcf4a.zip
DEVTOOLS: Support xlsx extension for Blade Runner subtitles
If the englishTranscript.xls is not found, the englishTranscript.xlsx will be used instead Google sheets supports download to xlsx, so this addition was needed. Also tested the font tool with Pillows image library (PIL fork) which works ok, and updated README file.
Diffstat (limited to 'devtools/create_bladerunner/subtitles/module.mk')
-rw-r--r--devtools/create_bladerunner/subtitles/module.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/devtools/create_bladerunner/subtitles/module.mk b/devtools/create_bladerunner/subtitles/module.mk
index b882b098e0..acf8568fa0 100644
--- a/devtools/create_bladerunner/subtitles/module.mk
+++ b/devtools/create_bladerunner/subtitles/module.mk
@@ -10,6 +10,10 @@ BLADERUNNER_SUBTITLES_SAMPLE_INPUT_FOLDER := $(srcdir)/devtools/create_bladerunn
INTERMEDIATE_RESOURCE_FILES_UI := "OPTIONS.TRE" "DLGMENU.TRE" "SCORERS.TRE" "VK.TRE" "CLUES.TRE" "CRIMES.TRE" "ACTORS.TRE" "HELP.TRE" "AUTOSAVE.TRE" "ERRORMSG.TRE" "SPINDEST.TRE" "KIA.TRE" "KIACRED.TRE" "CLUETYPE.TRE" "ENDCRED.TRE" "POGO.TRE"
INTERMEDIATE_RESOURCE_FILES_SUBS := "INGQUO_E.TRE" "WSTLGO_E.TRE" "BRLOGO_E.TRE" "INTRO_E.TRE" "MW_A_E.TRE" "MW_B01_E.TRE" "MW_B02_E.TRE" "MW_B03_E.TRE" "MW_B04_E.TRE" "MW_B05_E.TRE" "INTRGT_E.TRE" "MW_D_E.TRE" "MW_C01_E.TRE" "MW_C02_E.TRE" "MW_C03_E.TRE" "END04A_E.TRE" "END04B_E.TRE" "END04C_E.TRE" "END06_E.TRE" "END01A_E.TRE" "END01B_E.TRE" "END01C_E.TRE" "END01D_E.TRE" "END01E_E.TRE" "END01F_E.TRE" "END03_E.TRE"
INPUT_TRANSCRIPT_FILENAME := englishTranscript.xls
+ifeq (,$(wildcard $(INPUT_TRANSCRIPT_FILENAME)))
+ INPUT_TRANSCRIPT_FILENAME := englishTranscript.xlsx
+endif
+
INPUT_TRANSCRIPT_AUX_CONF_FILENAME := configureFontsTranslation.txt
INPUT_FONT_GLYPHS_PNG_FILENAME := subtitlesFont.png
INPUT_FONT_GLYPHS_PNG_AUX_CONF_FILENAME := overrideEncodingSUBLTS.txt
@@ -43,7 +47,7 @@ $(TOOL_OUTPUT): $(FONT_OUTPUT) $(BLADERUNNER_SUBTITLES_SAMPLE_INPUT_FOLDER)/$(IN
$(info This process assumes that the folder: )
$(info $(BLADERUNNER_SUBTITLES_SAMPLE_INPUT_FOLDER))
$(info contains: )
- $(info *. $(INPUT_TRANSCRIPT_FILENAME) - an XLS (Excel) input file with the transcript)
+ $(info *. $(INPUT_TRANSCRIPT_FILENAME) - an XLS(X) (Excel) input file with the transcript)
$(info *. $(INPUT_TRANSCRIPT_AUX_CONF_FILENAME) - a TXT (text) input file with configuration settings for the transcript processing)
$(info If successful, a $(TOOL_OUTPUT) file will be created in your working directory)
$(info Please, copy this $(TOOL_OUTPUT) into your Blade Runner game directory!)