Overview
Comment: | [Bugfix] Preprocessors did not quite work as well as they should have. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | release.0.14.1 |
Files: | files | file ages | folders |
SHA3-256: |
f45507d68a73cb39c0cfa696deec8cf2 |
User & Date: | Cthulhux on 2025-01-02 11:17:41 |
Other Links: | manifest | tags |
Context
2025-01-02
| ||
11:20 | warning Leaf check-in: d5079b8b35 user: Cthulhux tags: trunk | |
11:17 | [Bugfix] Preprocessors did not quite work as well as they should have. check-in: f45507d68a user: Cthulhux tags: release.0.14.1, trunk | |
2024-06-24
| ||
11:56 | [Bugfix] On macOS, groffstudio printed debug output where it shouldn't. Removed. check-in: dd6681cb4c user: Cthulhux tags: trunk | |
Changes
Modified CHANGES.txt from [ed8fa4857b] to [36ca62417c].
|
| | > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Version 0.14.1 2025-01-02 [Changed] New icon, slightly less awful. [Bugfix] On macOS, groffstudio printed debug output where it shouldn't. [Bugfix] Preprocessors did not quite work as well as they should have. ------------------------------- Version 0.14.0 2024-05-02 [Feature] On Windows, Ghostscript replaced pdfroff (thanks for testing @wysardry). |
︙ | ︙ |
Modified src/unit1.pas from [ac546c0910] to [ab132a4429].
︙ | ︙ | |||
392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 | {$ENDIF} end; procedure TMainForm.btnBuildClick(Sender: TObject); var buildSuccess: boolean; buildOpts: string; logFileName: string = ''; outputFileName: string; begin // Reset status display: MainStatusBar.Panels[1].Text := ''; BuildWindow := TBuildStatusWindow.Create(Application); BuildWindow.Show; // Build the parameters: buildOpts := 'groff'; // - Macro: if LeftStr(cmbMacro.Text, 1) = 'm' then buildOpts := buildOpts + ' -' + cmbMacro.Text; // - Enforce UTF-8: buildOpts := buildOpts + ' -Kutf8'; // - Preprocessors: | > | > | | | | | | 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 | {$ENDIF} end; procedure TMainForm.btnBuildClick(Sender: TObject); var buildSuccess: boolean; buildOpts: string; preproc: string; logFileName: string = ''; outputFileName: string; begin // Reset status display: MainStatusBar.Panels[1].Text := ''; BuildWindow := TBuildStatusWindow.Create(Application); BuildWindow.Show; // Build the parameters: buildOpts := 'groff'; // - Macro: if LeftStr(cmbMacro.Text, 1) = 'm' then buildOpts := buildOpts + ' -' + cmbMacro.Text; // - Enforce UTF-8: buildOpts := buildOpts + ' -Kutf8'; // - Preprocessors: if chkBoxPreprocessors.Checked[0] then preproc := preproc + 'chem | '; if chkBoxPreprocessors.Checked[1] then buildOpts := buildOpts + ' -e'; // eqn if chkBoxPreprocessors.Checked[2] then buildOpts := buildOpts + ' -g'; // grn if chkBoxPreprocessors.Checked[3] then buildOpts := buildOpts + ' -p'; // pic if chkBoxPreprocessors.Checked[4] then buildOpts := buildOpts + ' -R'; // refer if chkBoxPreprocessors.Checked[5] then buildOpts := buildOpts + ' -t'; // tbl if chkBoxExtras.Checked[0] then buildOpts := buildOpts + ' -mhdtbl'; // - PDF-specifics: {$IFNDEF WINDOWS} // On Windows, we use a two-step program: // 1) Output to PostScript, |
︙ | ︙ | |||
444 445 446 447 448 449 450 451 452 453 454 455 456 457 | buildOpts := buildOpts + ' ' + currentGroffFilePath; buildOpts := buildOpts + ' > ' + outputFileName; // - Log file: if chkLogFile.Checked then logFileName := currentGroffFilePath + '.log'; // Build: buildSuccess := BuildWindow.BuildDocument(buildOpts, logFileName); {$IFDEF WINDOWS} if buildSuccess and hasGhostscript and rdPdf.Checked then {$ELSE} // On non-Windows systems, Ghostscript is entirely optional. if buildSuccess and hasGhostscript and chkUseGhostscript.Checked and rdPdf.Checked then | > | 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 | buildOpts := buildOpts + ' ' + currentGroffFilePath; buildOpts := buildOpts + ' > ' + outputFileName; // - Log file: if chkLogFile.Checked then logFileName := currentGroffFilePath + '.log'; // Build: buildOpts := preproc + buildOpts; buildSuccess := BuildWindow.BuildDocument(buildOpts, logFileName); {$IFDEF WINDOWS} if buildSuccess and hasGhostscript and rdPdf.Checked then {$ELSE} // On non-Windows systems, Ghostscript is entirely optional. if buildSuccess and hasGhostscript and chkUseGhostscript.Checked and rdPdf.Checked then |
︙ | ︙ |