Don,
The HowTo is written in german.
Main page of the how to:
http://www.linuxdocs.org/HOWTOs/German-HOWTO.html
the copied code:
8.4 Generating PostScript
The displayed text may contain special german letters (Umlaute), if the
following function was called before.
http://www.linuxdocs.org/HOWTOs/German-HOWTO-8.html#ss8.4
Bernd
Don Allingham schrieb:
>Bernd,
>
>Thanks for the information. Can you point me to the HowTO? We will not
>be able to use the matlab example due to copyright issues, so I'd like
>to see what the HowTO has to say. If we can use this, I can integrate it
>in, if not, I'll have to see about developing a similar, non-copyrighted
>patch.
>
>Don
>
>On Mon, 2004-01-19 at 03:50, Bernd Hahnebach wrote:
>
>
>>hi,
>>
>>I hope this is the right place to post. I use german version of gramps.
>>I like the output format postscript of reports. The special german
>>letters are not shown in any of my psviewer. I don't think this is a
>>problem of my system. The special letters are written in the strings of
>>the ps-file (just opened *.ps in an editor as they are not unicode.) but
>>not shown in the ps-viewer. I attached gramps generated *.ps of a really
>>small data base (actually one person).
>>
>>As there are some other translation of gramps to european languages I'm
>>wondering nobody claimed about (accept english most european languages
>>have special letters).
>>
>>I don't have a glue about code of ps-file but was playing a bit and
>>found two solutions by copy paste:
>>
>>The first one I found in a german HowTo in the internet:
>>
>>hugo@...> diff ancestor_chart.ps
>>ancestor_chart-new1.ps
>>6a7,21
>> > %%BeginProlog
>> > %
>> > % change encoding to ISO8859-1 - reiner@...
>> > %
>> > % <fontname> ISOfindfont => <font>
>> > %
>> > /ISOfindfont {
>> > dup 100 string cvs (ISO-) exch concatstrings cvn exch
>> > findfont dup maxlength dict begin
>> > { 1 index /FID ne {def}{pop pop} ifelse } forall
>> > /Encoding ISOLatin1Encoding def
>> > currentdict
>> > end definefont
>> > } def
>> > %%EndProlog
>>34c49
>>< /Helvetica findfont 9 scalefont setfont
>>---
>> > /Helvetica ISOfindfont 9 scalefont setfont
>>
>>--> any string of *.ps file with special letters needs ISOfindfont
>>instead of findfont
>>
>>
>>The second solution I copied from a matlab generated postscript. It's
>>the one I'm currently using, because I only need to copy the lines.
>>
>>hugo@...> diff ancestor_chart.ps
>>ancestor_chart-new2.ps
>>6a7,15
>> > %%BeginProlog
>> > /ISOF {
>> > dup findfont dup length 1 add dict begin {
>> > 1 index /FID eq {pop pop} {def} ifelse
>> > } forall /Encoding ISOLatin1Encoding def
>> > currentdict end definefont
>> > } def
>> > /Helvetica ISOF
>> > %%EndProlog
>>
>>
>>Bernd
>>
>>
|