Re: Friction when writing using Cyrillic symbols

2025-03-09 Thread Bjarni Ingi Gislason
On Sun, Mar 09, 2025 at 02:08:58PM -0700, Nikita Ivanov wrote: > Hi Deri, > > Thank you! Yes, this solution is much easier than having to install > fonts manually. Some questions and random findings/thoughts: > > It seems that it only works for PDF output, is there a similar simple > solution for

Re: refer.tmac

2025-03-08 Thread Bjarni Ingi Gislason
On Fri, Mar 07, 2025 at 07:48:27PM +0100, Sigfrid Lundberg wrote: > Thank you Thomas! > > I had already tried \p, but it is difficult to get it to work inside the > refer support code in the macro packages used. It seems that such code has > to be embedded in these strings overriding the ones that

Re: m.tmac: different numbers of '\{' and '\}'

2025-02-08 Thread Bjarni Ingi Gislason
On Sun, Feb 09, 2025 at 04:48:49AM +, Bjarni Ingi Gislason wrote: > Latest state of upstream. > > cd groff/contrib/mm > > grep -c -F -e '\{' -e '\}' m.tmac > > 531 > > extra (comment) line: 7405226e5d (G. Branden Robinson 2024-10-15 10:36:10 -0500 3325) .\".if \\n[ref*was-RS-used] \{\

m.tmac: different numbers of '\{' and '\}'

2025-02-08 Thread Bjarni Ingi Gislason
Latest state of upstream. cd groff/contrib/mm grep -c -F -e '\{' -e '\}' m.tmac 531

MORE.STUFF: troffcvt seems to be dead

2025-01-16 Thread Bjarni Ingi Gislason
It is no longer distributed by Debian. Its website "www.snake.net" does not answer to a ping call. Its last maintainer in Debian was Colin Watson.

Looking for a troff programmer to write a macro for long tables.

2025-01-04 Thread Bjarni Ingi Gislason
"man -Tps nft.8" shows :3754: error: boxed table does not fit on page 25; use .TS H/.TH with a supporting macro package with environment MANROFFOPT=-ww and MAN_KEEP_STDERR=yes The package 'ms' explains: .TS [H] .TEDemarcate a table to be processed by the tbl preprocessor. Th

wrong enumeration of adjustment statuses (request '.ad')

2024-12-19 Thread Bjarni Ingi Gislason
Still current: adjustment types: 0 1 3 5 (left both center right) no-adjustment modes: 0 2 4 So enumeration '0' is the same for two different statuses but should be different like adjustment types: 0 3 5 7 (left both center right) no-adjustment modes: 2 4 6 See more in bug #59795 (has

Re: Trailing spaces in some source files

2024-11-24 Thread Bjarni Ingi Gislason
On Sat, Nov 23, 2024 at 10:18:09PM +, Bjarni Ingi Gislason wrote: > These are not needed in any way, so could (should) be removed. > > For example with "sed -i -e 's/ *$//'". > >[...] "git" has a "tool" to point out whitespace, see for example "git-apply(1)" and git-config(1)".

Trailing spaces in some source files

2024-11-23 Thread Bjarni Ingi Gislason
These are not needed in any way, so could (should) be removed. For example with "sed -i -e 's/ *$//'". Examples (found with "grep -r -c -l -e ' *$' "): contrib/chem/chem.am contrib/eqn2graph/eqn2graph.sh contrib/glilypond/ChangeLog.0x contrib/grap2graph/grap2graph.sh contrib/mm/ChangeLog

Re: PDFPIC: un-explaned warning

2024-11-02 Thread Bjarni Ingi Gislason
On Fri, Nov 01, 2024 at 09:10:20PM +, Bjarni Ingi Gislason wrote: > On Tue, Oct 29, 2024 at 01:20:19AM +0000, Bjarni Ingi Gislason wrote: [...] > > .ll 10n > > .PDFPIC -I -\n[.l]u /home/bg/git/groff/doc/gnu.pdf > > .if r stuff .tm stuff is defined > > I have

Re: PDFPIC: un-explaned warning

2024-11-01 Thread Bjarni Ingi Gislason
On Tue, Oct 29, 2024 at 01:20:19AM +, Bjarni Ingi Gislason wrote: > File prof.PDFPIC: > > .ll 10n > .PDFPIC -I -\n[.l]u ?/gnu.pdf > .if !r stuff .tm stuff is not defined > > -.- > > The file "gnu.pdf" is in the attachment. > > -.- > >

Re: gropdf: warning when "mixed_pickles.pdf" is created

2024-11-01 Thread Bjarni Ingi Gislason
On Fri, Oct 25, 2024 at 09:20:16PM +, Bjarni Ingi Gislason wrote: > On Thu, Oct 24, 2024 at 11:26:58PM +0100, Deri wrote: > > On Thursday, 24 October 2024 20:46:32 BST Bjarni Ingi Gislason wrote: > > > GROFFcontrib/hdtbl/examples/mixed_pickles.pdf [...] [...] > &g

Re: PDFPIC: un-explaned warning

2024-10-29 Thread Bjarni Ingi Gislason
I forgot to add the file "gnu.pdf" to an attachment. It can also be created with convert-im6 gnu.eps pdf:gnu.pdf gnu.pdf Description: Adobe PDF document

PDFPIC: un-explaned warning

2024-10-28 Thread Bjarni Ingi Gislason
File prof.PDFPIC: .ll 10n .PDFPIC -I -\n[.l]u ?/gnu.pdf .if !r stuff .tm stuff is not defined -.- The file "gnu.pdf" is in the attachment. -.- "test-groff.master" should be the same as "test-groff" in the upstream groff repository. Running: test-groff.master -Tpdf -mhdtbl -U -mpdfpic -

Re: gropdf: warning when "mixed_pickles.pdf" is created

2024-10-27 Thread Bjarni Ingi Gislason
On Sat, Oct 26, 2024 at 07:57:46PM +, Bjarni Ingi Gislason wrote: > I copied the "penguin.pdf" and "penguin.ps" files from > "contrib/mom/examples" to the "groff/doc" directory and used those files in > the "contrib/hdtbl/examples/mix

Re: [bug #66382] tmac/groff.7.man: explanation of the request 'pso' is not clear

2024-10-27 Thread Bjarni Ingi Gislason
On Sat, Oct 26, 2024 at 10:56:41PM -0400, Dave wrote: > Update of bug #66382 (group groff): > > Severity: 3 - Normal => 2 - Minor > > ___ > > Follow-up Comment #1: > > [comment #0 original submiss

Re: gropdf: warning when "mixed_pickles.pdf" is created

2024-10-27 Thread Bjarni Ingi Gislason
On Sat, Oct 26, 2024 at 10:28:19PM -0500, Dave Kemper wrote: > On Sat, Oct 26, 2024 at 9:01???PM Bjarni Ingi Gislason > wrote: > > In the file "tmac/pdfpic.tmac" the request '.pso' is used with a variable. > > As this request is only valid in an unsafe mo

Re: gropdf: warning when "mixed_pickles.pdf" is created

2024-10-26 Thread Bjarni Ingi Gislason
In the file "tmac/pdfpic.tmac" the request '.pso' is used with a variable. As this request is only valid in an unsafe mode (groff option '-U') it only may take a constant text. An example: .\" execute with the option -U (unsafe) .ds commmand-example date \*[command-example] .pso \*[command-ex

Re: gropdf: warning when "mixed_pickles.pdf" is created

2024-10-26 Thread Bjarni Ingi Gislason
I copied the "penguin.pdf" and "penguin.ps" files from "contrib/mom/examples" to the "groff/doc" directory and used those files in the "contrib/hdtbl/examples/mixed-pickles.roff" file. In both cases the (black-white) picture was there in the output files. I copied "gnu.eps" to "gnu.ps" and

[mom] pdfmom: avoid a warning with perl 5.40.0

2024-10-25 Thread Bjarni Ingi Gislason
For perl This is perl 5, version 40, subversion 0 (v5.40.0) built for x86_64-linux-gnu-thread-multi (with 43 registered patches, see perl -V for more detail) Copyright 1987-2024, Larry Wall the line use File::Spec qw/splitpath/; needs to be use File::Spec; to avoid a warning The

Re: gropdf: warning when "mixed_pickles.pdf" is created

2024-10-25 Thread Bjarni Ingi Gislason
On Thu, Oct 24, 2024 at 11:26:58PM +0100, Deri wrote: > On Thursday, 24 October 2024 20:46:32 BST Bjarni Ingi Gislason wrote: > > GROFFcontrib/hdtbl/examples/mixed_pickles.pdf > > Attempt to call undefined import method with arguments ("splitpath") via > > pa

gropdf: warning when "mixed_pickles.pdf" is created

2024-10-25 Thread Bjarni Ingi Gislason
GROFFcontrib/hdtbl/examples/mixed_pickles.pdf Attempt to call undefined import method with arguments ("splitpath") via package "File::Spec" (Perhaps you forgot to load the package?) at /home/bg/git/groff/build/gropdf line 29. Line 29 is use File::Spec qw(splitpath); N.B. perl is now This

GNULIB module "putenv-gnu" can now cause an error from the linker

2024-10-22 Thread Bjarni Ingi Gislason
Change in "bootstrap.conf" (local file). # "putenv" changed to "putenv-gnu" as the former is deprecated. [...] CXXLDgrn /usr/bin/ld: src/preproc/grn/main.o: warning: relocation against `groff_optopt' in read-only section `.text.startup' /usr/bin/ld: src/preproc/grn/main.o: in function `m

Re: tmac/mdoc/doc-common: Missing definitions of some strings like 'R', 'Tm', 'lq', 'rq', and 'va'

2024-10-22 Thread Bjarni Ingi Gislason
On Thu, Oct 17, 2024 at 08:00:10PM -0500, G. Branden Robinson wrote: > Hi Bjarni, > > At 2024-10-18T00:43:31+0000, Bjarni Ingi Gislason wrote: > > Input file: mandoc.char.7 (from Debian mandoc version mdocml (1.14.6-2) and > > with a fixed bug #1022809) > > >

tmac/mdoc/doc-common: Missing definitions of some strings like 'R', 'Tm', 'lq', 'rq', and 'va'

2024-10-17 Thread Bjarni Ingi Gislason
Input file: mandoc.char.7 (from Debian mandoc version mdocml (1.14.6-2) and with a fixed bug #1022809) See also groff bug #57720. >From "[test-][g|n]roff -mandoc -ww -z mandoc_char.7" troff:mandoc_char.7:725: warning: macro 'R' not defined troff:mandoc_char.7:726: warning: macro 'Tm' not defi

Re: groff_man.7.man.in: Some remarks and editorial changes for this man page

2024-10-17 Thread Bjarni Ingi Gislason
On Mon, Oct 07, 2024 at 08:31:20PM -0500, G. Branden Robinson wrote: > Bjarni, > > At 2024-10-07T23:00:59+0000, Bjarni Ingi Gislason wrote: > > Package: groff > > Version: upstream, GIT HEAD > > Severity: minor > > Tags: patch > > If this were a Savan

an.tmac: macro pair 'TS H / TH' is missing for long tables with vertical lines (boxed)

2024-10-07 Thread Bjarni Ingi Gislason
Rendering the man page "nft.8" (package "nftables") with "groff" shows: nft.8:3769: error: boxed table does not fit on page 29; use .TS H/.TH with a supporting macro package nft.8:4127: error: boxed table does not fit on page 30; use .TS H/.TH with a supporting macro package troff:nft.8:4305: wa

groff_man.7.man.in: Some remarks and editorial changes for this man page

2024-10-07 Thread Bjarni Ingi Gislason
Package: groff Version: upstream, GIT HEAD Severity: minor Tags: patch * What led up to the situation? Checking for defects with [test-][g|n]roff -mandoc -t -K utf8 -rF0 -rHY=0 -ww -b -z < "man page" [test-groff is a script in the repository for "groff"] (local copy and "troff" slight

make URW-fonts also available to PostScript output device

2024-09-15 Thread Bjarni Ingi Gislason
It just needs symbolic links between the build/font/devpdf/U-* and font/devps/U-*, for example cd font/devps ln -s ../../build/font/devpdf/U-... U-...

contradiction between "soelim(1)" and the place of the preprocessor "preconv" in a pipeline

2024-09-12 Thread Bjarni Ingi Gislason
A diagram in the manual of "soelim(1)" shows that the pipeline is soelim | preprocessors ... but an actual pipeline with "preconv" (groff -mandoc -s -K utf8 -V input) is preconv -eutf8 input | soelim | troff -mandoc -Tps | grops Using the soelim(1) order the pipeline becomes soelim inpu

Re: Proposed: next-generation alignment and adjustment control

2024-06-24 Thread Bjarni Ingi Gislason
The bug is shown in the example by .ad l mno pqr\p .na stu vwx\p .ad yza bcd\p Result is (links, no adjustment, unchanged=previous) yza bcd instead of yza bcd With my patch it is yza bcd with other parts unchanged from upstream. All the different implementations (also "plan9

Re: Documenting a set of functions with -man

2024-06-23 Thread Bjarni Ingi Gislason
On Fri, Jun 21, 2024 at 02:52:22PM +, Lennart Jablonka wrote: > Quoth Anton Shepelev: > > What is the covenstional way of documenting a set of C > > functions with -man? Have you any recommendations or > > examples about typesetting function declaraions, their > > return types and aruguments i

grolbp.1.man: Some remarks about this man page

2024-06-18 Thread Bjarni Ingi Gislason
Package: groff Version: upstream Severity: minor Dear Maintainer, * What led up to the situation? Checking for defects with [test-]groff -mandoc -t -K utf8 -rF0 -rHY=0 -ww -b -z < "man page" [test-groff is a script in the repository for "groff"] (local copy and "troff" slightly chang

Re: Greek in Groff

2024-05-18 Thread Bjarni Ingi Gislason
Thanks. Some remarks. 1) All input files should have the same encoding or an including (higher order) one 2) 'groff' can only deal with 'ascii' and 'latin1' encodings itself 3) therefor all other encodings must be converted to ascii (7 bit encoding) with 'preconv', for example with the opti

Re: Greek in Groff

2024-05-17 Thread Bjarni Ingi Gislason
On Thu, May 16, 2024 at 09:19:00PM +0300, Nikos Parafestas wrote: [...] > After changing the doc.ref encoding from UTF-8 to ISO8859-7 the > references fonts change but they are still unreadable. > > I also tested the following command: > > groff -k -ms -R -Tutf8 doc.ms | cat -s > > which also ha

Re: Hungarumlauts in built-in fonts

2024-05-11 Thread Bjarni Ingi Gislason
On Sat, May 11, 2024 at 07:10:43PM -0500, Nate Bargmann wrote: > I discovered the U-* fonts were missing once I upgraded to Debian 12 > (Bookworm) last year: > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1051248 > > I don't think that is in any way this is any way related to the Void > pa

Re: Hungarumlauts in built-in fonts

2024-05-11 Thread Bjarni Ingi Gislason
On Sat, May 11, 2024 at 06:18:44PM +0200, Gáspár Gerg?? wrote: > Thanks for the reply! > > I already have ghostscript installed. I checked the dependencies, on Void, > the package you are referring to is called "gfonts" (the description says > "URW+ base35 fonts"). > > I also tried using the p

make 'groff' depend on 'ghostscript'

2024-05-11 Thread Bjarni Ingi Gislason
1) to get the URW-fonts 2) to avoid people having to ask on a groff-list 3) to elevate status of 'ghostscript' from 'recommends' to 'depends' (Debian) 4) the configure script already asks about it 5) groff's default output is PostScript. 6) the packet 'groff' produces some 'ps' fil

Re: Hungarumlauts in built-in fonts

2024-05-11 Thread Bjarni Ingi Gislason
I should have mentioned that the package 'ghostscript' must be installed. The 'configure' script tests for its existence. 'ghostscript' depends on 'fonts-urw-base35'. The names are based on Debian.

An exercise for the brain(-software) (bug #65474)

2024-04-03 Thread Bjarni Ingi Gislason
Give more people a chance to see, think and learn. The following is from the groff bug report #65474 spurious "warning: unbalanced 'el' request" when formatting zic(8) from TZBD project What I forgot to write in the contribution was: Another language has polluted the code, as written.

Re: Font Palatino

2024-03-03 Thread Bjarni Ingi Gislason
The manual pages for gropdf and grops should gave you enough information. Looking at "fonts_x.ps" and "fonts_n.ps" shows you how the glyphs look like in the groff package hdtbl, residing in the build directory ".../contrib/hdtbl/examples" in the git repository and in Debian "/usr/share/doc/g

Re: mailing list archive link in manual appears to have rotted

2024-02-28 Thread Bjarni Ingi Gislason
On Wed, Feb 28, 2024 at 02:56:19PM +, ropers wrote: > Hello GNU, > > In your GROFF manual, the following place contains a mailing list archive > link: > https://www.gnu.org/software/groff/manual/groff.html#FOOT2 > > That link is https://minnie.tuhs.org/pipermail/tuhs/2013-December/006113.htm

Re: mom example documents PDF conversions in Fedora 39 distribution

2024-02-01 Thread Bjarni Ingi Gislason
On Tue, Jan 23, 2024 at 11:32:30AM +0100, Oliver Corff wrote: > Hi, > > I just happened to notice that the PDF targets of the example documents > of mom in my /usr/share/doc/groff/examples/mom/ directory (Fedora 39) > seem to have been compiled without the -k option even though README.txt > has th

Re: .bp not working in groff 1.23.0 when it worked fine in 1.22.4

2024-01-23 Thread Bjarni Ingi Gislason
This is a regression (not backward compatible) caused by Branden acting as a developer (not as a maintainer). This is the second case of this kind of a bug (bug #65077), see for example "CSTR #54", chapter 5, about the 'ns' request or the "groff.info" (info groff) and groff(7) (incomplete).

Re: Groff hdtbl tables disappear near the footer

2023-12-16 Thread Bjarni Ingi Gislason
There are bugs in "page-a.ms". The last one is for a trailing space. Found by using the options "-ww -b -z" (except the trailing space) and patched HDTBL macros. --- page-a.ms 2023-12-16 17:42:06.0 + +++ page-a.new.ms 2023-12-16 18:06:58.0 + @@ -3,7 +3,7 @@ .

Re: gropdf : missing colour when used with HDTBL macros

2023-12-16 Thread Bjarni Ingi Gislason
On Thu, Dec 14, 2023 at 11:02:50PM +, Deri wrote: > On Thursday, 14 December 2023 22:35:26 GMT Bjarni Ingi Gislason wrote: > > File examples in > > > > https://list.gnu.org/archive/html/groff/2023-12/msg00013.html > > > > with subject "Groff

gropdf : missing colour when used with HDTBL macros

2023-12-14 Thread Bjarni Ingi Gislason
File examples in https://list.gnu.org/archive/html/groff/2023-12/msg00013.html with subject "Groff hdtbl tables disappear near the footer". /usr/bin/groff -Tpdf -ms -mhdtbl hdtbl-issue.ms > hdtbl-issue.pdf Output does not have a "coloured" header "Professional Experience" (but black on wh

Re: Groff hdtbl tables disappear near the footer

2023-12-13 Thread Bjarni Ingi Gislason
On Wed, Dec 13, 2023 at 02:59:15AM +0100, Tadziu Hoffmann wrote: > > > > Here is another example where, when the table doesn't fit on the page, > > it vanishes and is not carried over to the following page. > > As far as I can tell, hdtbl does not start a new page by itself > when a table does n

Re: Groff hdtbl tables disappear near the footer

2023-12-06 Thread Bjarni Ingi Gislason
I get a somewhat different result as the paragraph "Company Four" is entirely on the first page. That is without any change to the provided files. There are also these warning, but the do not seem to interfere with the output. The pdf-file with "Page size = letter" is in the attachment. g

Re: 1.23 prints some strange error

2023-10-04 Thread Bjarni Ingi Gislason
On Wed, Oct 04, 2023 at 10:20:57PM +, Bjarni Ingi Gislason wrote: > Latin1 iacute has the utf8 code 'í' > and the hexadecimal code is C3AD which is "LATIN CAPITAL LETTER A WITH > TILDE" and "SOFT HYPHEN" > > "groff" turns "s

Re: 1.23 prints some strange error

2023-10-04 Thread Bjarni Ingi Gislason
Latin1 iacute has the utf8 code 'í' and the hexadecimal code is C3AD which is "LATIN CAPITAL LETTER A WITH TILDE" and "SOFT HYPHEN" "groff" turns "soft hyphen" into "HYPHEN-MINUS" (0x2D) More is in the attachment. file list.tr .hw a-hÃ- .hw a-ño .hw ár-bol .hw cu-brÃ--a .hw e-té-re-o .hw c

Re: Baffling accented glyphs issue

2023-08-26 Thread Bjarni Ingi Gislason
preconv -d shows fallback encoding: 'ISO-8859-1' processing 'txtFS_cF9dOUO.txt' no coding tag len: 95 uchardet read: 95 bytes charset: ISO-8859-13 encoding used: 'ISO-8859-13' .lf 1 txtFS_cF9dOUO.txt .sp |1i-1v Ce qui me pla\[u0106]\[u00AE]t le plus, c'est quand je suis assis confortabl

Re: Baffling accented glyphs issue

2023-08-26 Thread Bjarni Ingi Gislason
1) Look at the output of preconv The option '-k' for "groff" can't find the encoding with just one example of a character different from ascii or latin1. groff -k -V file preconv file | troff -Tps | grops 2) Add the same character to the file. preconv Lesson to learn: always use the i

Re: Footer trap in a A4 PDF

2023-08-26 Thread Bjarni Ingi Gislason
The groff software is tuned to the imperial measurement system (inch etc.). Using another measurement system: A text line normally never touches exactly a trap but goes beyond it. Therefore a footer starts nearer the bottom edge than the measurement in metric (SI) units indicates.

Re: new tests are not reproducible, e.g. tmac/tests/an_MR-works.sh

2023-08-20 Thread Bjarni Ingi Gislason
Those who leave the default (correct, easy) path experience (discover) more. Thus the dogma is: You shall (must) always follow the default (correct, easy) path. How does your path enlighten you?

new tests are not reproducible, e.g. tmac/tests/an_MR-works.sh

2023-08-07 Thread Bjarni Ingi Gislason
[Sent originally to bug-groff, bug #64509; Wed 02 Aug 2023]; see https://savannah.gnu.org/bugs/?group=groff]] An example is "an_MR-works.sh". After adding .ds MF I to the INPUT in a line before '.TH ...' I get the expected result. Tests should be independent of the surroundings and shoul

Re: Tilde (~) in bash(1) is typeset incorrectly as Unicode character

2023-07-29 Thread Bjarni Ingi Gislason
On Sun, Jul 30, 2023 at 02:05:19AM +, Bjarni Ingi Gislason wrote: > Simply add > > .if t .tr ~\(ti > > to "tmac/an.tmac", > instead of changing (hard coding) it in the sources (man pages). Correction: Drop '.if t' as -Tutf8 is an nroff mode.

Re: Tilde (~) in bash(1) is typeset incorrectly as Unicode character

2023-07-29 Thread Bjarni Ingi Gislason
Simply add .if t .tr ~\(ti to "tmac/an.tmac", instead of changing (hard coding) it in the sources (man pages).

an.tmac, .TH: shows the same text twice in the header! Why necessary?

2023-07-22 Thread Bjarni Ingi Gislason
Example from "sensible-terminal(1)": .\" -*- nroff -*- .TH SENSIBLE-TERMINAL-EMULATOR 1 "28 Aug 2022" "Debian" .SH NAME sensible-terminal-emulator \- sensible terminal emulator -.-. With "/usr/bin/man --version": man 2.11.2 Output from "env MANWIDTH=80 /usr/bin/man -l example": grotty::():9: w

Re: Makefile: How to create "eqn.cpp" and "eqn.hpp" as they are not rebuilt when removed

2023-07-14 Thread Bjarni Ingi Gislason
Fixing the compilation. The program "bison" needs the option "-y" to name its output files in the same way as "byacc" does, that is, according to the "POSIX yacc". So use export YACC='bison -y'

Re: Makefile: How to create "eqn.cpp" and "eqn.hpp" as they are not rebuilt when removed

2023-07-12 Thread Bjarni Ingi Gislason
I could build the missing files by using "YACC=byacc", but I usually use "bison". YACC is an environmental variable.

Makefile: How to create "eqn.cpp" and "eqn.hpp" as they are not rebuilt when removed

2023-07-12 Thread Bjarni Ingi Gislason
In a Makefile: maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -rm -f src/preproc/eqn/eqn.cpp and src/preproc/eqn/eqn.hpp: src/preproc/eqn/eqn.cpp @if test !

Re: Selecting Papersize

2023-07-08 Thread Bjarni Ingi Gislason
On Sun, Jul 09, 2023 at 10:56:25AM +1000, Damian McGuckin wrote: > > When using the -dpaper=a4 option to 'groff' (which is passed to 'gtroff'), > the manual says to use '-P-pa4' also (which is passed to the backend). > > Does 'gtroff' not pass enough papersize information down its pipeline to the

Re: drawing commands in groff(7) (was: undiagnosed pic error)

2023-06-13 Thread Bjarni Ingi Gislason
On Thu, Jun 08, 2023 at 06:19:39PM -0400, Steve Izma wrote: > On Tue, Jun 06, 2023 at 03:07:07PM -0500, G. Branden Robinson wrote: > > Subject: drawing commands in groff(7) (was: undiagnosed pic error) > > > \D't n' > > Set line thickness of geometric objects to to n basic units. A >

Re: Should temporary indentation be ignored when centering?

2023-06-03 Thread Bjarni Ingi Gislason
On Sun, May 21, 2023 at 02:52:02AM -0500, G. Branden Robinson wrote: > Hi all, > > For just over 23 years, since commit e9b0d52dec, our Texinfo manual has > claimed that temporary indentation is ignored when lines are being > centered with the `ce` request. > > But that is not the case in groff 1

How to avoid using '\c' in man pages

2023-05-29 Thread Bjarni Ingi Gislason
For a background material see Debian bug #1036826 or the home page of "Bug Reports" in Debian for the package "po4a". For a three font case, add a temporary roman font change in an argument, that will say (including italic corrections) "\/\fR" in front of the roman (upright) part and "\,\fP"

Re: Warn on semantic newlines

2023-04-27 Thread Bjarni Ingi Gislason
On Thu, Apr 27, 2023 at 11:49:07AM +0200, Alejandro Colomar wrote: > [CC -= Ingo, as requested] > > Hi Bjarni, > > On 4/27/23 03:40, Bjarni Ingi Gislason wrote: > > > > "groff" is not the right tool for such things, but "grep" is. > > I

Re: Warn on semantic newlines

2023-04-26 Thread Bjarni Ingi Gislason
On Fri, Jun 10, 2022 at 11:52:30AM +0200, Alejandro Colomar wrote: > Hi, Ingo and Branden! > > As far as I know, there's currently no tool that warns on "foo. bar" in > filled test. Not `mandoc -Tlint`, and not `groff -ww`, and not `groff > -rCHECKSTYLE=999`. I know that CHECKSTYLE is not design

Re: adding gnulib's sys_wait module to groff made Automake angry

2023-04-17 Thread Bjarni Ingi Gislason
This is groff bug #61832 (from 16th January 2022). N.B. The subject line was changed.

Re: [g.branden.robin...@gmail.com: macOS 12.6.3 and vasnprintf compilation failure]

2023-02-06 Thread Bjarni Ingi Gislason
See https://savannah.gnu.org/bugs/index.php?63078 I renamed the file "groff/src/include/assert.h" in my privat branch of groff to ".../assert.h.original".

Re: [mmse] Adding a footnote yields a infinite loop.

2022-11-20 Thread Bjarni Ingi Gislason
On Sun, Nov 20, 2022 at 12:37:56PM +0100, hbezemer--- via wrote: >[...] > A4 is de facto the standard for all documents in Europe. > (Since A4 and letter don't differ that much in size, I mostly use the default > although the documents get printed on A4 paper.) >[...] The default in "tmac/trof

Re: Why isn't the device resolution exposed to the formatter?

2022-11-17 Thread Bjarni Ingi Gislason
The resolution is defined as the number of "units" per 1 inch, so it is "1u/1i", or defined with, for example, .nr resolution 1u/1i The implied unit is 'u'. Those who need it can create it themselves, avoiding unnecessary additions to the code (which would be redundant).

Re: -s flag (soelim) not working?

2022-09-19 Thread Bjarni Ingi Gislason
How do you test something that is not there? Why is there no test to check the correct working of the current state of pipelines with a ".so " line in an input file? What has the behaviour of Ingo Swartze cost you (single and plural)? and what saved you (also single and plural)?

Re: All caps .TH page title

2022-08-01 Thread Bjarni Ingi Gislason
On Tue, Aug 02, 2022 at 12:58:41AM +0200, Alejandro Colomar wrote: >[...] > Would you mind disabling the following warning?: > > mandoc: man3type/regex_t.3type:7:5: STYLE: lower case character in document > title: TH regex_t > > :) > > Also, may I make you reconsider allowing one to disable spe

Re: warning on mid-input line sentence endings (was: Warn on semantic newlines)

2022-07-21 Thread Bjarni Ingi Gislason
The simplest word I have thought of is "singlespace".

Re: [tmac] options "-mandoc" and '-C' are not compatible

2022-07-10 Thread Bjarni Ingi Gislason
On Sun, Jul 10, 2022 at 10:16:30PM +, Bjarni Ingi Gislason wrote: >[...] > > The fix is to change the '.' line before the '\\*(...' lines to, > for example, > > .do nop\" DO NOT REMOVE the line, see an earlier comment > > N.B. >

Re: [tmac] options "-mandoc" and '-C' are not compatible

2022-07-10 Thread Bjarni Ingi Gislason
On Sun, Jul 10, 2022 at 04:07:06AM -0500, G. Branden Robinson wrote: > At 2022-07-10T02:04:10+0000, Bjarni Ingi Gislason wrote: > > A test case: > > > > zcat /usr/share/man/man1/test.1.gz | test-nroff -mandoc -C -z > > > > produces a lot of warnings, while &

Re: Release Candidate 1.23.0.rc1

2022-04-28 Thread Bjarni Ingi Gislason
On Fri, Apr 29, 2022 at 12:01:15AM +0200, Hans Unzner wrote: > > > Am 28.04.22 um 02:32 schrieb Bjarni Ingi Gislason: > > On Wed, Apr 27, 2022 at 12:49:18PM +0200, Hans Unzner wrote: > > > Ok I try to restate my question. > > > As far as I know, an-old.tmac is u

Re: Release Candidate 1.23.0.rc1

2022-04-27 Thread Bjarni Ingi Gislason
On Wed, Apr 27, 2022 at 12:49:18PM +0200, Hans Unzner wrote: > Ok I try to restate my question. > As far as I know, an-old.tmac is used when converting a man page to HTML > with a command like this > groff -Thtml -man a_man_page.9 > a_man_page.html > But now I want to use a modified version of an-o

Re: traveling for a few days

2022-04-24 Thread Bjarni Ingi Gislason
On Sun, Apr 24, 2022 at 04:39:57AM +1000, John Gardner wrote: > On macOS, Groff builds and installs perfectly from a fresh checkout > (currently using f55d8f41). > > However, running `make check` produced 6 failing tests: > > FAIL: src/devices/grotty/tests/basic_latin_glyphs_map_correctly.sh [...

Re: CHECKSTYLE: Report consecutive .?P (paragraph macros)

2022-02-01 Thread Bjarni Ingi Gislason
On Mon, Jan 31, 2022 at 12:52:41AM +0100, Alejandro Colomar (man-pages) wrote: > Hi Branden, > > Recently you reported to me a style error: > > [ > .PP > .TP > tag > paragraph > ] > > In general, consecutive paragraph marcos are wrong, right? .IP, .PP, > .TP (and I may forget some more). > > I

Re: Should vertical motions be in vees or ems? Where does the baseline go?

2021-11-18 Thread Bjarni Ingi Gislason
On Thu, Nov 18, 2021 at 03:23:39PM +1100, G. Branden Robinson wrote: [...] > > Anyone feel game to tackle the groff/Heirloom baseline rule discrepancy? > :D The difference is caused by a defective viewer. -- Bjarni I. Gislason

How to update the version that "git-version-gen" generates

2021-10-26 Thread Bjarni Ingi Gislason
My current version (from "git describe") is "1.22.4-3311-g37ef8583". There are two tmac-files that test for version "1.23" or later, so they abort the processing. I do not have a ".tarball-version" file. If I create it with content "1.24.rc1" the created versions are always the same as tha

Re: correct behavior for output-comparison conditional?

2021-07-08 Thread Bjarni Ingi Gislason
Saying "identical output" is a wrong interpretation of the text in "CSTR #54", which is "... if the strings compare identically (including motions and character size and font)...". The words "size" and "font" are used in singular case, and the word "motions" is plural. So the strings must c

Re: Proposed: 3 disruptive changes for groff 1.23.0

2021-06-26 Thread Bjarni Ingi Gislason
On Fri, Jun 18, 2021 at 01:48:15AM +1000, G. Branden Robinson wrote: > Hi folks, > > Back in October, a release looked imminent, but it doesn't seem so now. > Over 700 commits have been pushed since rc1, so an rc2 seems called for > on quantitative grounds alone. I'm therefore seeking feedback on

"point size" is not usable as a term

2021-04-18 Thread Bjarni Ingi Gislason
Bug #60403 (closed) unified the writing of "point-size" to "point size". The problem is, that this coinage does not make sense. The "point" in this compound, is a name of a unit of measurement, is thus a constant, but its definition (size, numerical value) depends of the used measurement sy

Re: Fwd: groff git HEAD not building on macOS? (was: Long text in tbl won't wrap, maybe related to mom)

2021-02-09 Thread Bjarni Ingi Gislason
The gnulib's version is probably out of date. Read "INSTALL.REPO" and run groff's "bootstrap" to update "gnulib". -- Bjarni I. Gislason

bug-groff web page: bug 59795, posting a comment is not permitted

2021-01-23 Thread Bjarni Ingi Gislason
The page has been changed a little, instead of a single "Submit Changes" there are now two buttons. This is the content of my "Comment": +Disable adjustment. This is synonymous with the request +@w{@samp{.ad l}}; the value of the adjustment mode register @code{.j} +is not changed. Remove t

Re: long nroff tables

2021-01-20 Thread Bjarni Ingi Gislason
Concerning the warning "cannot adjust line". It is caused by "troff" meddling with the line adjustment in at least text block columns ( T{...T} ). Happens when the adjustment mode is 'b' (adjust to both margins), which is the default mode. Temporary workaround is to put '.ad l' in front

Re: groff_mdoc(7): Add link to mandoc project.

2020-12-22 Thread Bjarni Ingi Gislason
1) The mandoc version 1.4.14 is out of date. People should use the latest version, (now) 1.4.15. 2) Report #59415 shows a lot of warnings. It was declared as invalid by Ingo Schwarze on 5th November 2020, but I see no objective reasons given by him, therefore subjective, emotional ones, that I hav

Re: Compile error with the current groff git head

2020-12-04 Thread Bjarni Ingi Gislason
On Fri, Dec 04, 2020 at 12:44:56PM -0500, T. Kurt Bond wrote: > When I try to compile groff on macOS Catalina with the compiler tools > installed by Xcode 12.2 (12B4b) and commit > 534680662889eb74dac3e100bcadf97e5962f027 I get the following error: > > CXX src/libs/libgroff/libgroff_a-curti

About testing a test.

2020-11-22 Thread Bjarni Ingi Gislason
See groff bugs #58164 and #59461 for the history of this. I have simplified the testing script, making it internally independent of any locale issues. So, what is left, is testing by others in their real or created environment. The original test is in "src/roff/groff/tests/smoke-test_htm

Using quality checks from software package distributors

2020-11-16 Thread Bjarni Ingi Gislason
The Debian project has a website "lintian.debian.org" where results of its "lintian" software are presented. "groff" has listed defects there, both in its software and issues, that do not fulfil Debian's policy. At least the listed defects in the software should be used to fix them before e

Re: Changing section header autogenerated by 'refer'?

2020-11-11 Thread Bjarni Ingi Gislason
On Wed, Nov 11, 2020 at 09:42:25PM +, Dorai Sitaram via wrote: > Is there a way to change the text used for the section header inserted by > 'refer' before the accumulated references?  By default, it is "References".  > Hopefully it isn't hardcoded. > > --d Use the file "tmac/sv.tmac" as

Re: Unable to get GROFF_ENCODING to seep through to sourced subfiles

2020-11-10 Thread Bjarni Ingi Gislason
On Mon, Nov 09, 2020 at 03:58:38PM +, Dorai Sitaram via wrote: > I have GROFF_ENCODING set to utf8, but this only works for the main file > processed by groff, not to any subfiles that are sourced via .so . > Giving the -s option to groff to force a soelim doesn't work either.   > Adding the -

Re: Quick question: how to do .index in groff?

2020-07-25 Thread Bjarni Ingi Gislason
A version of an index macro is in the file "contrib/hdtbl/hdmisc.tmac-u", or "/usr/share/groff/1.22.4/tmac/hdmisc.tmac". Its name is "t*index". It needs a correction, see for example groff bug #54538. -- Bjarni I. Gislason

Re: weird \s

2020-05-20 Thread Bjarni Ingi Gislason
On Mon, Apr 06, 2020 at 06:17:12PM +1000, G. Branden Robinson wrote: > It is done. > > https://lists.gnu.org/archive/html/groff-commit/2020-04/msg3.html > > Regards, > Branden These changes may, must, shall, should be undone. They a) cause a regression b) misuse the compatibility mode

Re: What is the difference between GNU groff and Mac OS X groff

2020-04-12 Thread Bjarni Ingi Gislason
On Sun, Apr 12, 2020 at 01:27:54PM -0500, Peng Yu wrote: > { echo ".ll 14.2i"; echo ".nr LL 14.2i"; cat > '/usr/share/man/man1/man.1'; } | tbl | /usr/bin/groff -Wall -mtty-char > -Tascii -mandoc -c | less -is > > When I use the above command (Mac OS X groff), it works fine. > > { echo ".ll 14.2

Re: weird \s

2020-04-02 Thread Bjarni Ingi Gislason
This has been too much (long) chatter without simple solutions. "Research is seeing the obvious." [1] 1) The missing part is information. Solution: a) Provide a message (warning, error), if "\snn" is in the input. b) Augment the documentation to tell the readers, that "\snn" is depr

Re: man pages, defensive programming, and bibliographic formats

2020-01-27 Thread Bjarni Ingi Gislason
On Sun, Jan 26, 2020 at 12:22:08AM +1100, G. Branden Robinson wrote: > (was: 01/01: tbl(1): Note origin of tbl.) > [...] > I threw together a script to count up man(7) macro use in our corpus: > > $ MANS=$(find !(build|EXPERIMENTS) -name "*.man"|sort) > $ man-macro-frequency-counter $MANS | sort

  1   2   >