public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Setting LANG/LC_ALL to html
@ 2009-02-06 15:12 Frank Schwidom
  2009-02-06 15:25 ` AllenJB
  2009-02-07 17:26 ` [gentoo-user] " Nikos Chantziaras
  0 siblings, 2 replies; 9+ messages in thread
From: Frank Schwidom @ 2009-02-06 15:12 UTC (permalink / raw
  To: gentoo-user

Hi,

im searching for a suitable package which provides locales for html. Is
there any existing known package? When not, is it possible to create
such a package, and how?

Regards



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

* Re: [gentoo-user] Setting LANG/LC_ALL to html
  2009-02-06 15:12 [gentoo-user] Setting LANG/LC_ALL to html Frank Schwidom
@ 2009-02-06 15:25 ` AllenJB
  2009-02-06 19:41   ` Frank Schwidom
  2009-02-07 17:26 ` [gentoo-user] " Nikos Chantziaras
  1 sibling, 1 reply; 9+ messages in thread
From: AllenJB @ 2009-02-06 15:25 UTC (permalink / raw
  To: gentoo-user

Frank Schwidom wrote:
> Hi,
> 
> im searching for a suitable package which provides locales for html. Is
> there any existing known package? When not, is it possible to create
> such a package, and how?
> 
> Regards
> 
What exactly are you trying to do?

LANG usually specifies the language you want software to use while 
LC_ALL usually specifies the locale settings (things like what format do 
you want long numbers in) software should use.

AllenJB



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

* Re: [gentoo-user] Setting LANG/LC_ALL to html
  2009-02-06 19:41   ` Frank Schwidom
@ 2009-02-06 18:56     ` b.n.
  2009-02-07 13:10       ` Frank Schwidom
  2009-02-06 19:08     ` Sebastian Günther
  1 sibling, 1 reply; 9+ messages in thread
From: b.n. @ 2009-02-06 18:56 UTC (permalink / raw
  To: gentoo-user

Frank Schwidom ha scritto:
> On Fri, Feb 06, 2009 at 03:25:11PM +0000, AllenJB wrote:
>> Frank Schwidom wrote:
>>> Hi,
>>> im searching for a suitable package which provides locales for html. Is
>>> there any existing known package? When not, is it possible to create
>>> such a package, and how?
>>> Regards
>> What exactly are you trying to do?
>>
>> LANG usually specifies the language you want software to use while LC_ALL 
>> usually specifies the locale settings (things like what format do you want 
>> long numbers in) software should use.
>>
>> AllenJB
> 
> I want to handle html-files like UTF-8 or ISO-8859-1 files.
> 

You should setup unicode in your use flags, I think.

m,



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

* Re: [gentoo-user] Setting LANG/LC_ALL to html
  2009-02-06 19:41   ` Frank Schwidom
  2009-02-06 18:56     ` b.n.
@ 2009-02-06 19:08     ` Sebastian Günther
  1 sibling, 0 replies; 9+ messages in thread
From: Sebastian Günther @ 2009-02-06 19:08 UTC (permalink / raw
  To: gentoo-user

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

* Frank Schwidom (schwidom@gmx.net) [06.02.09 19:43]:
> On Fri, Feb 06, 2009 at 03:25:11PM +0000, AllenJB wrote:
> 
> I want to handle html-files like UTF-8 or ISO-8859-1 files.
> 
???

Where, why, whatfor?

I still not get it.

-vv

More context: Any specific app, any special purpose and what's not 
working as you wish.

> Regards
> 

Sebastian

-- 
 " Religion ist das Opium des Volkes. "      Karl Marx

 SEB@STI@N GÜNTHER         mailto:samson@guenther-roetgen.de

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

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

* Re: [gentoo-user] Setting LANG/LC_ALL to html
  2009-02-06 15:25 ` AllenJB
@ 2009-02-06 19:41   ` Frank Schwidom
  2009-02-06 18:56     ` b.n.
  2009-02-06 19:08     ` Sebastian Günther
  0 siblings, 2 replies; 9+ messages in thread
From: Frank Schwidom @ 2009-02-06 19:41 UTC (permalink / raw
  To: gentoo-user

On Fri, Feb 06, 2009 at 03:25:11PM +0000, AllenJB wrote:
> Frank Schwidom wrote:
>> Hi,
>> im searching for a suitable package which provides locales for html. Is
>> there any existing known package? When not, is it possible to create
>> such a package, and how?
>> Regards
> What exactly are you trying to do?
>
> LANG usually specifies the language you want software to use while LC_ALL 
> usually specifies the locale settings (things like what format do you want 
> long numbers in) software should use.
>
> AllenJB

I want to handle html-files like UTF-8 or ISO-8859-1 files.

Regards



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

* Re: [gentoo-user] Setting LANG/LC_ALL to html
  2009-02-07 13:10       ` Frank Schwidom
@ 2009-02-07 12:19         ` Neil Bothwick
  2009-02-07 18:39           ` Jesús Guerrero
  0 siblings, 1 reply; 9+ messages in thread
From: Neil Bothwick @ 2009-02-07 12:19 UTC (permalink / raw
  To: gentoo-user

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

On Sat, 7 Feb 2009 13:10:31 +0000, Frank Schwidom wrote:

> I expect, if LANG is set to html (if this locale would exist), that if a
> file a.html contains <&gt;> and i make 'cat a.html' then '<' sould
> appear on the console. Is the locale system flexible enough to do this?

That's not what locale is intended for. Even if it were, it wouldn't
affect the output of cat, whose job is to display the contents of the
file verbatim.

Try html2text a.html.


-- 
Neil Bothwick

...context...

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: [gentoo-user] Setting LANG/LC_ALL to html
  2009-02-06 18:56     ` b.n.
@ 2009-02-07 13:10       ` Frank Schwidom
  2009-02-07 12:19         ` Neil Bothwick
  0 siblings, 1 reply; 9+ messages in thread
From: Frank Schwidom @ 2009-02-07 13:10 UTC (permalink / raw
  To: gentoo-user

On Fri, Feb 06, 2009 at 07:56:15PM +0100, b.n. wrote:
> Frank Schwidom ha scritto:
> > On Fri, Feb 06, 2009 at 03:25:11PM +0000, AllenJB wrote:
> >> Frank Schwidom wrote:
> >>> Hi,
> >>> im searching for a suitable package which provides locales for html. Is
> >>> there any existing known package? When not, is it possible to create
> >>> such a package, and how?
> >>> Regards
> >> What exactly are you trying to do?
> >>
> >> LANG usually specifies the language you want software to use while LC_ALL 
> >> usually specifies the locale settings (things like what format do you want 
> >> long numbers in) software should use.
> >>
> >> AllenJB
> > 
> > I want to handle html-files like UTF-8 or ISO-8859-1 files.
> > 
> 
> You should setup unicode in your use flags, I think.
> 
> m,


I expect, if LANG is set to html (if this locale would exist), that if a
file a.html contains <&gt;> and i make 'cat a.html' then '<' sould
appear on the console. Is the locale system flexible enough to do this?

Regards




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

* [gentoo-user]  Re: Setting LANG/LC_ALL to html
  2009-02-06 15:12 [gentoo-user] Setting LANG/LC_ALL to html Frank Schwidom
  2009-02-06 15:25 ` AllenJB
@ 2009-02-07 17:26 ` Nikos Chantziaras
  1 sibling, 0 replies; 9+ messages in thread
From: Nikos Chantziaras @ 2009-02-07 17:26 UTC (permalink / raw
  To: gentoo-user

Frank Schwidom wrote:
> Hi,
> 
> im searching for a suitable package which provides locales for html.

HTML is NOT a character encoding.  Therefore, you cannot do that.




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

* Re: [gentoo-user] Setting LANG/LC_ALL to html
  2009-02-07 12:19         ` Neil Bothwick
@ 2009-02-07 18:39           ` Jesús Guerrero
  0 siblings, 0 replies; 9+ messages in thread
From: Jesús Guerrero @ 2009-02-07 18:39 UTC (permalink / raw
  To: gentoo-user







El Sab, 7 de Febrero de 2009, 13:19, Neil Bothwick escribió:
> On Sat, 7 Feb 2009 13:10:31 +0000, Frank Schwidom wrote:
>
>
>> I expect, if LANG is set to html (if this locale would exist), that if
>> a file a.html contains <&gt;> and i make 'cat a.html' then '<' sould
>> appear on the console. Is the locale system flexible enough to do this?
>>
>
> That's not what locale is intended for. Even if it were, it wouldn't
> affect the output of cat, whose job is to display the contents of the file
> verbatim.
>
> Try html2text a.html.

Sorry to both for sounding like an asshole, but I can't resist.

There are programs that can output html files properly, they
are called "web browsers". Use lynx, links, elinks, w3m or
whatever fits you to "cat" html files.

What the OP want can't be achieved with locales, at least I
can't think of a way though I am admittedly no expert in the
internals of the localization subsystem.

Cheers.
-- 
Jesús Guerrero





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

end of thread, other threads:[~2009-02-07 18:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-06 15:12 [gentoo-user] Setting LANG/LC_ALL to html Frank Schwidom
2009-02-06 15:25 ` AllenJB
2009-02-06 19:41   ` Frank Schwidom
2009-02-06 18:56     ` b.n.
2009-02-07 13:10       ` Frank Schwidom
2009-02-07 12:19         ` Neil Bothwick
2009-02-07 18:39           ` Jesús Guerrero
2009-02-06 19:08     ` Sebastian Günther
2009-02-07 17:26 ` [gentoo-user] " Nikos Chantziaras

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