Re: [dev] UTF8 text in wmii

2009-09-29 Thread Yuval Hager
On Sunday 27 September 2009, Kris Maglione wrote:
> On Sun, Sep 27, 2009 at 12:59:29PM +0300, Yuval Hager wrote:
> >Some non-latin characters are displayed garbled within wmii (windows
> > titles, tag names) - attached is Firefox window title I get. I tried
> > using ucs fonts (*-ISO10646-1), but then everything is garbled, even
> > latin text.
>
> Unfortunately, Xlib has rather atrocious font support. Your best
> bet is to use Xft:
>
>  wmiir xwrite /ctl font xft:terminus-10

This doesn't work for me, with wmii-3.6. 
It does work with wmii-hg, but I can't get ruby-wmii to work with it for 
some reason yet (haven't tried rumai yet either)

Thanks for the help, I'll keep trying..

--y


signature.asc
Description: This is a digitally signed message part.


Re: [dev] [ANN] Ruby (Rumai) based wmiirc now distributed with wmii

2009-10-01 Thread Yuval Hager
On Wednesday 30 September 2009, Suraj Kurapati wrote:
> On Tue, Sep 29, 2009 at 9:39 PM, Kris Maglione  
wrote:
> > wmii now includes a ruby-based wmiirc by Suraj Kurapati. The
> > distributed version contains minor changes so that the default
> > configuration more closely resembles the default wmii configuration.
>
> Thanks, I am honored.
>
> > I'm maintaining the changes as a Mercurial patch queue on a mirror
> > of Suraj's repo at suckless.org:
> >
> >    http://hg.suckless.org/wmiirc-rumai/
>
> I will move my eccentric setup to a "personal" branch on GitHub and
> merge your patches onto my GitHub master branch.  This way, my GitHub
> repo will stay in sync with your official wmii one and newcomers won't
> be scared away by my eccentric defaults. ;-)
>
> Cheers.

Thanks, this is great!

My habit to use only "released stable" releases caused me to get used to 
wmii-3.6 + ruby-wmii a couple of months ago. I am now trying to move on, to 
wmii-hg + rumai, but having a hard time getting used to the defaults there. 
If there is someone out there who has a wmiirc that uses rumai but 
resembels ruby-wmii, I'd be delighted to know about it.

Thanks!

--yuval


signature.asc
Description: This is a digitally signed message part.


Re: [dev] [ANN] Ruby (Rumai) based wmiirc now distributed with wmii

2009-10-04 Thread Yuval Hager
>
> git checkout -b CHOICE --track  # possible choices are:
>

Shouldn't that be

git checkout -b CHOICE --track origin/CHOICE 

instead?

--y


signature.asc
Description: This is a digitally signed message part.


[dev] multiple fonts in wmii

2009-11-01 Thread Yuval Hager
Hi there,

Can wmii support multiple fonts? This way if glyphs are not found in the 
first font, the next one is being searched.
I am looking for some functionality along the lines of 
http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.7.pod#How_does_rxvt_unicode_choose_fonts
(yes, this link actually works).

Most fonts do not contain the glyphs for my native language, so I am ending 
up with blank squares instead. If I modify wmii font to one that contains 
native glyphs, the latin letters are just ugly..

OTOH, shouldn't fontconfig do this (select matching fonts by language) by 
default? it obviously is not the case in my setup, and I couldn't find any 
docs on how to make this work the way I expect it to.

--yuval


signature.asc
Description: This is a digitally signed message part.


Re: [dev] multiple fonts in wmii

2009-11-02 Thread Yuval Hager
On Monday 02 November 2009, Kris Maglione wrote:
> On Mon, Nov 02, 2009 at 08:52:39AM +0200, Yuval Hager wrote:
> >Hi there,
> >
> >Can wmii support multiple fonts? This way if glyphs are not found in the
> >first font, the next one is being searched.
> >I am looking for some functionality along the lines of
> >http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.7.pod#How_
> >does_rxvt_unicode_choose_fonts (yes, this link actually works).
> >
> >Most fonts do not contain the glyphs for my native language, so I am
> > ending up with blank squares instead. If I modify wmii font to one that
> > contains native glyphs, the latin letters are just ugly..
> >
> >OTOH, shouldn't fontconfig do this (select matching fonts by language)
> > by default? it obviously is not the case in my setup, and I couldn't
> > find any docs on how to make this work the way I expect it to.
>
> wmii supports multiple fonts in exactly the same way as rxvt.
> Just list them separated by commas. If you want fontconfig,
> prefix the font string with xft:, otherwise you get regular X11
> fontsets, which have atrocious unicode support.

I've tried this, and it looks like it is not working. 
Running
$ wmiir xwrite /ctl font 'xft:Arial'
presents the Hebrew characters correctly (in windows title, and mpd status 
area), while
$ wmiir xwrite /ctl font 'xft:terminus-10'
presents just white boxes instead.

So I try:
$ wmiir xwrite /ctl font 'xft:terminus-10,xft:Arial'
but no change from previous (white boxes).

I also tried not using xft for the first font:
$ wmiir xwrite /ctl font '-*-terminus-*-*-*-*-12-*-*-*-*-*-iso8859-1,xft:Arial'

but they all give the same result.

I've tried to run urxvt with the same settings, and it seem to work fine:
$ urxvt -fn '-*-fixed-medium-r-*-*-14-*-*-*-*-*-*-*,xft:Miriam Mono CLM'

(in testing the terminal, I used a mono-spaced font - but all fonts give the 
same result).

I must be missing something?

my wmii version is hg2582, and I am using rumai on top.
ן,
--yuval


signature.asc
Description: This is a digitally signed message part.


Re: [dev] multiple fonts in wmii

2009-11-04 Thread Yuval Hager
On Wednesday 04 November 2009, Kris Maglione wrote:
> On Mon, Nov 02, 2009 at 02:09:07PM +0200, Yuval Hager wrote:
> >I've tried this, and it looks like it is not working.
> >Running
> >$ wmiir xwrite /ctl font 'xft:Arial'
> >presents the Hebrew characters correctly (in windows title, and mpd
> > status area), while $ wmiir xwrite /ctl font 'xft:terminus-10'
> >presents just white boxes instead.
> >
> >So I try:
> >$ wmiir xwrite /ctl font 'xft:terminus-10,xft:Arial'
> >but no change from previous (white boxes).
> >
> >I also tried not using xft for the first font:
> >$ wmiir xwrite /ctl font
> > '-*-terminus-*-*-*-*-12-*-*-*-*-*-iso8859-1,xft:Arial'
> >
> >but they all give the same result.
> >
> >I've tried to run urxvt with the same settings, and it seem to work
> > fine: $ urxvt -fn '-*-fixed-medium-r-*-*-14-*-*-*-*-*-*-*,xft:Miriam
> > Mono CLM'
> >
> >(in testing the terminal, I used a mono-spaced font - but all fonts give
> > the same result).
> >
> >I must be missing something?
>
> Well, first of all, you can only specify xft: once, at the
> begining of the spec. You either get Xft or you don't, you can't
> mix them.

so how on earth can you specify a list of fonts? I don't know much about 
xft, but readin http://fontconfig.org/fontconfig-user.html, it mentions 
that commas are used to specify lists of values, 
like 'xft:terminus-10:lang=en,ja'. 
If someone knows how to specify a list of fonts to xft (maybe even a font 
per language?), it might help - I couldn't get it from the docs.

> Second, it seems that Xft isn't as smart as I thought 
> it was. As far as I can tell, the only thing I can do is query
> the fonts myself with fontconfig and render the individual
> glyphs myself. Given the general bulk of code required to do
> that, and the likelihood of errors, I'm not especially willing
> to add it, but I may consider it if anyone has suggestions on
> how to do it cleanly. I'm not willing to link in Pango or Cairo,
> for very obvious reasons.
>

Thanks for looking into this. 
I glanced at urxvt's code, and it does seem it goes to great length to 
display the correct characters (well, as much as you can understand from 
reading C++ code), and I understand your rejection from this amount of code 
and complexity. it does not have a good gain/effort ratio.

I haven't even asked about right-to-left support, but I am going to give up 
before that :)

--y


signature.asc
Description: This is a digitally signed message part.


[dev] [wmii] [rumai] view last tag

2009-12-19 Thread Yuval Hager
In rumai, is there a way to view the last tag viewed? It happens quite a lot 
that I am switching between two tags regularily, so that a "view last tag" 
key can be very useful.

This existed in wmii-ruby, but I can't figure out how to do it in rumai.

Thanks,

-- yuval


signature.asc
Description: This is a digitally signed message part.


Re: [dev] [wmii] [rumai] view last tag

2009-12-19 Thread Yuval Hager
On Saturday 19 December 2009, Suraj Kurapati wrote:
> On Sat, Dec 19, 2009 at 12:30 PM, Yuval Hager  wrote:
> > In rumai, is there a way to view the last tag viewed?
> 
> Yes, it's available in both dvorak & qwerty branches:
> 
> http://github.com/sunaku/wmiirc/commit/dadff33db868c2986c0db3c27f5dbb5bab
> b529af
> 

Cool! I wasn't uptodate, I see you implemented many things I also made in my 
local copy (like mpd & volume mouse control). Yours is cleaner though :)

> Note this is a very rough (uses globals; needs refactoring) and simple
> (only 1-level of history; no sorting) implementation.
>

np, that was exactly what I needed. Thanks!
 
--y


signature.asc
Description: This is a digitally signed message part.


[dev] [wmii] notifications only work from tag 1

2010-01-14 Thread Yuval Hager
I am trying to send notifications using 'notify-send' (libnotify) and I 
found out they work only if they are sent from tag 1.
otherwise, I get the following message from dbus-daemon:

,
| (:5963): Wnck-WARNING **: Someone set a weird number of desktops 
in _NET_NUMBER_OF_DESKTOPS, assuming the value is 1
| 
| 
| Wnck-CRITICAL **: wnck_window_is_on_workspace: assertion 
`WNCK_IS_WORKSPACE (workspace)' failed
| aborting...
`

Anyone has a clue?

--y


signature.asc
Description: This is a digitally signed message part.


Re: [dev] [wmii] notifications only work from tag 1

2010-01-25 Thread Yuval Hager
On Monday 25 January 2010, Kris Maglione wrote:
> On 2010-01-14, Yuval Hager  wrote:
> > I am trying to send notifications using 'notify-send' (libnotify) and I
> > found out they work only if they are sent from tag 1.
> > otherwise, I get the following message from dbus-daemon:
> >
> > ,
> >
> > | (:5963): Wnck-WARNING **: Someone set a weird number of
> > | desktops
> >
> > in _NET_NUMBER_OF_DESKTOPS, assuming the value is 1
> >
> > | Wnck-CRITICAL **: wnck_window_is_on_workspace: assertion
> >
> > `WNCK_IS_WORKSPACE (workspace)' failed
> >
> > | aborting...
> >
> > `
> >
> > Anyone has a clue?
> 
> Yes, this seems to be a bug. I'm surprised that libnotify chokes (or
> even cares), though.
> 
> Fixed as of 2600:5973799cd90a.
> 

Cool! thanks :)

--yuval


signature.asc
Description: This is a digitally signed message part.