Re: [gentoo-user] Problem with UNICODE and man pages encoding

2007-02-24 Thread jcd

Hans-Werner Hilse napsal(a):

Hi,

On Fri, 23 Feb 2007 14:07:52 +0100 (CET) paulie.x [EMAIL PROTECTED] 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



Re: [gentoo-user] Problem with UNICODE and man pages encoding

2007-02-24 Thread paulie.x

Hans-Werner Hilse napsal(a):

Hi,

On Fri, 23 Feb 2007 14:07:52 +0100 (CET) paulie.x [EMAIL PROTECTED] 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



Re: [gentoo-user] Problem with UNICODE and man pages encoding

2007-02-23 Thread Bo Ørsted Andresen
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


pgpuoE1rmTpLV.pgp
Description: PGP signature


Re: [gentoo-user] Problem with UNICODE and man pages encoding

2007-02-23 Thread Boyd Stephen Smith Jr.
On Thursday 22 February 2007 23:14, paulie.x wrote:
 Boyd Stephen Smith Jr. napsal(a):
  On Thursday 22 February 2007, jcd [EMAIL PROTECTED] 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. ,= ,-_-. =. 
[EMAIL PROTECTED]  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy   `-'(. .)`-' 
http://iguanasuicide.org/  \_/ 
New GPG Key!  Old key expires 2007-03-25.  Upgrade NOW!


pgp4k13v27WPY.pgp
Description: PGP signature


Re: [gentoo-user] Problem with UNICODE and man pages encoding

2007-02-23 Thread paulie . x
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 [EMAIL PROTECTED] 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



Re: [gentoo-user] Problem with UNICODE and man pages encoding

2007-02-23 Thread Hans-Werner Hilse
Hi,

On Fri, 23 Feb 2007 05:27:08 -0600 Boyd Stephen Smith Jr.
[EMAIL PROTECTED] wrote:

 On Thursday 22 February 2007 23:14, paulie.x wrote:
  Boyd Stephen Smith Jr. napsal(a):
   On Thursday 22 February 2007, jcd [EMAIL PROTECTED] 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



Re: [gentoo-user] Problem with UNICODE and man pages encoding

2007-02-23 Thread paulie . x
Hans-Werner Hilse napsal(a):
 Hi,

 On Fri, 23 Feb 2007 05:27:08 -0600 Boyd Stephen Smith Jr.
 [EMAIL PROTECTED] wrote:

 On Thursday 22 February 2007 23:14, paulie.x wrote:
 Boyd Stephen Smith Jr. napsal(a):
 On Thursday 22 February 2007, jcd [EMAIL PROTECTED] 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



Re: [gentoo-user] Problem with UNICODE and man pages encoding

2007-02-23 Thread Hans-Werner Hilse
Hi,

On Fri, 23 Feb 2007 14:07:52 +0100 (CET) paulie.x [EMAIL PROTECTED] 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



Re: [gentoo-user] Problem with UNICODE and man pages encoding

2007-02-23 Thread jcd

Hans-Werner Hilse napsal(a):

Hi,

On Fri, 23 Feb 2007 14:07:52 +0100 (CET) paulie.x [EMAIL PROTECTED] 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



Re: [gentoo-user] Problem with UNICODE and man pages encoding

2007-02-22 Thread Boyd Stephen Smith Jr.
On Thursday 22 February 2007, jcd [EMAIL PROTECTED] 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. ,= ,-_-. =. 
[EMAIL PROTECTED]  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy   `-'(. .)`-' 
http://iguanasuicide.org/  \_/ 
New GPG Key!  Old key expires 2007-03-25.  Upgrade NOW!


pgppZ5luGN04j.pgp
Description: PGP signature


Re: [gentoo-user] Problem with UNICODE and man pages encoding

2007-02-22 Thread paulie . x
Boyd Stephen Smith Jr. napsal(a):
 On Thursday 22 February 2007, jcd [EMAIL PROTECTED] 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