[GRASS-user] Fwd: v.label utf8 possible?

Anna Petrášová kratochanna at gmail.com
Sun Jun 26 12:35:38 PDT 2016


On Sun, Jun 26, 2016 at 7:38 AM, Robert Kuszinger <kuszinger at giscom.hu> wrote:
>
>
> Markus,
>
> thanks for the notes. Finally I realized that in an UTF-8 environment what
> v.label does is ok, its generated files (pure text with pre-calculated
> placements) are identical to system codepage.
>
> ps.map itself is the component which is limited to latin1.
>
> Actually I haven't stopped at this problem but started to make an
> alternative script for myself. In the near future I may have to create maps
> with khmer text on it.
> As a workaround I've created a script and discovered that I could simulate
> the work done by ps.map with some handmade calculations.
> The result is not worse (visually in terms of generated code) than my
> beloved ps.map definition files. I have full control on display, raster,
> vector and other map gadgets (north, scalebar, etc). I use GRASS_RENDER_*
> variables, and all d.* commands. Cairo driver with BMP output is very fast.
> I put each map "layer" into a different BMP files with identicatal
> resolutions.
>
> Merging (stacking, layering, flattening or whatever you call it) and opacity
> are the only steps I need to use external command for which is imagemagick.
>
> The resolution is currently a given dpi (300-600) bitmap but I'd like to
> test the toolchain with svg output as well to keep vectors for best print
> process.
> Anyway, an oversampled bitmap (600 dpi for 300 dpi target) is usually enough
> so I'm ready for my own purposes.
>
> I'm not too familiar with postcript but I'm also interested if it could be
> enhanced anyway to work with opentype/ttf unicode fonts and glyphs.
>
> Thanks again
> Robert
>
>

See related ticket:
https://trac.osgeo.org/grass/ticket/1349

>
>>
>> AFAIK there is no encoding support available in v.labels at time.
>> Please open an enhancement ticket for this at
>>
>> https://trac.osgeo.org/grass/newticket
>> (requires to register first at OSGeo, see there).
>>
>> > I've found some links to
>> > v.label.sa which is not available in my Grass setup nor on the extension
>> > list.
>>
>> Unfortunately v.label.sa is not compliant with GRASS GIS 7, see
>> https://trac.osgeo.org/grass/ticket/1942
>>
>> [...]
>> > Is there a chance to create it at all? UTF-8 is essential and some
>> > characters I need to print are not available in latin1.
>>
>> Fully agreed! Let's follow up via ticket on this.
>>
>> Markus
>>
>>
>> --
>> Markus Neteler
>> http://www.mundialis.de - free data with free software
>> http://grass.osgeo.org
>> http://courses.neteler.org/blog
>
>
>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list