[groff] [patch] Too many glyphs used in font 'xx'

2019-08-29 Thread KUBO Koichi
Hello,

When I tried to output japanese text as pdf using groff and type42
font, I got the messages Too many glyphs ...

$ env GROFF_TYPESETTER=pdf man -t 7 groff >a.pdf
Too many glyphs used in font 'xx'
Too many glyphs used in font 'xx'
...

If you run groff directly,

$ PATH=/usr/local/bin:$PATH
$ zcat /usr/share/man/ja.eucJP/man7/groff.7.gz | \
  groff -Tpdf -pt -man -Keuc-jp >a.pdf
(groff 1.22.4, freebsd 11.2)

I found the following note in gropdf(1).

> Note that gropdf is currently only able to display the first 256
> glyphs in any font.  This restriction will be lifted in a later
> version.

So I made gropdf.patch, but applying is cumbersome...

If you do not plan to fix the above issues for a while,
I hope you will try the patch.

The patch is located at the following URL:
https://github.com/obuk/use-groff/blob/master/gropdf.patch

Thanks,

Koichi




Re: [groff] no header in Japanese manpages

2019-04-23 Thread KUBO Koichi



On 4/21/19 2:22 AM, Steffen Nurpmeso wrote:
> Hello.
> 
> KUBO Koichi wrote in <51fe9714-c2f9-5351-e4d5-aacc92fa0...@obuk.org>:
>  |I am using groff-1.22.4 on FreeBSD.
>  |After updating groff, I realized that there is no header in Japanese
>  |manpages using mdoc.tmac.  So I added the following line to
>  |mdoc.local:
>  |
>  |.if ((\n[.x]\n[.y] >= 122) & (\n[.Y] >= 4)) \{\
>  |.  if "\*[locale]"japanese" \{\
>  |.als doc-section-namesection-name
>  |.als doc-section-synopsissection-synopsis
>  |.als doc-section-description section-description
>  |.als doc-section-see-alsosection-see-also
>  |.als doc-section-files   section-files
>  |.als doc-section-authors section-authors
>  |.  \}
>  |.\}
>  |
>  |Please let me know if there are other things I have to do.
> 
> This should not be needed, the doc- is a shared prefix that will
> be stripped during installations, as it is not needed.  Whether it
> is good to strip it, i do not know.  I do not like it.  Namespaces
> would be much cooler, like being able to say "use namespace doc",
> but i cannot help it, at least not for the forseeable future.
> I am confident Ingo tested 1.22.4.
> 
> Out of interest, who needs this doc- prefix, actually?
> 
> --steffen

Thankyou for the explanation.

I added mdoc/ja.UTF-8 for Japanese manpages after installing
groff-1.22.4. To do that, I took mdoc/ja.eucJP from FreeBSD ports
ja-groff (groff-1.18.x) and converted it to UTF-8. I did not know to
profix doc- to the symbol, so I used it as it was. It seems that there
was a problem there.

Sorry for taking up your time.

koichi




[groff] no header in Japanese manpages

2019-04-19 Thread KUBO Koichi
Hello,

I am using groff-1.22.4 on FreeBSD.
After updating groff, I realized that there is no header in Japanese
manpages using mdoc.tmac.  So I added the following line to
mdoc.local:

.if ((\n[.x]\n[.y] >= 122) & (\n[.Y] >= 4)) \{\
.  if "\*[locale]"japanese" \{\

.als doc-section-namesection-name

.als doc-section-synopsissection-synopsis

.als doc-section-description section-description

.als doc-section-see-alsosection-see-also

.als doc-section-files   section-files

.als doc-section-authors section-authors

.  \}

.\}


Please let me know if there are other things I have to do.

thanks

Koichi