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 |- |ന്‍ |- |- |ല്‍ |- |- |ക്‍ |- |- |ര...")
 
No edit summary
Line 1: Line 1:
Test words and expected rendered results
== Building Harfbuzz ==


{| border="1"
You need to install ragel to build the harfbuzz library on your system. Use your operating system's package manager to install ragel.
! align="left"| Text
 
! Rendered in Meera
Now you need to get the code, build and install harfbuzz.
! Rendered in Rachana
 
|-
<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 in smc.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.
|-
|സ്പ്രി
|-
|-
|യും
|-
|-
|ല്ലാം
|-
|-
|ണ്ട
|-
|-
|ത്ത
|-
|-
|ന്ത
|-
|-
|മ്പ
|-
|-
|യ്യ
|-
|-
|വ്വ
|-
|-
|ല്ല
|-
|-
|ത്തെ
|-
|-
|ക്കെ
|-
|-
|ത്തൊ
|-
|-
|ക്കൊ
|-
|-
|പ്ലോ
|-
|-
|ല്യ
|-
|-
|പ്ര
|-
|-
|ക്ത്ര
|-
|-
|ഖ്ര
|-
|-
|കായ്‌കറി
|-
|-
|കാര്‍ക്കോടകന്‍
|-
|-
|മുഖ്യമന്ത്രി
|-
|-
|കുറ്റ്യാടി
|-
|-
|സ്വാതന്ത്ര്യം
|-
|-
|ഹാര്‍ഡ്‌വെയര്‍
|-
|-
സോഫ്റ്റ്‌വെയര്‍
|-
|-
|}

Revision as of 16:36, 1 August 2011

Building Harfbuzz

You need to install ragel to build the harfbuzz library on your system. Use your operating system's package manager to install ragel.

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 in smc.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.