If you prefer Twitter's rendering then just click on a node and that tweet will open for you.
Edited to fix a typo ... thank you Jonn. Oh how I hate auto-corrupt.
If you prefer Twitter's rendering then just click on a node and that tweet will open for you.
Edited to fix a typo ... thank you Jonn. Oh how I hate auto-corrupt.
All that shows up on an iPad at normal zoom is a white page. I waited quite a while thinking maybe it was just generating something client side and that was taking a while before I noticed that there were scroll bars (both vertical and horizontal) on the page and their thumb size indicated I was only seeing a tiny fraction of the page.
On my desktop it depends on what I was doing previously. About half the time my browser window won't be big enough for anything to show up in the initial view.
Thanks.
Thanks.
The white background seems to come from this:
<polygon fill="white" stroke="transparent" points="-4,4 -4,-11651.5 3898,-11651.5 3898,4 -4,4"/>
We just need to find that in the SVG, look at the points defining the rectangle, find the left side and the top side from that list of points, then add some text. The left side is the minimum first coordinate in the set of points and the top is the minimum second coordinate in the set of points. That's -4 and -11651.5 in this case.Then we just need to add text there:
<text text-anchor="left" x="-4" y="-11637.5" font-family="Times,serif" font-size="14.00">Hello, World!</text>
Using the left side for x seems fine. For y using the top results in clipped text because apparently the y for text is the baseline. I don't know how font sizes work in SVG, but it looks like moving the base line down by font-size works nicely.Here's a little Perl script that can be used as a filter that takes your SVG and adds that text line, finding the top and left by looking at the points list in the first polygon line that has fill set to "white" and stroke set to "transparent".
#!/usr/bin/env perl
use strict;
my $left = 0;
my $top = 0;
while (<>) {
print;
if (m{<polygon.*fill="white"} && m{stroke="transparent"} && m{points="(.*?)"}) {
my @points = split /\s+/, $1;
foreach (@points) {
my($x, $y) = split /,/;
$left = $x if $x < $left;
$top = $y if $y < $top;
}
$top += 14;
print qq{<text text-anchor="left" x="$left" y="$top" font-family="Times,serif" font-size="14.00">Hello, World!</text>\n};
last;
}
}
print while (<>);So I need to test whether they will overlap, and suddenly it's a bag-o-nails. Or at the least, need to test if something is up there and not both including the extra, but that's ... inelegant.
The option of having an HTML template and including the SVG will work, and that's the one I'm probably going to go with. It needs tweaking.
(Probably need slightly more than font-size, in case parts of some characters descend below the baseline).
Thanks.
See top right: https://upload.wikimedia.org/wikipedia/commons/d/d8/Trn_cons...
If you find the trn/slashdot/HN-style threading better than the 2D graphical layout then I doubt I can explain to you why I find it (the threading) lacking.
What kind of curve is this?