ufold

Прелама сваки UTF-8 улазни ред да стане у задату дужину
git clone https://git.sr.ht/~strahinja/ufold
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

ufold.1.in (1416B)


      1 .\" This program is licensed under the terms of GNU GPL v3 or (at your option)
      2 .\" any later version. Copyright (C) 2021-2025  Страхиња Радић.
      3 .\" See the file LICENSE for exact copyright and license details.
      4 .Dd %DATE%
      5 .Dt UFOLD 1
      6 .Os
      7 .Sh NAME
      8 .Nm ufold
      9 .Nd wrap each UTF-8 input line to fit specified width
     10 .Sh SYNOPSIS
     11 .Nm
     12 .Fl h | Fl \-help | Fl V | Fl \-full\-version | Fl v | Fl \-version
     13 .Nm
     14 .Oo Fl s | Fl \-spaces Oc
     15 .Oo Fl w Ar width | Fl \-width= Ns Ar width Oc
     16 .Op Ar file
     17 .Sh DESCRIPTION
     18 .Nm
     19 wraps input lines in
     20 .Ar file ,
     21 writing to standard output.
     22 It emulates the program
     23 .Xr fold 1
     24 from the GNU coreutils, but adding support for input encoded in UTF\-8.
     25 .Pp
     26 If a special
     27 .Ar file
     28 of
     29 .Dq \-
     30 is given,
     31 .Nm
     32 will instead read from the standard input.
     33 This also happens when no filename is given.
     34 .Bl -tag -width Ds
     35 .It Fl h , Fl \-help
     36 Print usage information.
     37 .It Fl s , Fl \-spaces
     38 Don't break words in the middle of a word.
     39 .It Fl V , Fl \-full\-version
     40 Print full version (like
     41 .Fl v Ns
     42 ), followed by copyright notice.
     43 .It Fl v , Fl \-version
     44 Print program version and commit date.
     45 .It Fl w Ar width , Fl \-width= Ns Ar width
     46 Set output width in glyphs.
     47 .El
     48 .Sh EXIT STATUS
     49 .Ex -std
     50 .Sh SEE ALSO
     51 .Xr fold 1
     52 .Sh AUTHORS
     53 .An Strahinya Radich Aq Mt sr@strahinja.org ,
     54 2021\-2025
     55 .Sh BUGS
     56 Bugs can be reported using the ticket tracker at:
     57 .Lk https://\:todo.sr.ht/\:~strahinja/\:text-tools