public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Problem with UNICODE and man pages encoding
@ 2007-02-22 19:38 jcd
  2007-02-22 22:50 ` Boyd Stephen Smith Jr.
  2007-02-23  8:44 ` Bo Ørsted Andresen
  0 siblings, 2 replies; 12+ messages in thread
From: jcd @ 2007-02-22 19:38 UTC (permalink / raw
  To: gentoo-user

Hi.
I converted my system to UNICODE with assistance 
http://gentoo-wiki.com/HOWTO_Make_your_system_use_unicode/utf-8. I 
re-encoded several files and several filenames. But my man-pages are 
still displayed with bad characters ('á' is 'á') in console even in X 
terminal emulator. I unmerged package (with local man pages 
'app-i18n/man-pages-cs'), deleted distfile and again merged but it 
remained same. So I had uncompressed one local man page and looked into 
raw text and there it is all right. I tried to changed line in 
/etc/make.conf:
Code:
NROFF           /usr/bin/nroff -Tascii -c -mandoc

to
Code:
NROFF           /usr/bin/nroff -Tutf8 -c -mandoc

and also according to comments to
Code:
NROFF           /usr/bin/nroff -c -mandoc.

In both cases result was same. Also I have correct fonts for my language 
and unicode use flag defined.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Problem with UNICODE and man pages encoding
  2007-02-22 19:38 [gentoo-user] Problem with UNICODE and man pages encoding jcd
@ 2007-02-22 22:50 ` Boyd Stephen Smith Jr.
  2007-02-23  8:44 ` Bo Ørsted Andresen
  1 sibling, 0 replies; 12+ messages in thread
From: Boyd Stephen Smith Jr. @ 2007-02-22 22:50 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1357 bytes --]

On Thursday 22 February 2007, jcd <jcd@seznam.cz> wrote 
about '[gentoo-user] Problem with UNICODE and man pages encoding':
> Hi.
> I converted my system to UNICODE with assistance
> http://gentoo-wiki.com/HOWTO_Make_your_system_use_unicode/utf-8.
> But my man-pages are 
> still displayed with bad characters ('á' is 'á') in console even in X
> terminal emulator.

> I tried to changed line in 
> /etc/make.conf:
> Code:
> NROFF           /usr/bin/nroff -Tascii -c -mandoc
>
> to
> Code:
> NROFF           /usr/bin/nroff -Tutf8 -c -mandoc
>
> and also according to comments to
> Code:
> NROFF           /usr/bin/nroff -c -mandoc.

1) Those lines aren't the correct format for make.conf.  Normally, you'd 
use something like:
VARIABLE="value"

2) NROFF isn't a valid make.conf variable.  See the make.conf(5) manpage 
for a list of valid make.conf variables.

I'm not sure exactly what you are trying to do, but I think it's more 
likely controlled by an nroff USE flag or configuration file than a 
portage configuration files.

-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss03@volumehost.net                      ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.org/                      \_/     
New GPG Key!  Old key expires 2007-03-25.  Upgrade NOW!

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Problem with UNICODE and man pages encoding
@ 2007-02-23  5:14 paulie.x
  2007-02-23 11:27 ` Boyd Stephen Smith Jr.
  0 siblings, 1 reply; 12+ messages in thread
From: paulie.x @ 2007-02-23  5:14 UTC (permalink / raw
  To: gentoo-user

Boyd Stephen Smith Jr. napsal(a):
> On Thursday 22 February 2007, jcd <jcd@seznam.cz> wrote
> about '[gentoo-user] Problem with UNICODE and man pages encoding':
>> Hi.
>> I converted my system to UNICODE with assistance
>> http://gentoo-wiki.com/HOWTO_Make_your_system_use_unicode/utf-8.
>> But my man-pages are
>> still displayed with bad characters ('á' is 'á') in console even in X
>> terminal emulator.
>
>> I tried to changed line in
>> /etc/make.conf:
>> Code:
>> NROFF           /usr/bin/nroff -Tascii -c -mandoc
>>
>> to
>> Code:
>> NROFF           /usr/bin/nroff -Tutf8 -c -mandoc
>>
>> and also according to comments to
>> Code:
>> NROFF           /usr/bin/nroff -c -mandoc.
>
> 1) Those lines aren't the correct format for make.conf.  Normally, you'd
> use something like:
> VARIABLE="value"
>
> 2) NROFF isn't a valid make.conf variable.  See the make.conf(5) manpage
> for a list of valid make.conf variables.
>
> I'm not sure exactly what you are trying to do, but I think it's more
> likely controlled by an nroff USE flag or configuration file than a
> portage configuration files.
>

OK. If it isn't correct format and NROFF isn't valid variable, then it is bug in gentoo package, because I just changed the parameters to /usr/bin/nroff. I also didn't find any suitale USE flag.
--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Problem with UNICODE and man pages encoding
  2007-02-22 19:38 [gentoo-user] Problem with UNICODE and man pages encoding jcd
  2007-02-22 22:50 ` Boyd Stephen Smith Jr.
@ 2007-02-23  8:44 ` Bo Ørsted Andresen
  1 sibling, 0 replies; 12+ messages in thread
From: Bo Ørsted Andresen @ 2007-02-23  8:44 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]

On Thursday 22 February 2007 20:38:02 jcd wrote:
> I converted my system to UNICODE with assistance
> http://gentoo-wiki.com/HOWTO_Make_your_system_use_unicode/utf-8. I
> re-encoded several files and several filenames. But my man-pages are
> still displayed with bad characters ('á' is 'á') in console even in X
> terminal emulator. I unmerged package (with local man pages
> 'app-i18n/man-pages-cs'), deleted distfile and again merged but it
> remained same. So I had uncompressed one local man page and looked into
> raw text and there it is all right. I tried to changed line in
> /etc/make.conf:
> Code:
> NROFF           /usr/bin/nroff -Tascii -c -mandoc
>
> to
> Code:
> NROFF           /usr/bin/nroff -Tutf8 -c -mandoc
>
> and also according to comments to
> Code:
> NROFF           /usr/bin/nroff -c -mandoc.
>
> In both cases result was same. Also I have correct fonts for my language
> and unicode use flag defined.

This thing is covered by [1]. It goes to man.conf. Not make.conf.

[1] http://www.gentoo.org/doc/en/utf-8.xml

-- 
Bo Andresen

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Problem with UNICODE and man pages encoding
  2007-02-23  5:14 paulie.x
@ 2007-02-23 11:27 ` Boyd Stephen Smith Jr.
  2007-02-23 12:27   ` Hans-Werner Hilse
  0 siblings, 1 reply; 12+ messages in thread
From: Boyd Stephen Smith Jr. @ 2007-02-23 11:27 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2870 bytes --]

On Thursday 22 February 2007 23:14, paulie.x wrote:
> Boyd Stephen Smith Jr. napsal(a):
> > On Thursday 22 February 2007, jcd <jcd@seznam.cz> wrote
> >
> > about '[gentoo-user] Problem with UNICODE and man pages encoding':
> >> Hi.
> >> I converted my system to UNICODE with assistance
> >> http://gentoo-wiki.com/HOWTO_Make_your_system_use_unicode/utf-8.
> >> But my man-pages are
> >> still displayed with bad characters ('á' is 'á') in console even in X
> >> terminal emulator.
> >>
> >> I tried to changed line in
> >> /etc/make.conf:
> >> Code:
> >> NROFF           /usr/bin/nroff -Tascii -c -mandoc

I don't have a line that looks anything like that in my make.conf

> >> to
> >> Code:
> >> NROFF           /usr/bin/nroff -Tutf8 -c -mandoc
> >
> > 1) Those lines aren't the correct format for make.conf.  Normally, 
you'd
> > use something like:
> > VARIABLE="value"
> >
> > 2) NROFF isn't a valid make.conf variable.  See the make.conf(5) 
manpage
> > for a list of valid make.conf variables.
> >
> > I'm not sure exactly what you are trying to do, but I think it's more
> > likely controlled by an nroff USE flag or configuration file than a
> > portage configuration files.
>
> OK. If it isn't correct format and NROFF isn't valid variable, then it is
> bug in gentoo package, because I just changed the parameters to
> /usr/bin/nroff. I also didn't find any suitale USE flag.

It's possible that you need to add this variable to some file 
under /etc/env.d, or perhaps add a global alias and/or function 
in /etc/profile.d, or maybe an nroff or man or other package configuration 
file.  I suppose make.conf could be used, but I'm fairly certain those 
variables aren't guaranteed to filter down to any subprocesses -- they are 
only meant to affect the behavior of ebuilds.

In /etc/env.d or /etc/make.conf you'll use the VARIABLE="value" syntax.  
In /etc/profile.d anything bash can handle will work.  For another 
configuration file, it might be totally different.

In any case, most packages don't provide a generic way to modify their 
default 
parameters (via environment variables or anything else), and I would guess 
that setting the NROFF variable to some value wouldn't actually change the 
way the nroff binary worked (but it could!).

It could very well be a bug but, you are going to have to be more specific 
about the behavior you are trying to achieve with that "make.conf" setting.  
Feel free to file at b.g.o. if you think this is a failing of the package 
or 
the portage system.

-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss03@volumehost.net                      ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.org/                      \_/     
New GPG Key!  Old key expires 2007-03-25.  Upgrade NOW!

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Problem with UNICODE and man pages encoding
@ 2007-02-23 11:43 paulie.x
  0 siblings, 0 replies; 12+ messages in thread
From: paulie.x @ 2007-02-23 11:43 UTC (permalink / raw
  To: gentoo-user

Boyd Stephen Smith Jr. napsal(a):
> On Thursday 22 February 2007 23:14, paulie.x wrote:
>> Boyd Stephen Smith Jr. napsal(a):
>>> On Thursday 22 February 2007, jcd <jcd@seznam.cz> wrote
>>>
>>> about '[gentoo-user] Problem with UNICODE and man pages encoding':
>>>> Hi.
>>>> I converted my system to UNICODE with assistance
>>>> http://gentoo-wiki.com/HOWTO_Make_your_system_use_unicode/utf-8.
>>>> But my man-pages are
>>>> still displayed with bad characters ('á' is 'á') in console even in X
>>>> terminal emulator.
>>>>
>>>> I tried to changed line in
>>>> /etc/make.conf:
>>>> Code:
>>>> NROFF           /usr/bin/nroff -Tascii -c -mandoc
>
> I don't have a line that looks anything like that in my make.conf
>
>>>> to
>>>> Code:
>>>> NROFF           /usr/bin/nroff -Tutf8 -c -mandoc
>>> 1) Those lines aren't the correct format for make.conf.  Normally, 
> you'd
>>> use something like:
>>> VARIABLE="value"
>>>
>>> 2) NROFF isn't a valid make.conf variable.  See the make.conf(5)
> manpage
>>> for a list of valid make.conf variables.
>>>
>>> I'm not sure exactly what you are trying to do, but I think it's more
>>> likely controlled by an nroff USE flag or configuration file than a
>>> portage configuration files.
>> OK. If it isn't correct format and NROFF isn't valid variable, then it is
>> bug in gentoo package, because I just changed the parameters to
>> /usr/bin/nroff. I also didn't find any suitale USE flag.
>
> It's possible that you need to add this variable to some file
> under /etc/env.d, or perhaps add a global alias and/or function
> in /etc/profile.d, or maybe an nroff or man or other package configuration
> file.  I suppose make.conf could be used, but I'm fairly certain those
> variables aren't guaranteed to filter down to any subprocesses -- they are
> only meant to affect the behavior of ebuilds.
>
> In /etc/env.d or /etc/make.conf you'll use the VARIABLE="value" syntax.
> In /etc/profile.d anything bash can handle will work.  For another
> configuration file, it might be totally different.
>
> In any case, most packages don't provide a generic way to modify their
> default
> parameters (via environment variables or anything else), and I would guess
> that setting the NROFF variable to some value wouldn't actually change the
> way the nroff binary worked (but it could!).
>
> It could very well be a bug but, you are going to have to be more specific
> about the behavior you are trying to achieve with that "make.conf" setting.
> Feel free to file at b.g.o. if you think this is a failing of the package
> or
> the portage system.
>

I just confused man.conf with make.conf... I meant man.conf in all messages. Sorry
--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Problem with UNICODE and man pages encoding
  2007-02-23 11:27 ` Boyd Stephen Smith Jr.
@ 2007-02-23 12:27   ` Hans-Werner Hilse
  0 siblings, 0 replies; 12+ messages in thread
From: Hans-Werner Hilse @ 2007-02-23 12:27 UTC (permalink / raw
  To: gentoo-user

Hi,

On Fri, 23 Feb 2007 05:27:08 -0600 "Boyd Stephen Smith Jr."
<bss03@volumehost.net> wrote:

> On Thursday 22 February 2007 23:14, paulie.x wrote:
> > Boyd Stephen Smith Jr. napsal(a):
> > > On Thursday 22 February 2007, jcd <jcd@seznam.cz> wrote
> > >
> > > about '[gentoo-user] Problem with UNICODE and man pages encoding':
> > >> Hi.
> > >> I converted my system to UNICODE with assistance
> > >> http://gentoo-wiki.com/HOWTO_Make_your_system_use_unicode/utf-8.
> > >> But my man-pages are
> > >> still displayed with bad characters ('á' is 'á') in console
> > >> even in X terminal emulator.
> > >>
> > >> I tried to changed line in
> > >> /etc/make.conf:
> > >> Code:
> > >> NROFF           /usr/bin/nroff -Tascii -c -mandoc
> 
> I don't have a line that looks anything like that in my make.conf

No, the poster most definitely meant to write man.conf instead of
make.conf.

That would be correct.

But his output looks like he already gets UTF-8 out of "man". He just
borked his terminal settings or is running a non-Unicode terminal.
Otherwise, there would just be one glyph for an unrecognized code
sequence, plus probably the following char being eaten.

So to the OP: Configure your terminal accordingly (for console: set
consoletrans and -font correctly) or if you didn't yet, install a
unicode-aware terminal program.

-hwh
--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Problem with UNICODE and man pages encoding
@ 2007-02-23 13:07 paulie.x
  2007-02-23 13:34 ` Hans-Werner Hilse
  0 siblings, 1 reply; 12+ messages in thread
From: paulie.x @ 2007-02-23 13:07 UTC (permalink / raw
  To: gentoo-user

Hans-Werner Hilse napsal(a):
> Hi,
>
> On Fri, 23 Feb 2007 05:27:08 -0600 "Boyd Stephen Smith Jr."
> <bss03@volumehost.net> wrote:
>
>> On Thursday 22 February 2007 23:14, paulie.x wrote:
>>> Boyd Stephen Smith Jr. napsal(a):
>>>> On Thursday 22 February 2007, jcd <jcd@seznam.cz> wrote
>>>>
>>>> about '[gentoo-user] Problem with UNICODE and man pages encoding':
>>>>> Hi.
>>>>> I converted my system to UNICODE with assistance
>>>>> http://gentoo-wiki.com/HOWTO_Make_your_system_use_unicode/utf-8.
>>>>> But my man-pages are
>>>>> still displayed with bad characters ('á' is 'á') in console
>>>>> even in X terminal emulator.
>>>>>
>>>>> I tried to changed line in
>>>>> /etc/make.conf:
>>>>> Code:
>>>>> NROFF           /usr/bin/nroff -Tascii -c -mandoc
>> I don't have a line that looks anything like that in my make.conf
>
> No, the poster most definitely meant to write man.conf instead of
> make.conf.
>
> That would be correct.
>
> But his output looks like he already gets UTF-8 out of "man". He just
> borked his terminal settings or is running a non-Unicode terminal.
> Otherwise, there would just be one glyph for an unrecognized code
> sequence, plus probably the following char being eaten.
>
> So to the OP: Configure your terminal accordingly (for console: set
> consoletrans and -font correctly) or if you didn't yet, install a
> unicode-aware terminal program.
>
> -hwh

It is not true because I'm already using UNICODE in terminal. Just man pages are still displayed worst. When I uncompressed one local man page and viewed raw text (cat man.1 | less) in my terminal, I can see correct UNICODE characters (among format sequences). Also in http://www.gentoo.org/doc/en/utf-8.xml is defined approach how to update man.conf to work with UNICODE (changing "NROFF /usr/bin/nroff -Tascii -c -mandoc" to "NROFF /usr/bin/nroff -c -mandoc"). I already tried it.
--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Problem with UNICODE and man pages encoding
  2007-02-23 13:07 paulie.x
@ 2007-02-23 13:34 ` Hans-Werner Hilse
  2007-02-23 17:40   ` jcd
                     ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Hans-Werner Hilse @ 2007-02-23 13:34 UTC (permalink / raw
  To: gentoo-user

Hi,

On Fri, 23 Feb 2007 14:07:52 +0100 (CET) paulie.x <JCD@seznam.cz> wrote:

> > So to the OP: Configure your terminal accordingly (for console: set
> > consoletrans and -font correctly) or if you didn't yet, install a
> > unicode-aware terminal program.
> 
> It is not true because I'm already using UNICODE in terminal.
> Just man pages are still displayed worst. When I uncompressed one local
> man page and viewed raw text (cat man.1 | less) in my terminal, I can
> see correct UNICODE characters (among format sequences).

Did you read the comment in man.conf? It says there is a problem with
double conversion to unicode but basically tells to use "nroff -mandoc"
without -T option for utf-8 output.

Sorry, but these are all my suggestions left...

-hwh
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Problem with UNICODE and man pages encoding
  2007-02-23 13:34 ` Hans-Werner Hilse
@ 2007-02-23 17:40   ` jcd
  2007-02-24  9:08   ` jcd
  2007-02-24  9:11   ` paulie.x
  2 siblings, 0 replies; 12+ messages in thread
From: jcd @ 2007-02-23 17:40 UTC (permalink / raw
  To: gentoo-user

Hans-Werner Hilse napsal(a):
> Hi,
> 
> On Fri, 23 Feb 2007 14:07:52 +0100 (CET) paulie.x <JCD@seznam.cz> wrote:
> 
>>> So to the OP: Configure your terminal accordingly (for console: set
>>> consoletrans and -font correctly) or if you didn't yet, install a
>>> unicode-aware terminal program.
>> It is not true because I'm already using UNICODE in terminal.
>> Just man pages are still displayed worst. When I uncompressed one local
>> man page and viewed raw text (cat man.1 | less) in my terminal, I can
>> see correct UNICODE characters (among format sequences).
> 
> Did you read the comment in man.conf? It says there is a problem with
> double conversion to unicode but basically tells to use "nroff -mandoc"
> without -T option for utf-8 output.
> 
> Sorry, but these are all my suggestions left...
> 
> -hwh

OK. This is in /etc/man.conf:

--------------------------------------------------------------------------
...

# Useful paths - note that COL should not be defined when
# NROFF is defined as "groff -Tascii" or "groff -Tlatin1";
# not only is it superfluous, but it actually damages the output.
# For use with utf-8, NROFF should be "nroff -mandoc" without -T option.
# (Maybe - but today I need -Tlatin1 to prevent double conversion to utf8.)
#
# If you have a new troff (version 1.18.1?) and its colored output
# causes problems, add the -c option to TROFF, NROFF, JNROFF.
#
TROFF           /usr/bin/groff -Tps -mandoc
NROFF           /usr/bin/nroff -Tascii -c -mandoc
JNROFF          /usr/bin/groff -Tnippon -mandocj
EQN             /usr/bin/geqn -Tps
NEQN            /usr/bin/geqn -Tlatin1
JNEQN           /usr/bin/geqn -Tnippon
TBL             /usr/bin/gtbl
# COL           /usr/bin/col
REFER           /usr/bin/refer
PIC             /usr/bin/pic
VGRIND
GRAP
PAGER           /usr/bin/less -is
BROWSER         /usr/bin/less -is
HTMLPAGER       /bin/cat
CAT             /bin/cat

...
--------------------------------------------------------------------------

Original gives for czech (cs_CZ.UTF-8 locale) word "zformátuje":

with origianl settings: "zformAituje"

I tried this changes:

NROFF           /usr/bin/nroff -c -mandoc

TROFF           /usr/bin/groff -Tlatin1 -mandoc
NROFF           /usr/bin/nroff -c -mandoc

NROFF           /usr/bin/nroff -Tutf8 -c -mandoc

TROFF           /usr/bin/groff -Tlatin1 -mandoc
NROFF           /usr/bin/nroff -Tutf8 -c -mandoc

but all gives "zformátuje".

Maybe this is just some stupid and irrelevant problem. But I think that 
good localization and i18n of Gentoo will be good for linux on desktops 
( show that linux can do it ;] ). And probably I'm not such a good 
programmer to find others mistakes (But I'm interested to know the cause).

--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Problem with UNICODE and man pages encoding
  2007-02-23 13:34 ` Hans-Werner Hilse
  2007-02-23 17:40   ` jcd
@ 2007-02-24  9:08   ` jcd
  2007-02-24  9:11   ` paulie.x
  2 siblings, 0 replies; 12+ messages in thread
From: jcd @ 2007-02-24  9:08 UTC (permalink / raw
  To: gentoo-user

Hans-Werner Hilse napsal(a):
> Hi,
> 
> On Fri, 23 Feb 2007 14:07:52 +0100 (CET) paulie.x <JCD@seznam.cz> wrote:
> 
>>> So to the OP: Configure your terminal accordingly (for console: set
>>> consoletrans and -font correctly) or if you didn't yet, install a
>>> unicode-aware terminal program.
>> It is not true because I'm already using UNICODE in terminal.
>> Just man pages are still displayed worst. When I uncompressed one local
>> man page and viewed raw text (cat man.1 | less) in my terminal, I can
>> see correct UNICODE characters (among format sequences).
> 
> Did you read the comment in man.conf? It says there is a problem with
> double conversion to unicode but basically tells to use "nroff -mandoc"
> without -T option for utf-8 output.
> 
> Sorry, but these are all my suggestions left...
> 
> -hwh

OK. This is in /etc/man.conf:

--------------------------------------------------------------------------
...

# Useful paths - note that COL should not be defined when
# NROFF is defined as "groff -Tascii" or "groff -Tlatin1";
# not only is it superfluous, but it actually damages the output.
# For use with utf-8, NROFF should be "nroff -mandoc" without -T option.
# (Maybe - but today I need -Tlatin1 to prevent double conversion to utf8.)
#
# If you have a new troff (version 1.18.1?) and its colored output
# causes problems, add the -c option to TROFF, NROFF, JNROFF.
#
TROFF           /usr/bin/groff -Tps -mandoc
NROFF           /usr/bin/nroff -Tascii -c -mandoc
JNROFF          /usr/bin/groff -Tnippon -mandocj
EQN             /usr/bin/geqn -Tps
NEQN            /usr/bin/geqn -Tlatin1
JNEQN           /usr/bin/geqn -Tnippon
TBL             /usr/bin/gtbl
# COL           /usr/bin/col
REFER           /usr/bin/refer
PIC             /usr/bin/pic
VGRIND
GRAP
PAGER           /usr/bin/less -is
BROWSER         /usr/bin/less -is
HTMLPAGER       /bin/cat
CAT             /bin/cat

...
--------------------------------------------------------------------------

Original gives for czech (cs_CZ.UTF-8 locale) word "zformátuje":

with origianl settings: "zformAituje"

I tried this changes:

NROFF           /usr/bin/nroff -c -mandoc

TROFF           /usr/bin/groff -Tlatin1 -mandoc
NROFF           /usr/bin/nroff -c -mandoc

NROFF           /usr/bin/nroff -Tutf8 -c -mandoc

TROFF           /usr/bin/groff -Tlatin1 -mandoc
NROFF           /usr/bin/nroff -Tutf8 -c -mandoc

but all gives "zformátuje".

Maybe this is just some stupid and irrelevant problem. But I think that
good localization and i18n of Gentoo will be good for linux on desktops
( show that linux can do it ;] ). And probably I'm not such a good
programmer to find others mistakes (But I'm interested to know the cause).



--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Problem with UNICODE and man pages encoding
  2007-02-23 13:34 ` Hans-Werner Hilse
  2007-02-23 17:40   ` jcd
  2007-02-24  9:08   ` jcd
@ 2007-02-24  9:11   ` paulie.x
  2 siblings, 0 replies; 12+ messages in thread
From: paulie.x @ 2007-02-24  9:11 UTC (permalink / raw
  To: gentoo-user

Hans-Werner Hilse napsal(a):
> Hi,
> 
> On Fri, 23 Feb 2007 14:07:52 +0100 (CET) paulie.x <JCD@seznam.cz> wrote:
> 
>>> So to the OP: Configure your terminal accordingly (for console: set
>>> consoletrans and -font correctly) or if you didn't yet, install a
>>> unicode-aware terminal program.
>> It is not true because I'm already using UNICODE in terminal.
>> Just man pages are still displayed worst. When I uncompressed one local
>> man page and viewed raw text (cat man.1 | less) in my terminal, I can
>> see correct UNICODE characters (among format sequences).
> 
> Did you read the comment in man.conf? It says there is a problem with
> double conversion to unicode but basically tells to use "nroff -mandoc"
> without -T option for utf-8 output.
> 
> Sorry, but these are all my suggestions left...
> 
> -hwh

OK. This is in /etc/man.conf:

--------------------------------------------------------------------------
...

# Useful paths - note that COL should not be defined when
# NROFF is defined as "groff -Tascii" or "groff -Tlatin1";
# not only is it superfluous, but it actually damages the output.
# For use with utf-8, NROFF should be "nroff -mandoc" without -T option.
# (Maybe - but today I need -Tlatin1 to prevent double conversion to utf8.)
#
# If you have a new troff (version 1.18.1?) and its colored output
# causes problems, add the -c option to TROFF, NROFF, JNROFF.
#
TROFF           /usr/bin/groff -Tps -mandoc
NROFF           /usr/bin/nroff -Tascii -c -mandoc
JNROFF          /usr/bin/groff -Tnippon -mandocj
EQN             /usr/bin/geqn -Tps
NEQN            /usr/bin/geqn -Tlatin1
JNEQN           /usr/bin/geqn -Tnippon
TBL             /usr/bin/gtbl
# COL           /usr/bin/col
REFER           /usr/bin/refer
PIC             /usr/bin/pic
VGRIND
GRAP
PAGER           /usr/bin/less -is
BROWSER         /usr/bin/less -is
HTMLPAGER       /bin/cat
CAT             /bin/cat

...
--------------------------------------------------------------------------

Original gives for czech (cs_CZ.UTF-8 locale) word "zformátuje":

with origianl settings: "zformAituje"

I tried this changes:

NROFF           /usr/bin/nroff -c -mandoc

TROFF           /usr/bin/groff -Tlatin1 -mandoc
NROFF           /usr/bin/nroff -c -mandoc

NROFF           /usr/bin/nroff -Tutf8 -c -mandoc

TROFF           /usr/bin/groff -Tlatin1 -mandoc
NROFF           /usr/bin/nroff -Tutf8 -c -mandoc

but all gives "zformátuje".

Maybe this is just some stupid and irrelevant problem. But I think that
good localization and i18n of Gentoo will be good for linux on desktops
( show that linux can do it ;] ). And probably I'm not such a good
programmer to find others mistakes (But I'm interested to know the cause).





--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-02-24  9:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-22 19:38 [gentoo-user] Problem with UNICODE and man pages encoding jcd
2007-02-22 22:50 ` Boyd Stephen Smith Jr.
2007-02-23  8:44 ` Bo Ørsted Andresen
  -- strict thread matches above, loose matches on Subject: below --
2007-02-23  5:14 paulie.x
2007-02-23 11:27 ` Boyd Stephen Smith Jr.
2007-02-23 12:27   ` Hans-Werner Hilse
2007-02-23 11:43 paulie.x
2007-02-23 13:07 paulie.x
2007-02-23 13:34 ` Hans-Werner Hilse
2007-02-23 17:40   ` jcd
2007-02-24  9:08   ` jcd
2007-02-24  9:11   ` paulie.x

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox