Skip to content

Commit

Permalink
Added markdown report
Browse files Browse the repository at this point in the history
  • Loading branch information
solarkennedy committed May 22, 2016
1 parent 4e18ee8 commit 3993f7d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 16 deletions.
3 changes: 1 addition & 2 deletions .gitignore
@@ -1,3 +1,2 @@
inputs/*.png
outputs/*.png
ascii/*.ascii
*.swp
16 changes: 4 additions & 12 deletions README.md
@@ -1,5 +1,4 @@
# ascii-art-converter-comparison

# text-based-web-browser-comparison

## List of Browsers Compared

Expand Down Expand Up @@ -29,24 +28,17 @@
* Color
* w3m
* Render frames
* lynx
* underline links

### Launch xterms and take Screenshots

make screenshots

### Build A Markdown Report

make report

## Results

Final results are published on my [blog](http://xkyle.com/a-comparison-of-text-based-web-browsers/)

## Related Work

https://kmandla.wordpress.com/2011/01/13/a-comparison-of-text-based-browsers/

[2005 Text Mode Browser Roundup](http://www.linuxjournal.com/article/8148)
[http://elinks.cz/history.html](The history and evolution of the Links browsers)
* [Kmandla comparison](https://kmandla.wordpress.com/2011/01/13/a-comparison-of-text-based-browsers/)
* [2005 Text Mode Browser Roundup](http://www.linuxjournal.com/article/8148)
* [http://elinks.cz/history.html](The history and evolution of the Links browsers)
22 changes: 20 additions & 2 deletions go.sh
Expand Up @@ -39,7 +39,6 @@ function take_screenshot {
filename="outputs/$(echo $url | cut -f 3 -d '/') $method.png"
if [[ -f "$filename" ]]; then return 0; fi
echo "Taking a screenshot of $url and rendered with $method"
set -vx
xterm -geometry 140x40 -e "$method $url" &
echo "Press enter when ready to take a screenshot"
read GO
Expand All @@ -50,7 +49,6 @@ function take_screenshot {
}

function save_original {
set -vx
local url=$1
filename="outputs/$(echo $url | cut -f 3 -d '/') original.png"
if [[ -f "$filename" ]]; then return 0; fi
Expand All @@ -72,4 +70,24 @@ function make_screenshots {
done
}

function print_img_markdown {
local method=$1
local url=$2
local filename="$(echo $url | cut -f 3 -d '/') $method.png"
local local_file="/uploads/$filename"
echo "![$url rendered using $method]($filename '$url rendered using $method')"
}

function make_report {
for url in $urls; do
echo ""
echo "## Site: [$url]($url)"
for method in $methods; do
print_img_markdown $method $url
done
print_img_markdown 'Original \(surf\)' $url
done
}

make_screenshots
make_report

0 comments on commit 3993f7d

Please sign in to comment.