Re: [OSM-talk] Language rendering query

2009-01-22 Thread vikas yadav
Mapnik has updated north india tiles.
It sure has hindi font but rendered it all wrongly.
http://www.openstreetmap.org/?lat=27.61&lon=78.72&zoom=8&layers=B000FTF

If its the DejaVu font, i think it worked flawlessly on my self-generated
TAH tiles.
Any suggestions?

2009/1/19 ビカス ヤダワ (vikas yadav) 

> We could give other devnagri/other language alternatives even on that css
> definition.
>
> To temporarily test/solve my language rendering problem, I have recently
> ran tilesGen xy with the tiles im interested in.
> So now, New Delhi and a lot of the Nation Capital Region has a nice (Hindi)
> names.
> Now I wonder, would mapnik be hindi-ready this Wednesday.
>
> 2009/1/16 Ed Loach 
>
> D Tucny wrote:
>>
>> > The t...@h installation instructions tell you to install
>> > the DejaVu font, a free font, however, it's coverage,
>> 
>> > is missing some pretty large chunks that would likely
>> > take significantly more effort than has so far gone into
>> > the font to fill... as such, to render any of the missing
>> > languages (listed below) alternative fonts are needed...
>>
>> 
>>
>> What I don't understand is even if you install alternative fonts, the
>> osmarender stylesheets have entries such as this from caption-z11.xml:
>>
>>/* Places - generic styles */
>>.caption-casing {
>>fill: white;
>>stroke: white;
>>font-family: "DejaVu Sans";
>>font-weight: normal;
>>text-anchor: middle;
>>stroke-miterlimit: 1.5;
>>}
>>
>>.caption-core {
>>stroke: white;
>>stroke-width: 0px;
>>font-family: "DejaVu Sans";
>>font-weight: normal;
>>text-anchor: middle;
>>stroke-miterlimit: 1.5;
>>}
>>
>> How would it know to use a font other than DejaVu Sans even if they were
>> installed? And in case it is relevant I'm using Windows?
>>
>> Ed
>>
>>
>>
>> ___
>> talk mailing list
>> talk@openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/talk
>>
>
>
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Language rendering query

2009-01-19 Thread ビカス ヤダワ (v ikas yadav)
We could give other devnagri/other language alternatives even on that css
definition.

To temporarily test/solve my language rendering problem, I have recently ran
tilesGen xy with the tiles im interested in.
So now, New Delhi and a lot of the Nation Capital Region has a nice (Hindi)
names.
Now I wonder, would mapnik be hindi-ready this Wednesday.

2009/1/16 Ed Loach 

> D Tucny wrote:
>
> > The t...@h installation instructions tell you to install
> > the DejaVu font, a free font, however, it's coverage,
> 
> > is missing some pretty large chunks that would likely
> > take significantly more effort than has so far gone into
> > the font to fill... as such, to render any of the missing
> > languages (listed below) alternative fonts are needed...
>
> 
>
> What I don't understand is even if you install alternative fonts, the
> osmarender stylesheets have entries such as this from caption-z11.xml:
>
>/* Places - generic styles */
>.caption-casing {
>fill: white;
>stroke: white;
>font-family: "DejaVu Sans";
>font-weight: normal;
>text-anchor: middle;
>stroke-miterlimit: 1.5;
>}
>
>.caption-core {
>stroke: white;
>stroke-width: 0px;
>font-family: "DejaVu Sans";
>font-weight: normal;
>text-anchor: middle;
>stroke-miterlimit: 1.5;
>}
>
> How would it know to use a font other than DejaVu Sans even if they were
> installed? And in case it is relevant I'm using Windows?
>
> Ed
>
>
>
> ___
> talk mailing list
> talk@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk
>
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Language rendering query

2009-01-16 Thread Ed Loach
D Tucny wrote:

> The t...@h installation instructions tell you to install 
> the DejaVu font, a free font, however, it's coverage, 

> is missing some pretty large chunks that would likely 
> take significantly more effort than has so far gone into 
> the font to fill... as such, to render any of the missing 
> languages (listed below) alternative fonts are needed...



What I don't understand is even if you install alternative fonts, the 
osmarender stylesheets have entries such as this from caption-z11.xml:

/* Places - generic styles */
.caption-casing {
fill: white;
stroke: white;
font-family: "DejaVu Sans";
font-weight: normal;
text-anchor: middle;
stroke-miterlimit: 1.5;
}

.caption-core {
stroke: white;
stroke-width: 0px;
font-family: "DejaVu Sans";
font-weight: normal;
text-anchor: middle;
stroke-miterlimit: 1.5;
}

How would it know to use a font other than DejaVu Sans even if they were 
installed? And in case it is relevant I'm using Windows?

Ed



___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Language rendering query

2009-01-16 Thread D Tucny
2009/1/16 Ted Mielczarek 

>
> On Thu, Jan 15, 2009 at 3:31 AM, D Tucny  wrote:
>
>> Not now it doesn't... jth did the last render and is obviously missing
>> fonts needed... however, it seems some people do have OK fonts...
>>
>
> Does t...@h require the correct fonts to be installed on the user's machine?
> That seems pretty suboptimal. Couldn't it ship a free font with the software
> and use that?
>
>
The t...@h installation instructions tell you to install the DejaVu font, a
free font, however, it's coverage, as can be seen here
http://dejavu.svn.sourceforge.net/viewvc/*checkout*/dejavu/trunk/dejavu-fonts/langcover.txtis
missing some pretty large chunks that would likely take significantly
more effort than has so far gone into the font to fill... as such, to render
any of the missing languages (listed below) alternative fonts are needed...

Amharic
Bihari (Devanagari script)
Bhojpuri (Devanagari script)
Bengali
Tibetan
Cherokee
Dzongkha
Ethiopic (Geez)
Gujarati
Hindi (Devanagari script)
Japanese
Khmer
Kannada
Korean
Kokani (Devanagari script)
Kashmiri (Devanagari script)
Malayalam
Mongolian
Marathi (Devanagari script)
Burmese (Myanmar)
Nepali (Devanagari script)
Oriya
Punjabi (Gurumukhi script)
Sanskrit (Devanagari script)
Sinhala (Sinhalese)
Syriac
Tamil
Telugu
Thai
Eritrean Tigrinya
Ethiopian Tigrinya
Tigre
Tagalog
Chinese (simplified)
Chinese Hong Kong Supplementary Character Set
Chinese in Macau
Chinese in Singapore
Chinese (traditional)

There is at least some overlap with some of those languages, and some of
those will not be in common use, at least for naming, but, that is just a
list from the linked completion report above...

d
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Language rendering query

2009-01-16 Thread Ted Mielczarek
On Thu, Jan 15, 2009 at 3:31 AM, D Tucny  wrote:

> Not now it doesn't... jth did the last render and is obviously missing
> fonts needed... however, it seems some people do have OK fonts...
>

Does t...@h require the correct fonts to be installed on the user's machine?
That seems pretty suboptimal. Couldn't it ship a free font with the software
and use that?

-Ted
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Language rendering query

2009-01-15 Thread Erik Johansson
On Thu, Jan 15, 2009 at 5:22 AM, ビカス ヤダワ (vikas yadav)
 wrote:
> Hi,
>
> I had two queries:
> 1) New Delhi text is not visible on low zooms (like 8) and is only seem even
> after other smaller cities are shown. Please suggest how to fix it. (I had
> put the same question on other thread a while back with no response. :(
> 2) Need to know how to show hindi translations on north indian cities when
> they are rendered. I had put up a half dozen city name:hi just yesterday.
> what else should be done so that mapnik/tah start rendering the translations
> in the language? (Just like shown in Sri Lanka/China/etc)

Would be alt easier if you supplied links so we could check the data.

1)
New Delhi seems to be show in mapnik Zoom 8.
http://openstreetmap.org/?lat=28.6&lon=77.2&zoom=8&layers=B000FTF

Though osmarender seems to mess things up:
http://openstreetmap.org/?lat=28.6&lon=77.2&zoom=8&layers=B000FTF

I don't know why but Openstreetmap rendering rules are optimized for
Gemany and the UK. Might be one of the problems.



2) Multi language stuff is hard, I would go for the Armenian way see:
http://openstreetmap.org/?lat=40.15&lon=45.76&zoom=7&layers=B000FTF

Basically  the city us tagged like this:
name:en=Swamp
name:sv=Träsk
name=Träsk (Swamp)
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Language rendering query

2009-01-15 Thread D Tucny
2009/1/15 Kenneth Gonsalves 

> On Thursday 15 Jan 2009 1:07:57 pm Vikas Yadav wrote:
> > yippeee! default name key seems working!
> > http://c.tah.openstreetmap.org/Tiles/tile/12/2924/1709.png
>
> doesnt look like devanagiri or gurmukhi to me
>

Not now it doesn't... jth did the last render and is obviously missing fonts
needed... however, it seems some people do have OK fonts...

New Delhi looking somewhat off...
http://server.tah.openstreetmap.org/Browse/details/tile/12/2926/1708/
but the tail half of the name looking OK...
http://server.tah.openstreetmap.org/Browse/details/tile/12/2927/1708/

d
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Language rendering query

2009-01-15 Thread Kenneth Gonsalves
On Thursday 15 Jan 2009 1:07:57 pm Vikas Yadav wrote:
> yippeee! default name key seems working!
> http://c.tah.openstreetmap.org/Tiles/tile/12/2924/1709.png

doesnt look like devanagiri or gurmukhi to me

-- 
regards
Kenneth Gonsalves
Associate
NRC-FOSS
http://nrcfosshelpline.in/web/

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Language rendering query

2009-01-14 Thread Vikas Yadav
yippeee! default name key seems working!
http://c.tah.openstreetmap.org/Tiles/tile/12/2924/1709.png

On Thu, 2009-01-15 at 14:00 +0800, D Tucny wrote:
> 2009/1/15 Vikas Yadav 
> Hi,
> 
> I had two queries:
> 1) New Delhi text is not visible on low zooms (like 8) and is
> only seem even after other smaller cities are shown. Please
> suggest how to fix it. (I had put the same question on other
> thread a while back with no response. :( 
> 
> http://www.informationfreeway.org/?lat=19.268965272384115&lon=77.80076850988954&zoom=4&layers=0F0B0F
> It's showing up at zoom 4 there...
>  
> 2) Need to know how to show hindi translations on north indian
> cities when they are rendered. I had put up a half dozen city
> name:hi just yesterday. what else should be done so that
> mapnik/tah start rendering the translations in the language?
> (Just like shown in Sri Lanka/China/etc)
> 
> While it's useful to have the hindi name in name:hi, it may also be
> worthwhile putting it in name if the local language is officially
> hindi... If name currently contains an English name, that can be moved
> to name:en. 
> 
> I'm not sure however that there are suitable fonts on the mapnik tile
> server or ti...@home clients to correctly render hindi (the DejaVu
> font does not have full UTF8 coverage), so making this change may
> result in names not being visible on the map until this problem is
> corrected... (Right now non-latin rendering on ti...@home is pretty
> haphazard as some clients have suitable fonts for some languages and
> others don't, Mapnik didn't used to support glyph fallback, so any
> characters not present in DejaVu were rendered as squares, it now
> supports glyph fallback however and the server seems to have a
> reasonable range of fonts available which means that it's consistent
> rendering of non-latin scripts has suddenly overtaken ti...@home in
> this regard)... If you find that hindi does not render correctly on
> the Mapnik layer, it would likely be useful to raise a trac ticket
> with some suggestions of free/open fonts that could be installed on
> the server to make this wor k...
>  
> d


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Language rendering query

2009-01-14 Thread Vikas Yadav
On Thu, 2009-01-15 at 14:00 +0800, D Tucny wrote:
> 2009/1/15 Vikas Yadav 
> Hi,
> 
> I had two queries:
> 1) New Delhi text is not visible on low zooms (like 8) and is
> only seem even after other smaller cities are shown. Please
> suggest how to fix it. (I had put the same question on other
> thread a while back with no response. :( 
> 
> http://www.informationfreeway.org/?lat=19.268965272384115&lon=77.80076850988954&zoom=4&layers=0F0B0F
> It's showing up at zoom 4 there...

Mapnik is good but on TAH every other city is more important than the
capital of the country: 
http://www.informationfreeway.org/?lat=28.352079252718625&lon=77.80076850988954&zoom=8&layers=BF000F
(here you can see gurgaon is seen but the neighbour new delhi is not)
>  
> 2) Need to know how to show hindi translations on north indian
> cities when they are rendered. I had put up a half dozen city
> name:hi just yesterday. what else should be done so that
> mapnik/tah start rendering the translations in the language?
> (Just like shown in Sri Lanka/China/etc)
> 
> While it's useful to have the hindi name in name:hi, it may also be
> worthwhile putting it in name if the local language is officially
> hindi... If name currently contains an English name, that can be moved
> to name:en. 
I just tried a few experiments like for Gurgaon i just added hindi
(english) style to see how would it render.
I will check and follow your suggestions about trac ticket next
thursday.
> 
> I'm not sure however that there are suitable fonts on the mapnik tile
> server or ti...@home clients to correctly render hindi (the DejaVu
> font does not have full UTF8 coverage), so making this change may
> result in names not being visible on the map until this problem is
> corrected... (Right now non-latin rendering on ti...@home is pretty
> haphazard as some clients have suitable fonts for some languages and
> others don't, Mapnik didn't used to support glyph fallback, so any
> characters not present in DejaVu were rendered as squares, it now
> supports glyph fallback however and the server seems to have a
> reasonable range of fonts available which means that it's consistent
> rendering of non-latin scripts has suddenly overtaken ti...@home in
> this regard)... If you find that hindi does not render correctly on
> the Mapnik layer, it would likely be useful to raise a trac ticket
> with some suggestions of free/open fonts that could be installed on
> the server to make this wor k...
>  
> d

Thanks!
Vikas


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Language rendering query

2009-01-14 Thread D Tucny
2009/1/15 Vikas Yadav 

> Hi,
>
> I had two queries:
> 1) New Delhi text is not visible on low zooms (like 8) and is only seem
> even after other smaller cities are shown. Please suggest how to fix it. (I
> had put the same question on other thread a while back with no response. :(
>

http://www.informationfreeway.org/?lat=19.268965272384115&lon=77.80076850988954&zoom=4&layers=0F0B0F
It's showing up at zoom 4 there...


> 2) Need to know how to show hindi translations on north indian cities when
> they are rendered. I had put up a half dozen city name:hi just yesterday.
> what else should be done so that mapnik/tah start rendering the translations
> in the language? (Just like shown in Sri Lanka/China/etc)
>

While it's useful to have the hindi name in name:hi, it may also be
worthwhile putting it in name if the local language is officially hindi...
If name currently contains an English name, that can be moved to name:en.

I'm not sure however that there are suitable fonts on the mapnik tile server
or ti...@home clients to correctly render hindi (the DejaVu font does not
have full UTF8 coverage), so making this change may result in names not
being visible on the map until this problem is corrected... (Right now
non-latin rendering on ti...@home is pretty haphazard as some clients have
suitable fonts for some languages and others don't, Mapnik didn't used to
support glyph fallback, so any characters not present in DejaVu were
rendered as squares, it now supports glyph fallback however and the server
seems to have a reasonable range of fonts available which means that it's
consistent rendering of non-latin scripts has suddenly overtaken
ti...@homein this regard)... If you find that hindi does not render
correctly on the
Mapnik layer, it would likely be useful to raise a trac ticket with some
suggestions of free/open fonts that could be installed on the server to make
this work...

d
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


[OSM-talk] Language rendering query

2009-01-14 Thread ビカス ヤダワ (v ikas yadav)
Hi,

I had two queries:
1) New Delhi text is not visible on low zooms (like 8) and is only seem even
after other smaller cities are shown. Please suggest how to fix it. (I had
put the same question on other thread a while back with no response. :(
2) Need to know how to show hindi translations on north indian cities when
they are rendered. I had put up a half dozen city name:hi just yesterday.
what else should be done so that mapnik/tah start rendering the translations
in the language? (Just like shown in Sri Lanka/China/etc)

Expective a response.
Thank you,
Vikas
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


[OSM-talk] Language rendering query

2009-01-14 Thread Vikas Yadav
Hi,

I had two queries:
1) New Delhi text is not visible on low zooms (like 8) and is only seem even
after other smaller cities are shown. Please suggest how to fix it. (I had
put the same question on other thread a while back with no response. :(
2) Need to know how to show hindi translations on north indian cities when
they are rendered. I had put up a half dozen city name:hi just yesterday.
what else should be done so that mapnik/tah start rendering the translations
in the language? (Just like shown in Sri Lanka/China/etc)

Expective a response.
Thank you,
Vikas
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk