From rainer.blome at gmx.de Sun Jan 11 04:10:22 2009 From: rainer.blome at gmx.de (Rainer Blome) Date: Sun, 11 Jan 2009 05:10:22 +0100 Subject: [search-ui] Where or what is search.css? Message-ID: <4969712E.5040801@gmx.de> In svn, I can't find search.css (loaded by live search.html), where is it? Rainer From rainer.blome at gmx.de Sun Jan 11 08:17:41 2009 From: rainer.blome at gmx.de (Rainer Blome) Date: Sun, 11 Jan 2009 09:17:41 +0100 Subject: [search-ui] panelBody Message-ID: <4969AB25.2060303@gmx.de> Currently I am again playing with RTL layout. Thanks, macbre, for simplifying the style sheet a bit, removing some of the evil "position" and "float" settings. In search.html, the divs with ids "add-site" and "result-history" both use class="panel". The style for "panel" is defined in "structure.css", OK. The content of these divs uses class="panelBody", which is defined nowhere that I can see it. Searching the net for "panelBody" shows that this may be left over from a use of an accordion effect associated with Scriptaculous: http://blogs.grf-design.com/archives/2006/04/accordion_effec.html However, the scriptaculous.js in SVN does not support this, or at least I can't find any occurrence of "panelBody" anywhere. Was this intented to support a future or a past layout? Can the class setting be removed? By the way, the div and form for "add-site" both use the exact same id, is this intentional? Could this hurt in any way? Rainer From macbre at wikia-inc.com Sun Jan 11 10:23:28 2009 From: macbre at wikia-inc.com (Maciej Brencz) Date: Sun, 11 Jan 2009 11:23:28 +0100 Subject: [search-ui] Where or what is search.css? In-Reply-To: <4969712E.5040801@gmx.de> References: <4969712E.5040801@gmx.de> Message-ID: > In svn, I can't find search.css (loaded by live search.html), where is > it? looks like it's merged structure.css and style.css from /kt_files dir in svn. IMHO same applies to search.js file on production server... -- Maciej [macbre] Brencz From macbre at wikia-inc.com Mon Jan 12 11:17:32 2009 From: macbre at wikia-inc.com (Maciej Brencz) Date: Mon, 12 Jan 2009 12:17:32 +0100 Subject: [search-ui] panelBody In-Reply-To: <4969AB25.2060303@gmx.de> References: <4969AB25.2060303@gmx.de> Message-ID: <298babfb0901120317n514362c7y7d8b3a7dd589ef27@mail.gmail.com> > However, the scriptaculous.js in SVN does not support this, or at least > I can't find any occurrence of "panelBody" anywhere. Was this intented > to support a future or a past layout? > > Can the class setting be removed? Accordion.js is in /cool/exp/accordion directory in repo (Accordion object is created in /cool/exp/main.js). Probably it's going to be supported in the future... > By the way, the div and form for "add-site" both use the exact same id, > is this intentional? Could this hurt in any way? I'll remove add-site id from div and leave it for form element. From rainer.blome at gmx.de Sun Jan 18 00:06:12 2009 From: rainer.blome at gmx.de (Rainer Blome) Date: Sun, 18 Jan 2009 01:06:12 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] Message-ID: <49727274.7060505@gmx.de> Maciej Brencz wrote on 2009-01-17-00:13: >> If you don't mind, I would like to copy this mail to the list. > Sure, go ahead -------- Original Message -------- Subject: Re: RTL version of Wikia Search UI Date: Sat, 17 Jan 2009 23:02:39 +0100 From: Rainer Blome To: Maciej Brencz References: Maciej Brencz wrote: > Hi, > > You've mentioned on mailing list you're currently playing with RTL. Do > you need any help with CSS? I am a CSS newbie. To learn, I use Firebug, and www.SelfHTML.org (a most excellent German and French reference to HTML and CSS, with live examples for virtually every tag and attribute), and trial and error :-). My current tactics is to try to achieve a layout that automatically mirrors correctly when the HTML tag's "dir" attribute is changed from "ltr" to "rtl" and back, without any other style changes. On the mailing list I have described this in some detail: http://lists.wikia.com/pipermail/search-ui/2008-November/000279.html Please comment on the mailing list. It is possible by using tables and currently mostly works on search.html (the glitches left appear solvable). If you are interested, I can copy or attach the current state somewhere. Tables naturally yield the desired sequencing and mirroring. I understand that using tables has the drawback that a table is only rendered when it has fully loaded. And I needed to use the "dirty trick" of specifying "width=99%" in the first column to "early"-justify (left for LTR, right for RTL) the first element and "late"-justify (right for LTR, left for RTL) the last element of the same line, without explicitly specifying this using "absolute layout". Is it OK to use tables? Is there an HTML equivalent of TeX's "pressurized" expanding whitespace? Tables wouldn't even be necessary then. I also understand that the index page is currently implemented as a "distorted" version of the header ("top-bar"). However, this looks like "forced reuse" to me. The index page just isn't a header, it deserves its own implementation. Using a specific technique to implement the header (divs with explicit positioning), just because it should be morphable to use it on the single index page appears to me as treating everything as a nail just because we have a hammer ;-). If style sheets instead of "relative layout" (tables) need to be used, how do you separate the direction-dependent settings from the rest? When the direction is changed, a specific set of attributes must be changed for a specific set of elements. What would class rtl look like? For example, how would you use CSS to mirror the header layout? > I'm also thinking about ways to detect RTL languages. The best place > might be wfGetTranslation JS request where translation array for i18n is > returned. We can make simple check in our backend and set i18nIsRTL > variable. Then we can add "rtl" class to body to make appropriate > changes for RTL languages... The set of RTL languages is fixed and, as far as I know, fairly limited. This makes it feasible to hard-code the mapping of languages to directions. A flag (pseudo translation entry) stored in the catalogs themselves can be used a fallback. Rainer From macbre at wikia-inc.com Mon Jan 19 09:59:38 2009 From: macbre at wikia-inc.com (Maciej Brencz) Date: Mon, 19 Jan 2009 10:59:38 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: <49727274.7060505@gmx.de> References: <49727274.7060505@gmx.de> Message-ID: <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> > Is it OK to use tables? Using tables for creating page layout is E-V-I-L :) > I also understand that the index page is currently implemented > as a "distorted" version of the header ("top-bar"). > However, this looks like "forced reuse" to me. The index page > just isn't a header, it deserves its own implementation. > Using a specific technique to implement the header (divs with > explicit positioning), just because it should be morphable to > use it on the single index page appears to me as treating > everything as a nail just because we have a hammer ;-). Headers HTML is (almost) the same, the only difference is CSS... I've simpliefied CSS a bit, because main page inherited CSS rules from search.html and then tried to overwrite just inherited rules (don't ask my why ;) > When the direction is changed, a specific set of attributes must be > changed for a specific set of elements. > What would class rtl look like? > For example, how would you use CSS to mirror the header layout? I'll describe it using Wikia's monaco skins as an example. When we detect RTL language, we're including rtl.css changing positioning of absolutelly positioned elements... We're also applying direction CSS rule for tag. > The set of RTL languages is fixed and, as far as I know, fairly limited. > This makes it feasible to hard-code the mapping of languages to > directions. > A flag (pseudo translation entry) stored in the catalogs themselves can > be used a fallback. We can use extra flag in langs JS array (/cool/js/util.js). Currently we have entries like this one: "he": ["\u05e2\u05d1\u05e8\u05d9\u05ea","Hebrew"], Let's add third boolean element saying whether given language is RTL or not: "he": ["\u05e2\u05d1\u05e8\u05d9\u05ea","Hebrew", true], I can generate this list automatically using data from MW. I don't see any ticket about support for RTL languages in search launchpad. Maybe we should create one? -- Maciej 'macbre' Brencz skype: macbre_wikia From rainer.blome at gmx.de Tue Jan 20 00:02:21 2009 From: rainer.blome at gmx.de (Rainer Blome) Date: Tue, 20 Jan 2009 01:02:21 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> Message-ID: <4975148D.9050307@gmx.de> Maciej Brencz wrote: > Using tables for creating page layout is E-V-I-L :) Isn't this boxed (sic) thinking? :-) What is the alternative? http://images.wikia.com/common/releases_200901.3/skins/monaco/rtl.css looks way too complex, too seemingly arbitrary, extremely hard to understand and maintain. A good solution should somehow reflect the structure of the goal. From the viewpoint of semantic markup, purely CSS-based layout appears inadequate to me. Of course, my experience with CSS is limited, I may be wrong. How do you express "I want three elements in an inline sequence", for example "Logo, search form, login link"? A table row can provide exactly this kind of sequencing, and it mirrors as expected when the document's direction is flipped. Is there another HTML tag that provides this RTL/LTR mirroring? Sequenced spans are not rearranged, for example (but I feel they should be). In my view, there are areas where it makes sense to use tables, for example the header layout. In other areas, using divs may be be more appropriate, for example the side-by-side search-result-container and search-side-container. > I've > simpliefied CSS a bit, because main page inherited CSS rules from > search.html What is "main page"? index.html? How can an HTML page inherit rules from another page? > and then tried to overwrite just inherited rules (don't > ask my why ;) I don't understand. Only inherited rules can be "overwritten", isn't that so? >> What would class rtl look like? >> For example, how would you use CSS to mirror the header layout? > > I'll describe it using Wikia's monaco skins as an example. When we > detect RTL language, we're including rtl.css changing positioning of > absolutelly positioned elements... We're also applying direction CSS > rule for tag. > > You mean http://images.wikia.com/common/releases_200901.3/skins/monaco/rtl.css ? As I said, it doesn't quite look right. My naive expectation was that parameterization is used to mirror all uses of, say, "float:right" at once. Roughly like this, see attachments for details: ltr.css: .floatearly { float:left; } /* Float to the beginning of a line */ .floatlate { float:right; } /* Float to the end of a line */ rtl.css: .floatearly { float:right; } /* Float to the beginning of a line */ .floatlate { float:left; } /* Float to the end of a line */ rtl-test.html: ...
Early Late

... To use this scheme, all absolute layout properties such as float or text-align are replaced by uses of classes. The definition of these classes depends on the style sheet used. The style sheet can then be loaded or selected by whatever means available, for example dynamically using the above function (I would like to preserve the ability to dynamically switch the language). Do you think it is feasible to use such a scheme to mirror those aspects of layout that do not mirror automatically? > We can use extra flag in langs JS array (/cool/js/util.js). Currently > we have entries like this one: > "he": ["\u05e2\u05d1\u05e8\u05d9\u05ea","Hebrew"], > Let's add third boolean element saying whether given language is RTL or not: > "he": ["\u05e2\u05d1\u05e8\u05d9\u05ea","Hebrew", true], We should use "rtl" as the value. This is self-documenting and allows us to generalize to other script types (Top-to-Bottom). "No third element" should mean "LTR". > I can generate this list automatically using data from MW. Great. > I don't see any ticket about support for RTL languages in search > launchpad. Maybe we should create one? If you want to, go ahead. For discussion, at the moment I prefer the list. Rainer -------------- next part -------------- A non-text attachment was scrubbed... Name: ltr.css Type: text/css Size: 179 bytes Desc: not available Url : http://lists.wikia.com/pipermail/search-ui/attachments/20090120/2a49aa63/attachment.css -------------- next part -------------- A non-text attachment was scrubbed... Name: rtl.css Type: text/css Size: 183 bytes Desc: not available Url : http://lists.wikia.com/pipermail/search-ui/attachments/20090120/2a49aa63/attachment-0001.css -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.wikia.com/pipermail/search-ui/attachments/20090120/2a49aa63/attachment.html From phil.nelson at gmail.com Tue Jan 20 01:03:58 2009 From: phil.nelson at gmail.com (Christian Nelson) Date: Mon, 19 Jan 2009 20:03:58 -0500 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: <4975148D.9050307@gmx.de> References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> Message-ID: <30560C6B-2916-44D9-A301-7706F5BDC768@zerolives.org> What exactly is the problem with dir="rtl"? Some resources: http://tlt.its.psu.edu/suggestions/international/web/tips/align.html http://people.w3.org/rishida/scripts/bidi/ I agree that using tables for non-tabular data is bad, bad, mojo. - Phil Nelson From rainer.blome at gmx.de Tue Jan 20 08:49:49 2009 From: rainer.blome at gmx.de (Rainer Blome) Date: Tue, 20 Jan 2009 09:49:49 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: <30560C6B-2916-44D9-A301-7706F5BDC768@zerolives.org> References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> <30560C6B-2916-44D9-A301-7706F5BDC768@zerolives.org> Message-ID: <4975902D.5090401@gmx.de> Christian Nelson wrote: > What exactly is the problem with dir="rtl"? Try it. Add it to search.html and see for yourself. The problem is that we want to render the same content with either dir="rtl" or dir="ltr", and the existing "absolute" style properties get in the way. Read the "discussion" so far: http://lists.wikia.com/pipermail/search-ui/2008-November/000279.html http://lists.wikia.com/pipermail/search-ui/2008-November/000278.html > Some resources: > > http://tlt.its.psu.edu/suggestions/international/web/tips/align.html "Tips for Right Aligned Text (Penn State)" talks mostly about text directionality, not about layout. > http://people.w3.org/rishida/scripts/bidi/ "what you need to know about the bidi algorithm and inline markup" talks exclusively about text directionality, not about layout. And I think that I already pointed to it. > I agree that using tables for non-tabular data is bad, bad, mojo. Ah. A sound argument, if I'm not mistaken. Sorry, couldn't resist. :-) Search for "why tables are evil": http://search.wikia.com/search.html#why_tables_are_evil [Check out the first non-rated link, wonder what it has to do with the query (there is no mention of the word "tables" on that page), then turn to http://www.google.com/search?q=why+tables+are+evil to get better results.] You'll see that pure CSS isn't necessarily the best solution either. http://www.decloak.com/Dev/CSSTables/CSS_Tables_16.aspx#TheTideIsTurning It's easy to devalue tables, harder to code an alternative. Please comment on my technical questions and statements, especially on my use of CSS in my previous post. *rant on* So far, I do not remember anyone having replied to my general technical questions, asked about two months ago. Did I need help with CSS? Hell, yes! Did anyone except Maciej actually help? No. :-( *rant off* I have now learned enough to answer some of my own questions from November 2008 (http://lists.wikia.com/pipermail/search-ui/2008-November/000278.html): > If the use of style sheets is desired: > o Confirm the assumption that the DIR attribute can be used from a > style sheet. It should be, but I could not get it to work. However, applying, for example 'document.dir= "rtl" ' works. > o Cast the settings into an additional style sheet. > Is it possible to apply multiple style sheets to the same elements? > I do not know. If yes, load the style sheet when an RTL language > is selected. Yes, this is possible, as demonstrated in my previous post. Needs cross-browser verification. > o Find out whether settings made by a style sheet can be overruled > by a subsequent load of a different style sheet. Even better. Multiple style sheets can be loaded in parallel, and dynamically enabled and disabled independently of each other. However, I wonder how this degrades without proper CSS support. Rainer From macbre at wikia-inc.com Tue Jan 20 09:25:36 2009 From: macbre at wikia-inc.com (Maciej Brencz) Date: Tue, 20 Jan 2009 10:25:36 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: <4975148D.9050307@gmx.de> References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> Message-ID: > From the viewpoint of semantic markup, purely CSS-based layout appears > inadequate to me. > Of course, my experience with CSS is limited, I may be wrong. > How do you express "I want three elements in an inline sequence", for > example "Logo, search form, login link"? Make them display: inline and add float... > In my view, there are areas where it makes sense to use tables, for > example the header layout. In other areas, using divs may be be more > appropriate, for example the side-by-side search-result-container and > search-side-container. What we should start with, is trying to remove absolute positioning and replace it with floated boxes (header items, search results and floating sidebar are good examples) >> I've >> simpliefied CSS a bit, because main page inherited CSS rules from >> search.html > > What is "main page"? index.html? How can an HTML page inherit rules > from another page? > >> and then tried to overwrite just inherited rules (don't >> ask my why ;) > > I don't understand. Only inherited rules can be "overwritten", isn't > that so? All I mean is that index.htm included global CSS with rules for header (that looks like the one on search.htm) and applied extra changes overwriting rules from global CSS - > To use this scheme, all absolute layout properties such as float or > text-align are replaced by uses of classes. > The definition of these classes depends on the style sheet used. > The style sheet can then be loaded or selected by whatever means > available, for example dynamically using the above function > (I would like to preserve the ability to dynamically switch the > language). Do you think it is feasible to use such a scheme to > mirror those aspects of layout that do not mirror automatically? It's worth trying. For instance header items can be floated using class .float-left (with float:left for LTR languages and float:right for RTL languages)... >> I can generate this list automatically using data from MW. Will do... Simple grep inside /languages/messages gives the following: ./MessagesDv.php:$rtl = true; ./MessagesUg.php:$rtl = true; ./MessagesFa.php:$rtl = true; ./MessagesAr.php:$rtl = true; ./MessagesEnRTL.php:$rtl = true; ./MessagesYdd.php:$rtl = true; ./MessagesHe.php:$rtl = true; ./MessagesKs.php:$rtl = true; ./MessagesArc.php:$rtl = true; ./MessagesYi.php:$rtl = true; ./MessagesKk_arab.php:$rtl = true; ./MessagesUr.php:$rtl = true; ./MessagesSd.php:$rtl = true; ./MessagesMzn.php:$rtl = true; ./MessagesPs.php:$rtl = true; 15 in total -- Maciej [macbre] Brencz macbre[at]wikia.com skype: macbre_wikia From macbre at wikia-inc.com Tue Jan 20 09:27:19 2009 From: macbre at wikia-inc.com (Maciej Brencz) Date: Tue, 20 Jan 2009 10:27:19 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: <4975902D.5090401@gmx.de> References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> <30560C6B-2916-44D9-A301-7706F5BDC768@zerolives.org> <4975902D.5090401@gmx.de> Message-ID: > > If the use of style sheets is desired: > > o Confirm the assumption that the DIR attribute can be used from a > > style sheet. > > It should be, but I could not get it to work. However, applying, for > example 'document.dir= "rtl" ' works. Try body {direction: rtl} -- Maciej [macbre] Brencz macbre[at]wikia.com skype: macbre_wikia From macbre at wikia-inc.com Tue Jan 20 12:24:26 2009 From: macbre at wikia-inc.com (Maciej Brencz) Date: Tue, 20 Jan 2009 13:24:26 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> Message-ID: > What we should start with, is trying to remove absolute positioning and > replace it with floated boxes (header items, search results and floating > sidebar are good examples) I've made changes for search results and sidebar positioning in r721 (CSS and HTML changes) - tested in FF3.x, Opera 9.63 and IE6 (Ubuntu OS)... In r720 body now has CSS ltr / rtl class (set on page load and after language change). -- Maciej [macbre] Brencz macbre[at]wikia.com skype: macbre_wikia From macbre at wikia-inc.com Tue Jan 20 15:21:25 2009 From: macbre at wikia-inc.com (Maciej Brencz) Date: Tue, 20 Jan 2009 16:21:25 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: <4975902D.5090401@gmx.de> References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> <30560C6B-2916-44D9-A301-7706F5BDC768@zerolives.org> <4975902D.5090401@gmx.de> Message-ID: Here you can see pretty early version of Wikia Search RTL support. Positioning of search results, right sidebar and bottom menu is done. Still big changes for search results need to be made... To test RTL version hebrew (he) can be selected. Changes are not commited yet, waiting for your feedback. Thanks -- Maciej [macbre] Brencz macbre[at]wikia.com skype: macbre_wikia From rainer.blome at gmx.de Tue Jan 20 23:35:59 2009 From: rainer.blome at gmx.de (Rainer Blome) Date: Wed, 21 Jan 2009 00:35:59 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> Message-ID: <49765FDF.10609@gmx.de> Maciej Brencz wrote: >> From the viewpoint of semantic markup, ... >> How do you express "I want three elements in an inline sequence", for >> example "Logo, search form, login link"? > > Make them display: inline and add float... I should have added "... sequence that obeys 'dir' changes". This is conceptually what I was asking for:
The only "sequence" that I know of that obeys the dir change on its own is "tr". At least a simple sequence of spans is not mirrored. OK, so we shall now try to implement this as , and change the classes "floatbegin" and "floatend" (and a bunch of other classes) when the direction is changed. > What we should start with, is trying to remove absolute positioning and > replace it with floated boxes (header items, search results and floating > sidebar are good examples) Good. > It's worth trying. For instance header items can be floated using class > .float-left (with float:left for LTR languages and float:right for RTL > languages)... That's what I mean. The name ".float-left" is potentially confusing because it suggests that it means something absolute. I'd prefer to use names that express the intended relativity of the style property, for example ".float-begin" and ".float-end". > Simple grep inside /languages/messages gives the following: > ./MessagesDv.php:$rtl = true; > ... > ./MessagesPs.php:$rtl = true; Nice. > 15 in total Ah. Why the new table format? It needs 2 KB more space. From rainer.blome at gmx.de Tue Jan 20 23:41:21 2009 From: rainer.blome at gmx.de (Rainer Blome) Date: Wed, 21 Jan 2009 00:41:21 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> <30560C6B-2916-44D9-A301-7706F5BDC768@zerolives.org> <4975902D.5090401@gmx.de> Message-ID: <49766121.7000001@gmx.de> Maciej Brencz wrote: >> > o Confirm the assumption that the DIR attribute can be used from a >> > style sheet. >> It should be, but I could not get it to work. However, applying, for >> example 'document.dir= "rtl" ' works. > Try body {direction: rtl} Did that, no effect. From rainer.blome at gmx.de Tue Jan 20 23:57:55 2009 From: rainer.blome at gmx.de (Rainer Blome) Date: Wed, 21 Jan 2009 00:57:55 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> Message-ID: <49766503.3040307@gmx.de> Maciej Brencz wrote: > I've made changes for search results and sidebar positioning in r721 (CSS > and HTML changes) - tested in FF3.x, Opera 9.63 and IE6 (Ubuntu OS)... IE 6.0 on XP SP2 does not let me switch to Hebrew, it gives an error when I try to save the new language setting. FF3 and Safari show it OK (as far as it currently goes). From macbre at wikia-inc.com Wed Jan 21 09:05:09 2009 From: macbre at wikia-inc.com (Maciej Brencz) Date: Wed, 21 Jan 2009 10:05:09 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: <49765FDF.10609@gmx.de> References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> <49765FDF.10609@gmx.de> Message-ID: > That's what I mean. The name ".float-left" is potentially confusing > because it suggests that it means something absolute. I'd prefer to use > names that express the intended relativity of the style property, for > example ".float-begin" and ".float-end". True, but take a look at this example:
Dodaj Aplikacj? For developers #wise_applink has float-right, #wise-appload has float-right. If we change the naming convention the first element in wise apps menu will have .float-end class and the last one (second) will have .float-begin. Also confusing ;) > Why the new table format? It needs 2 KB more space. To make it easier to understand the content of langs array. That's 5% grow in size. For end user on search.wikia.com we're sending merged JS file (search.js) with size of 309 kB. Even smaller increase :) We can also try to use GZIP content encoding to make it even smaller... -- Maciej [macbre] Brencz macbre[at]wikia.com skype: macbre_wikia From rainer.blome at gmx.de Wed Jan 21 09:48:32 2009 From: rainer.blome at gmx.de (Rainer Blome) Date: Wed, 21 Jan 2009 10:48:32 +0100 Subject: [search-ui] Floatsome Message-ID: <4976EF70.4090505@gmx.de> Can anyone *point me to a resource* that explains a browser's layout algorithm? I seek answers to: How does the browser determine the width of an element - without explicit width spec - with percentage width spec - for spans - for divs Mozilla and Safari appear to use the same (weird) interpretation of percentages. With width:25%, the width of a 1px border can be significantly more than one fourth of the available width. They apparently use a width that excludes padding. To get the expected sizing makes it necessary to use an additional, padding- margin- and borderless container. IE's algorithm is more to my expectation. With width:25%, the width of the border is about one fourth of the available width. How does the browser determine the position - of the leading content (text) edge of an element - of the border of an element For example, in the attached test, I want: The content-container should float to the right of the bar-container. IE does this, the others don't. The middle-container should have the minimum height of bar-container and content-containe, the middle background (outside of the content-container) should be orange. Brown should be visible only between header and middle-container. No browser does this. The resource should help me achieve a "nested floating boxes" layout. Rainer -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.wikia.com/pipermail/search-ui/attachments/20090121/9a52e7e6/attachment.html From macbre at wikia-inc.com Wed Jan 21 09:47:48 2009 From: macbre at wikia-inc.com (Maciej Brencz) Date: Wed, 21 Jan 2009 10:47:48 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: <49766503.3040307@gmx.de> References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> <49766503.3040307@gmx.de> Message-ID: > IE 6.0 on XP SP2 does not let me switch to Hebrew, it gives an error > when I try to save the new language setting. Problem solved, should work in IE6 now... -- Maciej [macbre] Brencz macbre[at]wikia.com skype: macbre_wikia From macbre at wikia-inc.com Wed Jan 21 09:56:13 2009 From: macbre at wikia-inc.com (Maciej Brencz) Date: Wed, 21 Jan 2009 10:56:13 +0100 Subject: [search-ui] Floatsome In-Reply-To: <4976EF70.4090505@gmx.de> References: <4976EF70.4090505@gmx.de> Message-ID: > Can anyone *point me to a resource* that explains a browser's layout > algorithm? W3C spec of box model is a good answer: http://www.w3.org/TR/CSS2/box.html#mpb-examples > Mozilla and Safari appear to use the same (weird) interpretation of > percentages. With width:25%, the width of a 1px border can be > significantly more than one fourth of the available width. They > apparently use a width that excludes padding. To get the expected > sizing makes it necessary to use an additional, padding- margin- and > borderless container. IE's algorithm is more to my expectation. With > width:25%, the width of the border is about one fourth of the available > width. IE approach is probably more logical (width property sets the width of the content, excluding paddings, margins and borders), but is not standard compliant... -- Maciej [macbre] Brencz macbre[at]wikia.com skype: macbre_wikia From rainer.blome at gmx.de Wed Jan 21 23:17:52 2009 From: rainer.blome at gmx.de (Rainer Blome) Date: Thu, 22 Jan 2009 00:17:52 +0100 Subject: [search-ui] Floatsome In-Reply-To: References: <4976EF70.4090505@gmx.de> Message-ID: <4977AD20.5080004@gmx.de> Maciej Brencz wrote: >> Can anyone *point me to a resource* that explains a browser's layout >> algorithm? > > W3C spec of box model is a good answer: > http://www.w3.org/TR/CSS2/box.html#mpb-examples Thanks, that's the pointer that I needed. To be precise, the Visual Formatting Model (http://www.w3.org/TR/CSS2/visuren.html) is what I was looking for, which is the next chapter after the box model chapter. "width ... property specifies the *content width*", whereas I expected it to specify the width of the area that is colored with the background-color (content including padding). > Rainer Blome wrote: >> Mozilla and Safari appear to use the same (weird) interpretation of >> percentages. With width:25%, the width of a 1px border can be >> significantly more than one fourth of the available width. They >> apparently use a width that excludes padding. Unexpected, and so far mostly not what I need, but indeed standard-conforming. The "content with padding" area also serves as the containing box for descendants, making it desirable to control its width directly. >> To get the expected >> sizing makes it necessary to use an additional, padding- margin- and >> borderless container. ...just to be able to directly control the desired width. The abundance of these additional "container" divs suggests that the standard's width definition may be unfortunate. > IE approach is probably more logical (width property sets the width of the > content, excluding paddings, margins and borders), It's the other way around, for IE 6 the "width" property specifies the width of "content with padding". From rainer.blome at gmx.de Wed Jan 21 23:56:02 2009 From: rainer.blome at gmx.de (Rainer Blome) Date: Thu, 22 Jan 2009 00:56:02 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> <49765FDF.10609@gmx.de> Message-ID: <4977B612.10804@gmx.de> Maciej Brencz wrote: >> That's what I mean. The name ".float-left" is potentially confusing >> because it suggests that it means something absolute. I'd prefer to use >> names that express the intended relativity of the style property, for >> example ".float-begin" and ".float-end". > > True, but take a look at this example: > >
> Dodaj Aplikacj? > For > developers > > #wise_applink has float-right, Yes. > #wise-appload has float-right. Where? I see only one occurrence of "right". > If we change > the naming convention the first element in wise apps menu will have > .float-end class and the last one (second) will have .float-begin. Also > confusing ;) I don't understand. A class name should truthfully reflect the effect of the class, regardless of the current layout direction. In the example of the WISE apps menu, the app links would all have class "float-begin", only the "add app" link would have "float-end". This would not change when the direction is changed, only the classes' properties would be changed. LTR: .float-begin { float:left; } .float-end { float:right; } Line beginning Line end App1 App2 App3 "Add an app" RTL: .float-begin { float:right; } .float-end { float:left; } Line end Line beginning "Add an app" App3 App2 App1 >> Why the new table format? It needs 2 KB more space. > To make it easier to understand the content of langs array. I suggest these changes: "name" -> "native" - This is the native name, as written in the language itself. Both the native and english language names are names. "desc" -> "en" - Directly expresses that these are the english language names. "rtl" -> "dir", true -> "rtl", false -> "ltr" - Allows using the value directly, without having to map it to a "dir" property value. Also allows generalization to TTB languages. > That's 5% grow in size. For end user on search.wikia.com we're sending merged JS file > (search.js) with size of 309 kB. Even smaller increase :) We can also try > to use GZIP content encoding to make it even smaller... Why don't the Wikia servers use compression? Or do they already? Do know whether this would be visible to the user, for example in page info? From phil.nelson at gmail.com Wed Jan 21 23:59:03 2009 From: phil.nelson at gmail.com (Christian Nelson) Date: Wed, 21 Jan 2009 18:59:03 -0500 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: <4977B612.10804@gmx.de> References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> <49765FDF.10609@gmx.de> <4977B612.10804@gmx.de> Message-ID: > > >> That's 5% grow in size. For end user on search.wikia.com we're >> sending merged JS file >> (search.js) with size of 309 kB. Even smaller increase :) We can >> also try >> to use GZIP content encoding to make it even smaller... > > Why don't the Wikia servers use compression? Or do they already? > Do know whether this would be visible to the user, for example in > page info? Do we really need to worry bout compression when we're still editing the JS itself so heavily? I suppose we could use something to minify it on the fly, like http://code.google.com/p/minify/ but otherwise it seems like we'd be working across purposes. > > > _______________________________________________ > Search-UI mailing list > Search-UI at wikia.com > http://lists.wikia.com/mailman/listinfo/search-ui From jan.eschweiler at gmx.net Thu Jan 22 10:23:49 2009 From: jan.eschweiler at gmx.net (Jan Eschweiler) Date: Thu, 22 Jan 2009 11:23:49 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> <49765FDF.10609@gmx.de> <4977B612.10804@gmx.de> Message-ID: <49784935.1070609@gmx.net> Hi, we can also use gzip compression for every files(not only JS). My php code: class abZlib { public function Init() { global $_SERVER; $OBGzHandler=(isset($_SERVER["HTTP_ACCEPT_ENCODING"]) && eregi("gzip, deflate", $_SERVER["HTTP_ACCEPT_ENCODING"])); if ($OBGzHandler) { ob_start("ob_gzhandler"); } else { ob_start(); } return true; } public function Flush() { ob_end_flush(); return true; } } Regards Cy Christian Nelson schrieb: >> >>> That's 5% grow in size. For end user on search.wikia.com we're >>> sending merged JS file >>> (search.js) with size of 309 kB. Even smaller increase :) We can >>> also try >>> to use GZIP content encoding to make it even smaller... >>> >> Why don't the Wikia servers use compression? Or do they already? >> Do know whether this would be visible to the user, for example in >> page info? >> > > Do we really need to worry bout compression when we're still editing > the JS itself so heavily? I suppose we could use something to minify > it on the fly, like http://code.google.com/p/minify/ but otherwise it > seems like we'd be working across purposes. > > >> _______________________________________________ >> Search-UI mailing list >> Search-UI at wikia.com >> http://lists.wikia.com/mailman/listinfo/search-ui >> > > _______________________________________________ > Search-UI mailing list > Search-UI at wikia.com > http://lists.wikia.com/mailman/listinfo/search-ui > > From macbre at wikia-inc.com Thu Jan 22 10:38:22 2009 From: macbre at wikia-inc.com (Maciej Brencz) Date: Thu, 22 Jan 2009 11:38:22 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: <49784935.1070609@gmx.net> References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> <49765FDF.10609@gmx.de> <4977B612.10804@gmx.de> <49784935.1070609@gmx.net> Message-ID: > we can also use gzip compression for every files(not only JS). Yes and we can even tell Apache to do so... Responses from AjaxDispatcher are already gziped. -- Maciej [macbre] Brencz macbre[at]wikia.com skype: macbre_wikia From macbre at wikia-inc.com Thu Jan 22 13:01:31 2009 From: macbre at wikia-inc.com (Maciej Brencz) Date: Thu, 22 Jan 2009 14:01:31 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> <49765FDF.10609@gmx.de> <4977B612.10804@gmx.de> Message-ID: Hi, I've just commited my changes related to RTL version of WIkia Search UI (r723). Right now I'm making changes in private branch located at . Basically I removed position: absolute rules and changed them to float: left / right (classes "float-left" and "float-right" - names might be confusing for RTL users, but in some cases same applies to "float-begin" / "float-end"). Hardcoded border-right values were replaced with "border" CSS class. I've also simplified HTML of header and search results. JS script which sets "lang" variable also checks whether current language is LTR / RTL (based on 'rtl' entry in langs JS array) and sets class name of to "ltr" or "rtl". Still some work needs to be done with header inside index.htm -- Maciej [macbre] Brencz macbre[at]wikia.com skype: macbre_wikia From rainer.blome at gmx.de Fri Jan 23 07:55:19 2009 From: rainer.blome at gmx.de (Rainer Blome) Date: Fri, 23 Jan 2009 08:55:19 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> <49765FDF.10609@gmx.de> <4977B612.10804@gmx.de> Message-ID: <497977E7.7030307@gmx.de> Maciej Brencz wrote: > I've just commited my changes related to RTL version of WIkia Search UI > (r723). Right now I'm making changes in private branch located at > . Impressive, it already looks better than my private table-based version. The RTL flag for Arabic wasn't set, checked in a fix in cool_rtl. From macbre at wikia-inc.com Fri Jan 23 08:41:07 2009 From: macbre at wikia-inc.com (Maciej Brencz) Date: Fri, 23 Jan 2009 09:41:07 +0100 Subject: [search-ui] [Fwd: Re: RTL version of Wikia Search UI] In-Reply-To: <497977E7.7030307@gmx.de> References: <49727274.7060505@gmx.de> <298babfb0901190159r6baf18acte5c97db85398e333@mail.gmail.com> <4975148D.9050307@gmx.de> <49765FDF.10609@gmx.de> <4977B612.10804@gmx.de> <497977E7.7030307@gmx.de> Message-ID: Hi, > Impressive, it already looks better than my private table-based version. Great :) > The RTL flag for Arabic wasn't set, checked in a fix in cool_rtl. Thanks for the fix -- Maciej [macbre] Brencz macbre[at]wikia.com skype: macbre_wikia