Nouvelles options "advanced" #26

Open
opened 2021-09-05 12:55:22 +02:00 by Sulley · 0 comments
Owner

Nouvelles options "advanced":

-toc[-]           Include [don't include] table of contents / outline /
                  bookmark information in the PDF output if it is available
                  in the source file (works only for PDF source files and
                  only if MuPDF is compiled in).  By default, a new destination
                  page is started at each bookmark location.  Do disable this,
                  see the -bp option.  If -toc- is specified, bookmark
                  information from the source file is ignored.  See also
                  -toclist.  Default is -toc.

-vb <thresh>      Set gap-size vertical-break threshold between regions that
                  cause them to be treated as separate regions.  E.g. -vb 2
                  will break the document into separate regions anywhere
                  there is a vertical gap that exceeds 2 times the median
                  gap between lines of text.  These separate regions may
                  then be scaled and aligned independently.
                  Special values:  Use -vb -1 to preserve all horizontal
                  alignment and scaling across entire regions (vertical
                  spacing may still be adjusted).  Use -vb -2 to exactly
                  preserve each region (both horizontal alignment and
                  vertical spacing--this is the value used by -mode fw, for
                  example).  The default is -vb 1.75.

-vls <spacing>    Set vertical line spacing as a fraction of the text size.
                  This can be used to override the line spacing in a document.
                  If 1, then single spacing is used.  2 = double spacing.
                  If negative, then the absolute value acts as the limiting
                  case.  E.g., if you set -vls -1.5, then any the line
                  spacing of the original document is preserved unless it
                  exceeds 1.5 (times single spacing).  Default = -1.2.
                  See also -vs.

-vs <maxgap>      Preserve up to <maxgap> inches of vertical spacing between
                  regions in the document (marked in green when using -sm
                  option).  This value has no effect if you use a negative
                  value for -vb.  The default value is 0.25.
                  See also -vls, -vb.

-wrap[-|+]        Enable [disable] text wrapping.  Default = enabled.  If
                  -wrap+, regions of text with lines shorter than the mobile
                  device screen are re-flowed to fit the screen width.  If
                  you use -wrap+, you may want to also specify -fc- so that
                  narrow columns of text are not magnified to fit your device.
                  Text wrapping disables native PDF output (see -n option).
                  See also -ws, -j, -fc, -n.

-ws <spacing>     Set minimum word spacing for line breaking as a fraction of
                  the height of a lowercase 'o'.  Use a larger value to make it
                  harder to break lines.  If negative, automatic word spacing
                  is turned on.  The automatic spacing leans toward breaking
                  long words between letters to be sure to fit text to the
                  device display.  Def = -0.20.  The absolute value of the
                  setting, if negative, is used as a minimum allowed value.
                  If you want k2pdfopt to aggressively break lines (e.g. break
                  apart long words if they don't fit on a line), use a smaller
                  absolute value, e.g. -ws -0.01.  A positive value works as
                  it did in v2.18 and before.  The default value was changed
                  from 0.375 in v2.18 to -0.20 in v2.20.  See also -wrap.

etc...

Nouvelles options "advanced": ``` -toc[-] Include [don't include] table of contents / outline / bookmark information in the PDF output if it is available in the source file (works only for PDF source files and only if MuPDF is compiled in). By default, a new destination page is started at each bookmark location. Do disable this, see the -bp option. If -toc- is specified, bookmark information from the source file is ignored. See also -toclist. Default is -toc. -vb <thresh> Set gap-size vertical-break threshold between regions that cause them to be treated as separate regions. E.g. -vb 2 will break the document into separate regions anywhere there is a vertical gap that exceeds 2 times the median gap between lines of text. These separate regions may then be scaled and aligned independently. Special values: Use -vb -1 to preserve all horizontal alignment and scaling across entire regions (vertical spacing may still be adjusted). Use -vb -2 to exactly preserve each region (both horizontal alignment and vertical spacing--this is the value used by -mode fw, for example). The default is -vb 1.75. -vls <spacing> Set vertical line spacing as a fraction of the text size. This can be used to override the line spacing in a document. If 1, then single spacing is used. 2 = double spacing. If negative, then the absolute value acts as the limiting case. E.g., if you set -vls -1.5, then any the line spacing of the original document is preserved unless it exceeds 1.5 (times single spacing). Default = -1.2. See also -vs. -vs <maxgap> Preserve up to <maxgap> inches of vertical spacing between regions in the document (marked in green when using -sm option). This value has no effect if you use a negative value for -vb. The default value is 0.25. See also -vls, -vb. -wrap[-|+] Enable [disable] text wrapping. Default = enabled. If -wrap+, regions of text with lines shorter than the mobile device screen are re-flowed to fit the screen width. If you use -wrap+, you may want to also specify -fc- so that narrow columns of text are not magnified to fit your device. Text wrapping disables native PDF output (see -n option). See also -ws, -j, -fc, -n. -ws <spacing> Set minimum word spacing for line breaking as a fraction of the height of a lowercase 'o'. Use a larger value to make it harder to break lines. If negative, automatic word spacing is turned on. The automatic spacing leans toward breaking long words between letters to be sure to fit text to the device display. Def = -0.20. The absolute value of the setting, if negative, is used as a minimum allowed value. If you want k2pdfopt to aggressively break lines (e.g. break apart long words if they don't fit on a line), use a smaller absolute value, e.g. -ws -0.01. A positive value works as it did in v2.18 and before. The default value was changed from 0.375 in v2.18 to -0.20 in v2.20. See also -wrap. ``` etc...
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Sulley/ReBook#26
No description provided.