Add tests for malayalam and for bug #1820.

Refs #1820.
This commit is contained in:
Hermann Kraus 2013-04-24 01:21:06 +02:00
parent fcb747658b
commit e3db6a49ff
25 changed files with 396 additions and 1 deletions

View file

@ -0,0 +1,93 @@
{
"keys": [
"",
"-10",
"-9",
"-8",
"-7",
"-6",
"-5",
"-4",
"-3",
"-2",
"-1"
],
"data": {},
"grid": [
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" !!! ",
" !!! ! ! ",
" # # # # !! !! ",
" $ ### # ! ! ",
" %%% $$$ $ ### # # ",
" &&& %% $$$ $$$ ",
" &&& & & %% % ",
" ' ' ' ' && && ",
" ( ''' ' & & ",
" ))) ((( ( ''' ' ' ",
" *** )) ((( ((( ",
" *** * * )) ) ",
" + + + + ** ** ",
" +++ + * * ",
" +++ + + ",
" ",
" + * ) ( ' & % $ # ! ",
" ",
" ",
" ",
" + +++ * ",
" + ++ ******* ) ",
" * * ** ))) ) ) )) ",
" * ) )))))) ( ",
" )) ) )))) (( (((( ' ",
" ((( ((( ''' & ",
" ''' &&& ",
" && & %%%%% %%% % ",
" & %%%% % %% % $ ",
" %%%% % %% % $$$$ $$ # ",
" $$$ $$$ $ #### ## ",
" $ ### ## !!! !! ",
" ! ! ",
" ! ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" "
]
}

View file

@ -0,0 +1,93 @@
{
"keys": [
"",
"-1",
"-2",
"-3",
"-4",
"-5",
"-6",
"-7",
"-8",
"-9",
"-10"
],
"data": {},
"grid": [
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ! # $ % & ' ( ) * + ",
" !!! ### $$$ %%% &&& ''' ((( ))) *** +++ ",
" !! ## $$ %% && '' (( )) ** ++ ",
" !! ! ## # $$ $ %% % && & '' ' (( ( )) ) ** * ++ + ",
" ",
" ",
" ",
" ",
" ",
" ! !! ! ",
" ! ! !!!! ",
" ! ! ! # ",
" # #### ",
" # # ## $ ",
" $$$ $ $ $$ ",
" $ $$$$$$ ",
" $$ $ $$$$ % ",
" %% %%%% ",
" %% %%%% & ",
" && & & ",
" &&&& ",
" & & ' ",
" ' ' ' ",
" '' ' ",
" ((((( ((( ( ",
" (((( ( (( ( ",
" (((( ( (( ( ) ) ",
" )))) ))) ",
" ) )) )) * ",
" ) ***** ** ",
" *** *** ",
" *** *** ",
" + ++ ",
" + + ",
" ",
" ",
" ",
" "
]
}

View file

@ -0,0 +1,93 @@
{
"keys": [
"",
"-10",
"-9",
"-8",
"-7",
"-6",
"-5",
"-4",
"-3",
"-2",
"-1"
],
"data": {},
"grid": [
" ",
" ",
" ",
" ",
" ",
" ! ! ! ! ",
" !!! ! ",
" ### !!! ! ! ",
" ## ",
" ## # ",
" $ $ $ $ ",
" $$$ $ ",
" %%% $$$ $ $ ",
" %% ",
" %% % ",
" & & & & ",
" &&& & ",
" ''' &&& & & ",
" '' ",
" '' ' ",
" ( ( ( ( ",
" ((( ( ",
" ))) ((( ( ( ",
" )) ",
" )) ) ",
" * * * * ",
" *** * ",
" +++ *** * * ",
" ++ ",
" ++ + ",
" ",
" ",
" ",
" ",
" ) ' & $ $ # ",
" + ++ + ** ** * ))) ) ) )) ( ( (((( '' ' ' &&&& & %%%%% %%% % $$$ $$$$$$ ##### ## ! ! !! ",
" + + ++++ * **** ) )))))) (( (((( '''' &&& & %%%% % %% % $$$$ $$ ### ### !!! ! ",
" + ++ + ****** )) ) )))) ( ((((( ' ' &&&& & %%%% % %% % $$$ $$$ $ ### ### ! ! ! ",
" $ ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" "
]
}

View file

@ -0,0 +1,34 @@
{
"keys": [
"",
"-5"
],
"data": {},
"grid": [
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" !!!!! !!!!!! ! ",
" !! !! ! ! ! ",
" !!! ! ! ! ! ",
" ! ! ! ",
" !!!!! ! ! ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" "
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<!-- Minimal testcase for bug #1523. -->
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>My Style</StyleName>
<Datasource>
<Parameter name="type">osm</Parameter>
<Parameter name="file">../data/points.osm</Parameter>
</Datasource>
</Layer>
<Style name="My Style">
<Rule>
<PointSymbolizer opacity="0.5" ignore-placement="true"/>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" wrap-width="4" placement="point" dx="0" dy="0"><ExpressionFormat line-spacing="[nr]+1">[name]</ExpressionFormat></TextSymbolizer>
</Rule>
</Style>
</Map>

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<!-- Minimal testcase for bug #1523. -->
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>My Style</StyleName>
<Datasource>
<Parameter name="type">osm</Parameter>
<Parameter name="file">../data/points.osm</Parameter>
</Datasource>
</Layer>
<Style name="My Style">
<Rule>
<PointSymbolizer opacity="0.5" ignore-placement="true"/>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" wrap-width="4" placement="point" dx="0" dy="1"><ExpressionFormat line-spacing="[nr]+1">[name]</ExpressionFormat></TextSymbolizer>
</Rule>
</Style>
</Map>

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<!-- Minimal testcase for bug #1523. -->
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>My Style</StyleName>
<Datasource>
<Parameter name="type">osm</Parameter>
<Parameter name="file">../data/points.osm</Parameter>
</Datasource>
</Layer>
<Style name="My Style">
<Rule>
<PointSymbolizer opacity="0.5" ignore-placement="true"/>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" wrap-width="4" placement="point" dx="0" dy="-1"><ExpressionFormat line-spacing="[nr]+1">[name]</ExpressionFormat></TextSymbolizer>
</Rule>
</Style>
</Map>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<Map background-color="white" srs="+proj=latlong +datum=WGS84" font-directory="/usr/share/fonts/truetype/malayalam-fonts/">
<Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>My Style</StyleName>
<Datasource>
<Parameter name="type">osm</Parameter>
<Parameter name="file">../data/points.osm</Parameter>
</Datasource>
</Layer>
<Style name="My Style">
<Rule>
<Filter>[nr] = "5"</Filter>
<TextSymbolizer face-name="Rachana Regular" size="30" placement="point" dy="0">"ഇന്ത്യ"</TextSymbolizer>
</Rule>
</Style>
</Map>

View file

@ -76,7 +76,12 @@ text_tests = [
{'name': "line-offset", 'sizes':[(900, 250)],'bbox': mapnik.Box2d(-5.192, 50.189, -5.174, 50.195)}, {'name': "line-offset", 'sizes':[(900, 250)],'bbox': mapnik.Box2d(-5.192, 50.189, -5.174, 50.195)},
{'name': "text-bug1532", 'sizes':[(600, 165)]}, {'name': "text-bug1532", 'sizes':[(600, 165)]},
{'name': "text-bug1533", 'sizes':[(600, 600)]}, {'name': "text-bug1533", 'sizes':[(600, 600)]},
{'name': "text-bug1820-1", 'sizes':[(600, 300)], 'bbox':default_text_box},
{'name': "text-bug1820+0", 'sizes':[(600, 300)], 'bbox':default_text_box},
{'name': "text-bug1820+1", 'sizes':[(600, 300)], 'bbox':default_text_box},
{'name': "text-expressionformat-color", 'sizes':[(800, 100)], 'bbox':default_text_box}, {'name': "text-expressionformat-color", 'sizes':[(800, 100)], 'bbox':default_text_box},
# Disabled by default as the required font isn't shipped with mapnik
#{'name': "text-malayalam", 'sizes':[(800, 100)], 'bbox':default_text_box},
] ]
tiff_tests = [ tiff_tests = [