www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - (Un)justified justification

reply "Nick Sabalausky" <a a.a> writes:
Don't know why I never brought this up until now, but...

I know how much Andrei loves justified text, but maybe, just maybe, it's not 
such a great idea on the website's sidebar menu?:

http://www.semitwist.com/download/img/shots/dpl--justified-is-pretty-and-easy-to-read.png
Sep 02 2011
next sibling parent reply "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Fri, 02 Sep 2011 22:07:29 +0300, Nick Sabalausky <a a.a> wrote:

 Don't know why I never brought this up until now, but...

 I know how much Andrei loves justified text, but maybe, just maybe, it's  
 not
 such a great idea on the website's sidebar menu?:

 http://www.semitwist.com/download/img/shots/dpl--justified-is-pretty-and-easy-to-read.png
I think (based on my understanding of Andrei's vision of the website) that text should have had soft hyphens inserted inside its words by a JavaScript script (which doesn't work correctly in all browsers), but I guess you have JS off :) -- Best regards, Vladimir mailto:vladimir thecybershadow.net
Sep 02 2011
next sibling parent "Nick Sabalausky" <a a.a> writes:
"Vladimir Panteleev" <vladimir thecybershadow.net> wrote in message 
news:op.v063sazxtuzx1w cybershadow.mshome.net...
 On Fri, 02 Sep 2011 22:07:29 +0300, Nick Sabalausky <a a.a> wrote:

 Don't know why I never brought this up until now, but...

 I know how much Andrei loves justified text, but maybe, just maybe, it's 
 not
 such a great idea on the website's sidebar menu?:

 http://www.semitwist.com/download/img/shots/dpl--justified-is-pretty-and-easy-to-read.png
I think (based on my understanding of Andrei's vision of the website) that text should have had soft hyphens inserted inside its words by a JavaScript script (which doesn't work correctly in all browsers), but I guess you have JS off :)
I thought of that, but it looks exactly the same for me both with and without JS. The *only* difference is that if JS is on, the currently selected item has a white dotted underline. But regardless, there's no reason why simple text should look like shit without JS. If the JS hyphenation works and looks good, then what you do is make the HTML/CSS left-aligned and then turn on justification in the JS. Trivial.
Sep 02 2011
prev sibling next sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 9/2/11 2:15 PM, Vladimir Panteleev wrote:
 On Fri, 02 Sep 2011 22:07:29 +0300, Nick Sabalausky <a a.a> wrote:

 Don't know why I never brought this up until now, but...

 I know how much Andrei loves justified text, but maybe, just maybe,
 it's not
 such a great idea on the website's sidebar menu?:

 http://www.semitwist.com/download/img/shots/dpl--justified-is-pretty-and-easy-to-read.png
I think (based on my understanding of Andrei's vision of the website) that text should have had soft hyphens inserted inside its words by a JavaScript script (which doesn't work correctly in all browsers), but I guess you have JS off :)
Below a width even text with hyphens looks odd. On my own website (www.erdani.com) I turned off justification and hyphenation in the testimonials. Andrei
Sep 02 2011
prev sibling parent Robert Clipsham <robert octarineparrot.com> writes:
On 02/09/2011 20:15, Vladimir Panteleev wrote:
 On Fri, 02 Sep 2011 22:07:29 +0300, Nick Sabalausky <a a.a> wrote:

 Don't know why I never brought this up until now, but...

 I know how much Andrei loves justified text, but maybe, just maybe,
 it's not
 such a great idea on the website's sidebar menu?:

 http://www.semitwist.com/download/img/shots/dpl--justified-is-pretty-and-easy-to-read.png
I think (based on my understanding of Andrei's vision of the website) that text should have had soft hyphens inserted inside its words by a JavaScript script (which doesn't work correctly in all browsers), but I guess you have JS off :)
Javascript for this? D: CSS CAN DO THAT! D: word-break: hyphenate !important; word-wrap: break-word; The !important and second line are only required for firefox/opera compatibility, they won't use hyphens though. -- Robert http://octarineparrot.com/
Sep 03 2011
prev sibling parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 9/2/11 2:07 PM, Nick Sabalausky wrote:
 Don't know why I never brought this up until now, but...

 I know how much Andrei loves justified text, but maybe, just maybe, it's not
 such a great idea on the website's sidebar menu?:

 http://www.semitwist.com/download/img/shots/dpl--justified-is-pretty-and-easy-to-read.png
Yah, I wonder how that remained there. Andrei
Sep 02 2011
next sibling parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
Speaking of websites issues, can anyone else confirm that copy/pasting
code snippets from dpl.org doesn't copy the newlines properly when
pasting into a text editor? I mean neither LF nor CRLF is pasted.

On the dmars.com site the snippets can be copied normally.
Sep 02 2011
parent reply "Nick Sabalausky" <a a.a> writes:
"Andrej Mitrovic" <andrej.mitrovich gmail.com> wrote in message 
news:mailman.2652.1315000476.14074.digitalmars-d puremagic.com...
 Speaking of websites issues, can anyone else confirm that copy/pasting
 code snippets from dpl.org doesn't copy the newlines properly when
 pasting into a text editor? I mean neither LF nor CRLF is pasted.

 On the dmars.com site the snippets can be copied normally.
It works fine for me on WinXP, FF2, Programmer's Notepad 2. Hmm, but it doesn't work if I use Arora instead of FF (I lose the EOLs just like you). The code sample font is also really, really large in Arora for some reason (but looks fine in FF).
Sep 02 2011
parent "Nick Sabalausky" <a a.a> writes:
"Nick Sabalausky" <a a.a> wrote in message 
news:j3rjom$2rem$1 digitalmars.com...
 "Andrej Mitrovic" <andrej.mitrovich gmail.com> wrote in message 
 news:mailman.2652.1315000476.14074.digitalmars-d puremagic.com...
 Speaking of websites issues, can anyone else confirm that copy/pasting
 code snippets from dpl.org doesn't copy the newlines properly when
 pasting into a text editor? I mean neither LF nor CRLF is pasted.

 On the dmars.com site the snippets can be copied normally.
It works fine for me on WinXP, FF2, Programmer's Notepad 2. Hmm, but it doesn't work if I use Arora instead of FF (I lose the EOLs just like you). The code sample font is also really, really large in Arora for some reason (but looks fine in FF).
IE7 is a mix: The code font is overly large like in Arora, but copy/paste works fine. Opera 10.62 is same as IE7: Code font is huge, copy/paste works. In Chrome (well, really SRWare Iron 4), the font size looks right, but then the stupid POS browser actually *crashes*. Hmm, lemme try again but with JS off...Ehh, well that figures, Chrome doesn't appear to even have a way to shut off JS. Ahh, but if I'm fast enough I can copy the text before it crashes and...just like Arora, the EOLs are missing. Guess it must be a WebKit screwup.
Sep 02 2011
prev sibling next sibling parent Jonathan M Davis <jmdavisProg gmx.com> writes:
On Friday, September 02, 2011 23:54:27 Andrej Mitrovic wrote:
 Speaking of websites issues, can anyone else confirm that copy/pasting
 code snippets from dpl.org doesn't copy the newlines properly when
 pasting into a text editor? I mean neither LF nor CRLF is pasted.
 
 On the dmars.com site the snippets can be copied normally.
They work fine for me in Konqueror (using KHTML). - Jonathan M Davis
Sep 02 2011
prev sibling parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
Yeah what's also weird is that when I clone the repo and build the
website via the makefile, copy-pasting works fine in Firefox, but when
I try to do it remotely via dpl.org, it doesn't work.

I can confirm it works fine in IE8 though. Maybe it's a plugin issue.. hmm
Sep 02 2011