Skip to content

Commit

Permalink
Remove link-non-blanks and non-blank/, tidy scripts and move into top…
Browse files Browse the repository at this point in the history
…-level directory
  • Loading branch information
Mark Longair committed Jul 18, 2008
1 parent bbb639d commit 780d594
Show file tree
Hide file tree
Showing 8 changed files with 153 additions and 259 deletions.
17 changes: 5 additions & 12 deletions compose-inline-breaks
Expand Up @@ -11,18 +11,11 @@ end
$title = ARGV[0]
$number_of_pages = Integer(ARGV[1])

unless FileTest.exists?( 'Blocks.txt' )
unless system( "curl", "-s", "ftp://ftp.unicode.org/Public/5.1.0/ucd/Blocks.txt", "-o", "Blocks.txt" )
STDERR.puts "Couldn't download Blocks.txt."
exit(-1)
end
end

require 'individual-characters/tileinfo.rb'
require 'tileinfo.rb'

$pages_hash = Hash.new

files = Dir['individual-characters/non-blank/U*-*-*-top.png']
files = Dir['individual-characters/U*-*-*-top.png']

files.each do |png_file|

Expand Down Expand Up @@ -107,11 +100,11 @@ $pages.each do |p|
puts "#{p} (#{name_of_page(p)})"
end

$info_hash = YAML.load( open( "individual-characters/non-blank/top-sizes.yaml", "r" ){ |f| f.read } )
$info_hash = YAML.load( open( "top-sizes.yaml", "r" ){ |f| f.read } )

$info_hash.each_key do |png_file|
# puts "key from $info_hash was: #{png_file}"
from_page = png_file.gsub(/\-\d{3}\-\d{8}-top\..*/,'')
from_page = png_file.gsub(/^.*(U[0-9A-Fa-f]+)\-\d{3}\-\d{8}-top\.png$/,'\1')
$pages_hash[from_page].push(png_file)
end

Expand Down Expand Up @@ -215,7 +208,7 @@ class ImageToDraw
end

def draw_to( im, color, leave_header_space )
im_tile = GD::Image.new_from_png( "individual-characters/non-blank/#{@image_file}" )
im_tile = GD::Image.new_from_png( @image_file )
y = 0
im_tile.copy( im, x, y, 0, 0, im_tile.width, im_tile.height)
im_tile.destroy
Expand Down
2 changes: 1 addition & 1 deletion copy-characters-to-webspace
Expand Up @@ -24,7 +24,7 @@ data.each do |e|
unless system( "convert",
"-scale",
"50%",
"individual-characters/non-blank/" + name.gsub(".png","-top.png"),
"individual-characters/" + name.gsub(".png","-top.png"),
destination_directory + "reduced-" + new_name )
puts "Failed to convert and copy: #{name}"
exit(-1)
Expand Down
1 change: 0 additions & 1 deletion individual-characters/.gitignore
@@ -1,2 +1 @@
Blocks.txt
*.png.empty
81 changes: 0 additions & 81 deletions individual-characters/link-non-blanks

This file was deleted.

5 changes: 0 additions & 5 deletions individual-characters/non-blank/.gitignore

This file was deleted.

148 changes: 0 additions & 148 deletions individual-characters/non-blank/extract-numbers

This file was deleted.

0 comments on commit 780d594

Please sign in to comment.