protected void processKSFile(File file) throws IOException {
		soundPlaying = false;
		
		super.processKSFile(file, RouteParser.scenarioFileRename(this, file.getName())+".ks");
		
		if (lang != Language.EN) {
			//Postprocess: remove blank lines and merge lines that belong to a single sentence

			StringBuilder sb = new StringBuilder();
			StringBuilder string = new StringBuilder();
			
			String path = createOutputPath(file.getName());
			BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(path), "UTF-8"));
			String line;
			while ((line = in.readLine()) != null) {				
				if (line.startsWith("text ")) {
					String textPart = line.substring(5).trim();					

					if (textPart.length() > 0 && textPart.charAt(0) == 0x3000) {
						if (string.length() > 0) {
							sb.append("text ");
							sb.append(string);
							sb.append("\n");
							string.delete(0, string.length());
						}
					}
					string.append(textPart);
				} else {
					if (string.length() > 0) {
						sb.append("text ");
						sb.append(string);
						sb.append("\n");
						string.delete(0, string.length());
					}
					
					sb.append(line);
					sb.append("\n");
				}
			}
			in.close();
			
			FileUtil.write(new File(path), sb.toString());
		}
	}