diff options
author | Bill Richardson <wfrichar@google.com> | 2011-04-11 09:56:52 -0700 |
---|---|---|
committer | Bill Richardson <wfrichar@google.com> | 2011-04-11 09:56:52 -0700 |
commit | 8ec63350910a8cfb560a3df5f2d675435b002ba3 (patch) | |
tree | 743d39c6bb2499a5eb8b5a0218dfe343facea3f5 /scripts/newbitmaps/strings/text_to_bmp | |
parent | 624ee7e492b39ac559a94de9fdd65bf72d2a514c (diff) | |
download | vboot-8ec63350910a8cfb560a3df5f2d675435b002ba3.tar.gz |
Add the latest localized text strings, update scripts to support them.0.12.392.B
There are lots of new and changed files here, but they're mostly localized
text strings and prerendered bitmaps of them.
There are a few that still need rendering by hand. These locales don't work
with ImageMagick:
ar el fa hi iw ja ko th vi zh-CN zh-TW
Change-Id: I1777f985460d46d5aedbb3fbc2fd3c159439c454
R=rspangler@chromium.org
BUG=chromium-os:13037
TEST=none
Review URL: http://codereview.chromium.org/6825032
Diffstat (limited to 'scripts/newbitmaps/strings/text_to_bmp')
-rwxr-xr-x | scripts/newbitmaps/strings/text_to_bmp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/newbitmaps/strings/text_to_bmp b/scripts/newbitmaps/strings/text_to_bmp index e0c77b99..7d145d86 100755 --- a/scripts/newbitmaps/strings/text_to_bmp +++ b/scripts/newbitmaps/strings/text_to_bmp @@ -3,7 +3,8 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # -# Render a text file into a bitmap. +# Render a text file into a bitmap. Files named '*.txt' are small font, those +# nameed '*.TXT' are large font. # # Image parameters @@ -21,7 +22,11 @@ label_file="${tmpdir}/label.txt" for txtfile in $*; do bmpfile="${txtfile%.*}".bmp + # Must strip off the leading U+FEFF byte order mark (bytes 0xEF,0xBB,0xBF) of + # each file before I can pass it to imagemagick. Chomp any leading/trailing + # whitespace too. perl -p -e 'BEGIN{ $/=undef; }' \ + -e 'if (substr($_,0,3) eq "\xef\xbb\xbf") { substr($_, 0, 3) = ""; }' \ -e 's/^\s+//s;' -e 's/\s+$//s;' \ "$txtfile" > "$label_file" |