Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: How scalars work (about numbers, text strings, and binary strings)

by halley (Prior)
on Oct 19, 2007 at 14:23 UTC ( #645979=note: print w/ replies, xml ) Need Help??


in reply to Re: How scalars work (about numbers, text strings, and binary strings)
in thread How scalars work (about numbers, text strings, and binary strings)

In my Firefox (not an obscure browser), this diagram formatted incorrectly, causing the whole column to expand twice as wide as intended to the right. If you include text or diagrams that might screw up formatting, can you please put it in <readmore> tags?

--
[ e d @ h a l l e y . c c ]


Comment on Re^2: How scalars work (about numbers, text strings, and binary strings)
Download Code
Re^3: How scalars work (about numbers, text strings, and binary strings)
by Juerd (Abbot) on Oct 19, 2007 at 19:41 UTC

    Sorry, your browser is broken beyond what I personally care to work around. The post is a mere <pre> tag with text in it, no further formatting applied. If even this breaks, anything might, and we could wrap the entire internet in <readmore>... Please check and repair your setup.

    The 80 characters width is a conscious conservative choice, and the diagram renders correctly on my computer in Firefox, Opera, Konqueror, Internet Explorer, Safari, w3m, Links2, Lynx, Dillo, ... That's all the major browsers and a few obscure ones.

    I had reports of some monospace fonts being not-so-monospaced for unicode linedrawing characters (while especially there, it really matters), so I uploaded the screenshot at http://juerd.nl/files/perlvalues.png. I try my best, but I have to draw a line with regards to how far I want to go, and adding <readmore> tags to hide the most important part of this work is well beyond that line.

    Juerd # { site => 'juerd.nl', do_not_use => 'spamtrap', perl6_server => 'feather' }

      It's not that monospace fonts have characters that aren't monospaced, is that very few of them have the necessary characters. When a character is missing, the OS will use an alternate font for that character.

      For example, the "Courier New" on this machine doesn't have any of the "BOX DRAWINGS HEAVY" characters (such as U+250F, BOX DRAWINGS HEAVY DOWN AND RIGHT, ┏), only "BOX DRAWINGS LIGHT" characters (such as U+250C, BOX DRAWINGS LIGHT DOWN AND RIGHT, ┌).

      You used characters not present in my "Courier New", including "BOX DRAWINGS HEAVY DOWN AND RIGHT". Those characters are being fetched from another font, perhaps Arial, causing the diagram to be distorted.

      Had you used only characters present in my "Courier New", such as "BOX DRAWINGS LIGHT DOWN AND RIGHT", the diagram would not be distorted.

      So yes, totally a font issue, though not quite the one you described.

        Interesting. The default monospace font in Ubuntu appears to be DejaVu Sans Mono. I've changed the lines to thin ones, so it works both in your font and in mine.

        Juerd # { site => 'juerd.nl', do_not_use => 'spamtrap', perl6_server => 'feather' }

      I have to concur with ikegami. Please tell, what monospace font are you using which contains alls those characters? My two usuals, Courier New and Lucida Console, don't.

      A word spoken in Mind will reach its own level, in the objective world, by its own weight
        DejaVu Sans Mono

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://645979]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2014-07-23 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (152 votes), past polls