From a774ddc5848c239f92f85ad9e3e37c40060d66bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nguy=E1=BB=85n=20Th=C3=A1i=20Ng=E1=BB=8Dc=20Duy?= Date: Sun, 2 Dec 2007 16:53:48 +0700 Subject: [PATCH] Added utility scripts dup.rb is used to copy standard glyphs to missing slots. You then can use fontforge to add accents and export to another bdf. copy.rb will be used to copy modified glyphs back to the source bdf (because fontforge-generated bdfs are so bad I won't add them to repository) --- copy.rb | 13 +++++++++++++ dup.rb | 9 +++++++++ 2 files changed, 22 insertions(+) create mode 100755 copy.rb create mode 100755 dup.rb diff --git a/copy.rb b/copy.rb new file mode 100755 index 0000000..5de9f3a --- /dev/null +++ b/copy.rb @@ -0,0 +1,13 @@ +#!/usr/bin/ruby +# this program copies Vietnamese glyphs from source bdf to target bdf, +# overwriting the old ones if exist. It is used to bring your modified +# glyphs back to source bdf as fontforge-generated bdf is usually too +# different from the source bdf +# Usage: ./copy.rb modified.bdf source.bdf output.bdf +# Once you check that output.bdf is okay, overwrite source.bdf +# with output.bdf +require 'bdf' +a = BDF.new(ARGV[0]) +b = BDF.new(ARGV[1]) +b.copy_all(a) +b.write(ARGV[1]) diff --git a/dup.rb b/dup.rb new file mode 100755 index 0000000..0b7c295 --- /dev/null +++ b/dup.rb @@ -0,0 +1,9 @@ +#!/usr/bin/ruby +# this program makes missing Vietnamese glyphs from "standard" glyphs +# so you only need to add accents to complete the glyphs +# Usage: ./dup.rb source.bdf output.bdf +require 'bdf' +a = BDF.new(ARGV[0]) +a.dup_all +a.write(ARGV[1]) + -- 2.11.4.GIT