HarfbuzzTesting: Difference between revisions

From SMC Wiki
(Created page with "Test words and expected rendered results {| border="1" ! align="left"| Text ! Rendered in Meera ! Rendered in Rachana |- |ന്‍ |- |- |ല്‍ |- |- |ക്‍ |- |- |ര...")
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Test words and expected rendered results
== Building Harfbuzz ==


{| border="1"
You need to install ragel, autoconf, libtool and cairo-devel to build the harfbuzz library on your system. Use your operating system's package manager to install ragel, autoconf, libtool and cairo-devel.
! align="left"| Text
 
! Rendered in Meera
Note: Arch Linux users can install harfbuzz via AUR from here http://aur.archlinux.org/packages.php?ID=51139  and need not follow the build instructions. :
! Rendered in Rachana
 
|-
Now you need to get the code, build and install harfbuzz.
|ന്‍
 
|-
<code>
|-
git clone http://anongit.freedesktop.org/git/harfbuzz.git
|ല്‍
cd harfbuzz
|-
./autogen.sh
|-
./configure
|ക്‍
make
|-
sudo make install
|-
</code>
|ര്‍
This should build and install harfbuzz. The next time you want to build harfbuzz ( a newer version ) all you need to do is (in the harfbuzz directory mentioned above )
|-
 
|-
<code>
|ണ്‍
git pull
|-
make clean
|-
sudo make install
|ള്‍
</code>
|-
 
|-
== Testing Harfbuzz ==
|ഖ്യ
 
|-
 
|-
Test data is available here : http://silpa.org.in/pub/tests/hb/ml/ml-harfbuzz-testdata.txt
|ര്യ
A script that can be used to generate a set of test results : http://silpa.org.in/pub/tests/hb/ml/GenerateTestResults.sh
|-
Currently we have a page that shows the test results here : http://silpa.org.in/pub/tests/hb/ml
|-
 
|ന്ത്യ
In order to test using the script , download the script to a new directory and edit the script and make sure that the variables path_to_Raghu_TTF, path_to_Meera_TTF, path_to_Rachana_TTF in it all point to the TTF files for the respective fonts in your filesystem.
|-
 
|-
Make the script executable by running
|ന്ത്ര്യ
<code>
|-
chmod +x GenerateTestResults.sh
|-
</code>
|ഗ്ദ്ധ്രോ
 
|-
Now download the test data ( its a simple text file ) and save it somewhere. Invoke the script by running
|-
 
|സ്പ്ലേ
<code>
|-
./GenerateTestResults.sh path_to_test_data
|-
</code>
|ള്യം
 
|-
This will generate an index.html file. This file is similar to the one that shows the test results at silpa.org.in.
|-
 
|സ്പ്രി
If you can think of new words that bring out bugs, or if you notice that any test cases pass, do notify via the mailinglist.
|-
|-
|യും
|-
|-
|ല്ലാം
|-
|-
|ണ്ട
|-
|-
|ത്ത
|-
|-
|ന്ത
|-
|-
|മ്പ
|-
|-
|യ്യ
|-
|-
|വ്വ
|-
|-
|ല്ല
|-
|-
|ത്തെ
|-
|-
|ക്കെ
|-
|-
|ത്തൊ
|-
|-
|ക്കൊ
|-
|-
|പ്ലോ
|-
|-
|ല്യ
|-
|-
|പ്ര
|-
|-
|ക്ത്ര
|-
|-
|ഖ്ര
|-
|-
|കായ്‌കറി
|-
|-
|കാര്‍ക്കോടകന്‍
|-
|-
|മുഖ്യമന്ത്രി
|-
|-
|കുറ്റ്യാടി
|-
|-
|സ്വാതന്ത്ര്യം
|-
|-
|ഹാര്‍ഡ്‌വെയര്‍
|-
|-
സോഫ്റ്റ്‌വെയര്‍
|-
|-
|}

Latest revision as of 10:12, 3 August 2011

Building Harfbuzz

You need to install ragel, autoconf, libtool and cairo-devel to build the harfbuzz library on your system. Use your operating system's package manager to install ragel, autoconf, libtool and cairo-devel.

Note: Arch Linux users can install harfbuzz via AUR from here http://aur.archlinux.org/packages.php?ID=51139 and need not follow the build instructions. :

Now you need to get the code, build and install harfbuzz.

git clone http://anongit.freedesktop.org/git/harfbuzz.git
cd harfbuzz
./autogen.sh
./configure
make 
sudo make install

This should build and install harfbuzz. The next time you want to build harfbuzz ( a newer version ) all you need to do is (in the harfbuzz directory mentioned above )

git pull
make clean
sudo make install

Testing Harfbuzz

Test data is available here : http://silpa.org.in/pub/tests/hb/ml/ml-harfbuzz-testdata.txt
A script that can be used to generate a set of test results : http://silpa.org.in/pub/tests/hb/ml/GenerateTestResults.sh
Currently we have a page that shows the test results here : http://silpa.org.in/pub/tests/hb/ml

In order to test using the script , download the script to a new directory and edit the script and make sure that the variables path_to_Raghu_TTF, path_to_Meera_TTF, path_to_Rachana_TTF in it all point to the TTF files for the respective fonts in your filesystem.

Make the script executable by running

chmod +x GenerateTestResults.sh

Now download the test data ( its a simple text file ) and save it somewhere. Invoke the script by running

./GenerateTestResults.sh path_to_test_data

This will generate an index.html file. This file is similar to the one that shows the test results at silpa.org.in.

If you can think of new words that bring out bugs, or if you notice that any test cases pass, do notify via the mailinglist.