Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Added -printLineSpace. Corrected -printHeaderSize. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
36ea02471323c34284652d01d920b987 |
User & Date: | peter 2023-04-26 12:02:15.992 |
Context
2023-04-27
| ||
19:49 | Serialization of vfs check-in: 20adbf74ea user: peter tags: trunk | |
2023-04-26
| ||
12:02 | Added -printLineSpace. Corrected -printHeaderSize. check-in: 36ea024713 user: peter tags: trunk | |
11:52 | Debug function to auto-fill to two windows. check-in: 881c0495ad user: peter tags: trunk | |
Changes
Changes to Changes.
1 2 3 4 5 6 7 | 2021-09-23 Allow revision control detect with -browse. 2021-03-29 Support -context/-w/-b for -review. 2021-03-01 | > > > | 1 2 3 4 5 6 7 8 9 10 | 2023-04-23 Added -printLineSpace. Corrected -printHeaderSize. 2021-09-23 Allow revision control detect with -browse. 2021-03-29 Support -context/-w/-b for -review. 2021-03-01 |
︙ | ︙ |
Changes to src/print.tcl.
︙ | ︙ | |||
257 258 259 260 261 262 263 | if { ! [regexp {^(.*)( \(.*?\))$} $::eskil($top,rightLabel) -> rfile rrest]} { set rfile $::eskil($top,rightLabel) set rrest "" } set rfile [file tail $rfile]$rrest set pdf [eskilprint %AUTO% -file $pdfFile -cpl $cpl -cpln $cpln \ | | > > | 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | if { ! [regexp {^(.*)( \(.*?\))$} $::eskil($top,rightLabel) -> rfile rrest]} { set rfile $::eskil($top,rightLabel) set rrest "" } set rfile [file tail $rfile]$rrest set pdf [eskilprint %AUTO% -file $pdfFile -cpl $cpl -cpln $cpln \ -headleft $lfile -headright $rfile \ -lnsp $::Pref(printLineSpace) \ -headsize $::Pref(printHeaderSize)] set linesPerPage [$pdf getNLines] $pdf setTag change $::Pref(printColorChange) $pdf setTag new1 $::Pref(printColorNew1) $pdf setTag new2 $::Pref(printColorNew2) # Preprocess for page breaks in patch mode if {$::eskil($top,mode) eq "patch"} { |
︙ | ︙ |
Changes to src/printobj.tcl.
︙ | ︙ | |||
30 31 32 33 34 35 36 37 38 39 40 41 42 43 | delegate method * to pdf delegate option -margin to pdf delegate option -paper to pdf option -cpl -default 80 option -cpln -default 5 option -headsize -default 8 option -headleft -default "Header Text Left" option -headright -default "Header Text Right" option -headnpages -default 10 option -file -default exp.pdf variable width | > | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | delegate method * to pdf delegate option -margin to pdf delegate option -paper to pdf option -cpl -default 80 option -cpln -default 5 option -lnsp -default 1.0 option -headsize -default 8 option -headleft -default "Header Text Left" option -headright -default "Header Text Right" option -headnpages -default 10 option -file -default exp.pdf variable width |
︙ | ︙ | |||
75 76 77 78 79 80 81 | # Figure out font size from number of chars per line set charwidthHead [$pdf getCharWidth "0"] set charwidth [expr {$width / 2.0 / ($options(-cpl) + $options(-cpln) + 1)}] set fontsize [expr {$options(-headsize) * $charwidth / $charwidthHead}] $pdf setFont $fontsize # Text metrics | | | 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | # Figure out font size from number of chars per line set charwidthHead [$pdf getCharWidth "0"] set charwidth [expr {$width / 2.0 / ($options(-cpl) + $options(-cpln) + 1)}] set fontsize [expr {$options(-headsize) * $charwidth / $charwidthHead}] $pdf setFont $fontsize # Text metrics set linesize [expr {[$pdf getFontMetric height] * $options(-lnsp)}] set spacing [expr {$linesize / $fontsize}] $pdf setLineSpacing $spacing set offset [expr {$fontsize + [$pdf getFontMetric bboxy]}] set charwidth [$pdf getCharWidth "0"] set nlinesf [expr {($height - $options(-headsize)) / $linesize}] # Number of lines per page set nlines [expr {int($nlinesf - 1.0)}] |
︙ | ︙ |
Changes to src/startup.tcl.
︙ | ︙ | |||
758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 | docFlag -plugindump "Dump plugin source to stdout" # These options affect Pref addPrefOpt -pivot pivot optValidatePositive docFlag -pivot "Pivot setting for diff algorithm (10)" addPrefOpt -context context optValidateNatural docFlag -context "Show only differences, with <n> lines of context" addPrefOpt -printHeaderSize printHeaderSize optValidatePositive addPrefOpt -printCharsPerLine printCharsPerLine optValidatePositive addPrefOpt -printPaper printPaper optValidatePaper addPrefOpt -printColorChange printColorChange optValidatePdfColor addPrefOpt -printColorOld printColorOld optValidatePdfColor addPrefOpt -printColorNew printColorNew optValidatePdfColor addPrefOpt -printFont printFont docFlag -printHeaderSize "Font size for page header (10)" docFlag -printCharsPerLine "Adapt font size for this line length and wrap (80)" docFlag -printPaper "Select paper size (a4)" docFlag -printColorChange "Color for change (1.0 0.7 0.7)" docFlag -printColorOld "Color for old text (0.7 1.0 0.7)" docFlag -printColorNew "Color for new text (0.8 0.8 1.0)" docFlag -printFont "Select font to use in PDF, afm or ttf. If <fontfile> is given as \"Courier\", PDF built in font is used" addPrefMultOpt -excludedir dir,exdirs | > > | 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 | docFlag -plugindump "Dump plugin source to stdout" # These options affect Pref addPrefOpt -pivot pivot optValidatePositive docFlag -pivot "Pivot setting for diff algorithm (10)" addPrefOpt -context context optValidateNatural docFlag -context "Show only differences, with <n> lines of context" addPrefOpt -printHeaderSize printHeaderSize optValidatePositive addPrefOpt -printLineSpace printLineSpace optValidatePositive addPrefOpt -printCharsPerLine printCharsPerLine optValidatePositive addPrefOpt -printPaper printPaper optValidatePaper addPrefOpt -printColorChange printColorChange optValidatePdfColor addPrefOpt -printColorOld printColorOld optValidatePdfColor addPrefOpt -printColorNew printColorNew optValidatePdfColor addPrefOpt -printFont printFont docFlag -printHeaderSize "Font size for page header (10)" docFlag -printLineSpace "Line spacing (1.0)" docFlag -printCharsPerLine "Adapt font size for this line length and wrap (80)" docFlag -printPaper "Select paper size (a4)" docFlag -printColorChange "Color for change (1.0 0.7 0.7)" docFlag -printColorOld "Color for old text (0.7 1.0 0.7)" docFlag -printColorNew "Color for new text (0.8 0.8 1.0)" docFlag -printFont "Select font to use in PDF, afm or ttf. If <fontfile> is given as \"Courier\", PDF built in font is used" addPrefMultOpt -excludedir dir,exdirs |
︙ | ︙ | |||
1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 | set ::DefaultPref(preprocessn) {} set ::DefaultPref(toolbar) 0 set ::DefaultPref(wideMap) 0 ;# Not settable in GUI yet set ::DefaultPref(askOverwrite) 0 ;# Not settable in GUI yet # Print options set ::DefaultPref(printHeaderSize) 10 set ::DefaultPref(printCharsPerLine) 80 set ::DefaultPref(printPaper) a4 set ::DefaultPref(printColorChange) "1.0 0.7 0.7" set ::DefaultPref(printColorNew1) "0.7 1.0 0.7" set ::DefaultPref(printColorNew2) "0.8 0.8 1.0" set ::DefaultPref(printFont) "" ;# Not settable in GUI yet (-printFont) | > | 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 | set ::DefaultPref(preprocessn) {} set ::DefaultPref(toolbar) 0 set ::DefaultPref(wideMap) 0 ;# Not settable in GUI yet set ::DefaultPref(askOverwrite) 0 ;# Not settable in GUI yet # Print options set ::DefaultPref(printHeaderSize) 10 set ::DefaultPref(printLineSpace) 1.0 set ::DefaultPref(printCharsPerLine) 80 set ::DefaultPref(printPaper) a4 set ::DefaultPref(printColorChange) "1.0 0.7 0.7" set ::DefaultPref(printColorNew1) "0.7 1.0 0.7" set ::DefaultPref(printColorNew2) "0.8 0.8 1.0" set ::DefaultPref(printFont) "" ;# Not settable in GUI yet (-printFont) |
︙ | ︙ |