Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: nice summary-format
       [not found] ` <87ekt3m5cp.fsf@users.sourceforge.net>
@ 2004-02-11 21:39   ` Ted Zlatanov
       [not found]   ` <4noes5lid9.fsf@collins.bwh.harvard.edu>
  1 sibling, 0 replies; 8+ messages in thread
From: Ted Zlatanov @ 2004-02-11 21:39 UTC (permalink / raw)


On Tue, 10 Feb 2004, jornd@users.sourceforge.net wrote:

> Well. I just use
> 
> (setq gnus-summary-line-format
>       "%U%R %10&user-date; %6i  %B %(%4L: %*%-25,25a%) %s \n"
>       gnus-summary-same-subject ""
>       gnus-sum-thread-tree-root "•"
>       gnus-sum-thread-tree-single-indent "•"
>       gnus-sum-thread-tree-leaf-with-other "├─>"
>       gnus-sum-thread-tree-vertical "│"
>       gnus-sum-thread-tree-single-leaf "└─>"
>       )
> 
> which I happen to like, particularly together with
> 
> (setq gnus-build-sparse-threads 'all)
> 
> but I may be crazy.  It uses some unicode characters, though.  And
> no fancy colors :-)

Weird, I get this summary:

O   Tue 12:21      0  •   16: Dimitar Georgiev          O'Reilly 
O   Tue 18:36      0  └─>   28: USmivka                    
O   Tue  2:21      0  >    63: Nicolas M Kostoff         Re: Bylgarsko radio v interneta 
O   Tue  3:44      0    └─>   69: Emil Petkov                
O        4:55      0      ├─>    7: Emil Petkov               Svilen Stoicheff 
O   Tue 15:39      0      └─>   18: Chris D                   Re: Bylgarsko radio v interneta 

I love how it looks, but the ">" thread indicator is shifting the
third line to the right by 1 space (the "63:" and everything after it
should be 1 space to the left).

Any suggestions?

Thanks
Ted


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

* Re: Gnus doesn't load with Unicode chars in .gnus.el
       [not found]       ` <87fzdgeit8.fsf@caracolito.lan>
@ 2004-02-12 10:32         ` Reiner Steib
  2004-02-12 14:27           ` Fabian Braennstroem
       [not found]           ` <4nfzdg4ipu.fsf@collins.bwh.harvard.edu>
  0 siblings, 2 replies; 8+ messages in thread
From: Reiner Steib @ 2004-02-12 10:32 UTC (permalink / raw)


On Thu, Feb 12 2004, Artem Baguinski wrote:

> Jørn Helge B. Dahl <jornd@users.sourceforge.net> writes:
[...]
>> I have a UTF-8-enabled locale, and I use
>>
>>   (setq locale-coding-system 'utf-8)
>>   (set-terminal-coding-system 'utf-8)
>>   (set-keyboard-coding-system 'utf-8)
>>   (set-selection-coding-system 'utf-8)
>>   (prefer-coding-system 'utf-8)
>
> i think just having utf-8 locale is enough, 

Often people change too many of the *-coding-system-* stuff without
being aware of the consequences and run into problems later.  Usually
it's enough to set the systems locale or use
`set-language-environment' in Emacs.

> because [having used emacs / gnus only a week and not knowing much
> configuration options yet] i simply pasted the fragment with unicode
> arrows into my .gnus and it worked right away.

This depends only on the coding used for reading the .gnus.el file
(using a cookie as suggested, or putting the Unicode arrows stuff in a
separate file including a cookie).  

The locale and coding settings in Emacs are independent of this.  You
can use Unicode arrows in the summary with any locale and coding
system settings (e.g. I use a Latin-1 locale).

> hmm... that sounds useful: many of my russian friends prefer letters
> in koi8, i guess i can make it 
>
>   (setq mm-coding-system-priorities '(iso-8859-1 koi-8 utf-8))
>
> then... or i have to find how to say "koi8" in emacsish...

In the Summary buffer, `1 g koi TAB TAB' will give you a list of
available charsets.  I guess you want "koi8-r".  In
`mm-coding-system-priorities' you can use MIME charsets (in Gnus 5.10,
not in earlier Oort versions and 5.8/5.9) or Emacs coding systems.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/


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

* Re: Gnus doesn't load with Unicode chars in .gnus.el
  2004-02-12 10:32         ` Gnus doesn't load with Unicode chars in .gnus.el Reiner Steib
@ 2004-02-12 14:27           ` Fabian Braennstroem
       [not found]             ` <v9n07ofkbx.fsf@marauder.physik.uni-ulm.de>
       [not found]           ` <4nfzdg4ipu.fsf@collins.bwh.harvard.edu>
  1 sibling, 1 reply; 8+ messages in thread
From: Fabian Braennstroem @ 2004-02-12 14:27 UTC (permalink / raw)


Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes:

> On Thu, Feb 12 2004, Artem Baguinski wrote:
>
>> Jørn Helge B. Dahl <jornd@users.sourceforge.net> writes:
> [...]
>>> I have a UTF-8-enabled locale, and I use
>>>
>>>   (setq locale-coding-system 'utf-8)
>>>   (set-terminal-coding-system 'utf-8)
>>>   (set-keyboard-coding-system 'utf-8)
>>>   (set-selection-coding-system 'utf-8)
>>>   (prefer-coding-system 'utf-8)
>>
>> i think just having utf-8 locale is enough, 
>
> Often people change too many of the *-coding-system-* stuff without
> being aware of the consequences and run into problems later.  Usually
> it's enough to set the systems locale or use
> `set-language-environment' in Emacs.
>
>> because [having used emacs / gnus only a week and not knowing much
>> configuration options yet] i simply pasted the fragment with unicode
>> arrows into my .gnus and it worked right away.
>
> This depends only on the coding used for reading the .gnus.el file
> (using a cookie as suggested, or putting the Unicode arrows stuff in a
> separate file including a cookie).  
>
> The locale and coding settings in Emacs are independent of this.  You
> can use Unicode arrows in the summary with any locale and coding
> system settings (e.g. I use a Latin-1 locale).
>
I still have problems setting up unicode chars for emacs/debian.

locale says:

fab@rechner1:~$ locale
LANG=de_DE.UTF-8@euro
LC_CTYPE="de_DE.UTF-8@euro"
LC_NUMERIC="de_DE.UTF-8@euro"
LC_TIME="de_DE.UTF-8@euro"
LC_COLLATE="de_DE.UTF-8@euro"
LC_MONETARY="de_DE.UTF-8@euro"
LC_MESSAGES="de_DE.UTF-8@euro"
LC_PAPER="de_DE.UTF-8@euro"
LC_NAME="de_DE.UTF-8@euro"
LC_ADDRESS="de_DE.UTF-8@euro"
LC_TELEPHONE="de_DE.UTF-8@euro"
LC_MEASUREMENT="de_DE.UTF-8@euro"
LC_IDENTIFICATION="de_DE.UTF-8@euro"
LC_ALL=

and

fab@rechner1:~$ locale charmap
UTF-8


 (setq gnus-sum-thread-tree-root "┌▶")
 (setq gnus-sum-thread-tree-false-root "  ")
 (setq gnus-sum-thread-tree-single-indent " ▷")
 (setq gnus-sum-thread-tree-leaf-with-other "├┬►")
 (setq gnus-sum-thread-tree-vertical "│")
 (setq gnus-sum-thread-tree-single-leaf "╰─►")
 (setq gnus-sum-thread-tree-indent "  ")

But I don't see them in my summary buffer. When I copy the summary-buffer it
looks nice; only the spaces between the vertical lines should be different:

| ● nice summary-format
O  =|Di 14:28  || Jørn Helge B. Dahl      |    0|  2.5k | ├─► 
O  =|Mi 16:56  || Ted Zlatanov            |    0|  1.8k | │├─► Gnus doesn't load with Unicode chars in .gnus.el (was: nice summary-format)
O  =|Mi 17:22  || Yair Friedman           |    0|  1.9k | ││├─► 
O  =|Mi 22:29  || Ted Zlatanov            |    0|  1.5k | │││╰─► Re: Gnus doesn't load with Unicode chars in .gnus.el
%  =|Mi 18:02  || Jørn Helge B. Dahl      |    0|  2.7k | ││╰─► Re: Gnus doesn't load with Unicode chars in .gnus.el (was: nice summary-format)
O  =|10:41     || Artem Baguinski         |    0|  2.1k | ││  ╰─► Re: Gnus doesn't load with Unicode chars in .gnus.el
R  =|11:32     || Reiner Steib            |    0|  3.1k | ││    ╰─► 
O  =|Mi 22:39  || Ted Zlatanov            |    0|  2.3k | │╰─►

Any hints?
Greetings!
-- 
Fabian Braennstroem
Duesseldorf/Berlin


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

* Re: Gnus doesn't load with Unicode chars in .gnus.el
       [not found]           ` <4nfzdg4ipu.fsf@collins.bwh.harvard.edu>
@ 2004-02-12 14:30             ` Reiner Steib
  0 siblings, 0 replies; 8+ messages in thread
From: Reiner Steib @ 2004-02-12 14:30 UTC (permalink / raw)


On Thu, Feb 12 2004, Ted Zlatanov wrote:

> On Thu, 12 Feb 2004, 4.uce.03.r.s@nurfuerspam.de wrote:
>
>> Often people change too many of the *-coding-system-* stuff without
>> being aware of the consequences and run into problems later.
>> Usually it's enough to set the systems locale or use
>> `set-language-environment' in Emacs.
>
> I do this currently:
>
> (set-coding-priority '(coding-category-utf-8))
> (set-language-environment "UTF-8")

[ JFTR: This is new in 21.3 ]

> (setq locale-coding-system 'utf-8)
> (set-selection-coding-system 'utf-8)
> (prefer-coding-system 'utf-8)
>
> I use too many utf-8 unaware programs on some systems, so I prefer
> to leave the locale to default on those systems and have just Emacs
> (Gnus, mainly) be utf-8 enabled.  Is this sensible?

I don't know the details of the abovementioned settings, so I would
just rely on Emacs to do the right thing.  :-)

Something like »alias emacs='LC_CTYPE=de_DE.utf8 emacs'« might do
this.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/


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

* Re: Gnus doesn't load with Unicode chars in .gnus.el
       [not found]               ` <87bro4dnhp.fsf@rechner1.ddorf.de>
@ 2004-02-12 20:00                 ` Reiner Steib
       [not found]                   ` <873c9fhnxo.fsf@rechner1.ddorf.de>
  0 siblings, 1 reply; 8+ messages in thread
From: Reiner Steib @ 2004-02-12 20:00 UTC (permalink / raw)


On Thu, Feb 12 2004, Fabian Braennstroem wrote:

> Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes:
[...]
>> Sorry, I don't understand what you did and what you see.
> I mean that I can clearly the arrows in my lisp-part; opening the summary I
> don't see any arrow, but small squares. I copied a part from the summary
> to my article-buffer; there, as you can see too, the squares changed to the
> wanted arrows. So Emacs is able to display them right.

Ah, I see.  In the summary, the symbols are displayed as rectangles
(squares) when the line is bold or italics or some other face
different from the face in the other buffer.  Correct?  This means
that your default font for mule-unicode-* in Emacs is missing the bold
and/or italic glyphs.  (Same problem Ted mentioned in
<news:4n65ecqmtb.fsf@collins.bwh.harvard.edu>.)

Then you'll have two possibilities:

1) Install a font has has the glyphs, e.g. the efont-unicode package
   on SuSE.  On MGO the packages for Debian and Gentoo are mentioned,
   IIRC.

   See the thread around [1] (in the German Gnus newsgroup) for
   all the details.

2) Using %1{%B%} and `gnus-summary-line-format' to specify a non-bold
   display of the tree indicators in the summary, see the function
   `rs-gnus-summary-line-initialize' in my `rs-gnus-summary.el'.

  (copy-face 'default 'rs-gnus-face-1)
  (setq gnus-face-1 'rs-gnus-face-1)
  ;; Set line format:
  (setq gnus-summary-line-format
	"... %1{%B%} ...\n")

  I'm not sure if this is the recommended way to do this.  I don't
  really understand Emacs' font business.

Bye, Reiner.

[1] <news:dcsg.m3isqr7ppc.fsf@beldin.mt743742.dialup.rwth-aachen.de>

    <URL:http://groups.google.com/groups?rnum=1&
    threadm=dcsg.m3isqr7ppc.fsf%40beldin.mt743742.dialup.rwth-aachen.de>
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/


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

* Re: Gnus doesn't load with Unicode chars in .gnus.el
       [not found]                   ` <873c9fhnxo.fsf@rechner1.ddorf.de>
@ 2004-02-13  8:58                     ` Reiner Steib
       [not found]                       ` <87d68j41it.fsf@rechner1.ddorf.de>
  0 siblings, 1 reply; 8+ messages in thread
From: Reiner Steib @ 2004-02-13  8:58 UTC (permalink / raw)


On Fri, Feb 13 2004, Fabian Braennstroem wrote:

> Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes:
[...]
>> 2) Using %1{%B%} and `gnus-summary-line-format' to specify a non-bold
>>    display of the tree indicators in the summary, see the function
>>    `rs-gnus-summary-line-initialize' in my `rs-gnus-summary.el'.
[...]
> I chose the second possibility. But now, only the color of the
> rectangles change.

Hm.  Put the cursor on the rectangle, press `C-u C-x =' and post the
output.  (I'm not sure if I can help you, as I'm not to familiar with
faces in Emacs, but maybe someone else has an idea.)  And show us the
value of `gnus-summary-line-format' (use `C-h v
gnus-summary-line-format RET').

>> [1] <news:dcsg.m3isqr7ppc.fsf@beldin.mt743742.dialup.rwth-aachen.de>
>>
>>     <URL:http://groups.google.com/groups?rnum=1&
>>     threadm=dcsg.m3isqr7ppc.fsf%40beldin.mt743742.dialup.rwth-aachen.de>
>
> OT: How can I take a look at those news-links?

The first (a news URL) allows to show this article in Gnus by fetching
it from news servers or Google (see the manual for details):

,----[ (info "(gnus)Finding the Parent") ]
|    Here's an example setting that will first try the current method, and
| then ask Google if that fails:
| 
|      (setq gnus-refer-article-method
|            '(current
|              (nnweb "google" (nnweb-type google))))
`----

The second is a link to Google.  Because of the newline and padding
spaces (valid according to the RFC 1738?), most newsreaders won't grok
it, but Gnus does.

Both should be buttonized (clickable) in Gnus by default.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/


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

* Re: Gnus doesn't load with Unicode chars in .gnus.el
       [not found]                       ` <87d68j41it.fsf@rechner1.ddorf.de>
@ 2004-02-14 16:47                         ` Fabian Braennstroem
  0 siblings, 0 replies; 8+ messages in thread
From: Fabian Braennstroem @ 2004-02-14 16:47 UTC (permalink / raw)


Now, it works! I'm not sure what I did, but it looks nice.
Once again, thanks for the help.

Greetings!
-- 
Fabian Braennstroem
Duesseldorf/Berlin


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

* Re: nice summary-format
       [not found] <87smhjj8hi.fsf@rechner1.ddorf.de>
@ 2004-02-10 16:46 ` Glyn Millington
       [not found] ` <87ekt3m5cp.fsf@users.sourceforge.net>
  1 sibling, 0 replies; 8+ messages in thread
From: Glyn Millington @ 2004-02-10 16:46 UTC (permalink / raw)


Fabian Braennstroem <f.braennstroem@gmx.de> writes:
> Did anybody got the example from
>  http://www.emacswiki.org/cgi-bin/wiki/GnusFormatting
> to work? Or maybe anybody has a similar example using trees?

Hi Fabian,

Have a look at this, and don;t omit the footnote


http://my.gnus.org/node/view/121


My own version is as follows

8<------8<------8<------8<------8<------8<------8<------8<------8<------

 (setq
;;; ;; All of this is for Oort Gnus and higher:
;;; ;      gnus-summary-line-format "%U%R%z%(%[%4L: %-20,20n%]%B %s%)\n"
         gnus-summary-same-subject ""
         gnus-sum-thread-tree-root " >"
         gnus-sum-thread-tree-single-indent "  "
         gnus-sum-thread-tree-vertical "|"
         gnus-sum-thread-tree-indent " "
         gnus-sum-thread-tree-leaf-with-other "+-> "
         gnus-sum-thread-tree-single-leaf "`-> " 
         gnus-auto-select-next 'almost-quietly      
        gnus-auto-center-summary nil               
        gnus-summary-goto-unread nil               
        gnus-auto-select-first 'best              
        gnus-asynchronous t  
        gnus-signature-limit 10.0)  ; kill the monster sigs! 

;; thread faces!!!!!
(copy-face 'default 'mysubject)
(setq gnus-face-1 'mysubject)
 
(copy-face 'default 'mytime)
(set-face-foreground 'mytime "cornflowerblue")
(setq gnus-face-2 'mytime) 
 
(copy-face 'default 'mythreads)
(set-face-foreground 'mythreads "turquoise") 
(setq gnus-face-3 'mythreads) 
 
(copy-face 'default 'mygrey) 
(set-face-foreground 'mygrey "blue") 
(setq gnus-face-4 'mygrey) 
 
(copy-face 'default 'myblack) 
(set-face-foreground 'myblack "gold") 
(setq gnus-face-5 'myblack) 
 
(copy-face 'default 'mybiggernumbers) 
(set-face-foreground 'mybiggernumbers "seagreen") 
(setq gnus-face-6 'mybiggernumbers)


(setq gnus-summary-line-format (concat 
                                "%*%5{%U%R%z%}" 
                                "%4{|%}" 
                                "%2{%-10&user-date;%}"
                                "%4{|%}"
                                "%4{|%}"
                                "%2{ %}%(%-24,24n"
                                "%4{|%}" 
                                "%2{%5i%}" 
                                "%4{|%}" 
                                "%2{%6k %}%)"
                                "%4{|%}" 
                                "%2{ %}%3{%B%}%1{%s%}\n"))



;; Threading options
(setq gnus-fetch-old-headers 'some  
   gnus-build-sparse-threads 'some 
   gnus-summary-gather-subject-limit 'fuzzy
   gnus-summary-thread-gathering-function 'gnus-gather-threads-by-references 
;   gnus-summary-make-false-root 'dummy
    gnus-summary-make-false-root-always nil
  gnus-thread-ignore-subject t 
   gnus-thread-sort-functions '(gnus-thread-sort-by-number
   gnus-thread-sort-by-date  ; Dates matter...
   gnus-thread-sort-by-total-score) ; .. and scores matter more
   gnus-thread-hide-killed t)
8<------8<------8<------8<------8<------8<------8<------8<------8<------



I do it that way becaue I can't get the Unicode stuff to work on Xemacs,
though with Gnu Emacs it works nicely.

Good luck




Glyn


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

end of thread, other threads:[~2004-02-14 16:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87smhjj8hi.fsf@rechner1.ddorf.de>
2004-02-10 16:46 ` nice summary-format Glyn Millington
     [not found] ` <87ekt3m5cp.fsf@users.sourceforge.net>
2004-02-11 21:39   ` Ted Zlatanov
     [not found]   ` <4noes5lid9.fsf@collins.bwh.harvard.edu>
     [not found]     ` <878yj98s8e.fsf@users.sourceforge.net>
     [not found]       ` <87fzdgeit8.fsf@caracolito.lan>
2004-02-12 10:32         ` Gnus doesn't load with Unicode chars in .gnus.el Reiner Steib
2004-02-12 14:27           ` Fabian Braennstroem
     [not found]             ` <v9n07ofkbx.fsf@marauder.physik.uni-ulm.de>
     [not found]               ` <87bro4dnhp.fsf@rechner1.ddorf.de>
2004-02-12 20:00                 ` Reiner Steib
     [not found]                   ` <873c9fhnxo.fsf@rechner1.ddorf.de>
2004-02-13  8:58                     ` Reiner Steib
     [not found]                       ` <87d68j41it.fsf@rechner1.ddorf.de>
2004-02-14 16:47                         ` Fabian Braennstroem
     [not found]           ` <4nfzdg4ipu.fsf@collins.bwh.harvard.edu>
2004-02-12 14:30             ` Reiner Steib

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).