CSS documentation and non-breakable hyphens

2017-05-30 Thread Arnaud
Hey there,

While browsing the GTK+ CSS documentation lately in my web browser, I
noticed a weird phenomenon. If you do a research on 'font-' (for
example), most of the 'font-' strings are left out of the search results.

You can try it easily. Go on this page, and do a research on 'font-'.
https://developer.gnome.org/gtk3/stable/chap-css-properties.html

The truth behind is that the page uses 'non-breaking hyphens' (U+2011)
instead of 'normal hyphens'. I suppose it works great for formatting,
but it kind of breaks the search function in the browser.

If you're curious about that on your console, browse the GTK+ source
code. And do something like that.

cd docs/references
grep -rl $'\xe2\x80\x91' .
grep $'\xe2\x80\x91' ./gtk/css-overview.xml

I've been even more curious and tried to replace all these non-breaking
hyphens with normal hyphens.

sed -i 's:\xe2\x80\x91:-:g' css-*.xml

The result is not that bad, but it's true that some property names in
first column of the tables get split in two lines.

Wondering if there's a better way to do that.

Cheers,
Arnaud

___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list


Fwd: gtk-devel-list Digest, Vol 157, Issue 18

2017-05-30 Thread Daniel Boles
On 30 May 2017 at 05:44, Cong Monkey  wrote:

> use msys2 in a massive visual studio based product is not a good idea,
>

Who ever said to do anything like that?

My point is MSYS2 is a near-complete Unix-like build environment, under
which you can simply build a native executable using the Autotools setup.
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list