[comp.sys.mac] Suggestions for Polish diacritical marks in PS fonts

simon@alberta.uucp (Simon Tortike) (07/24/89)

Can someone offer some advice on how to generate the diacritical
marks common in Polish with existing PostScript fonts?  It would
be nice if it could be done retroactively, but I'll consider
buying a new font if necessary.  Thanks
-------------------
Simon Tortike, Department of Mining, Metallurgical and Petroleum Engineering,
The University of Alberta, Edmonton, AB, CANADA T6G 2G6.
simon@alberta.uucp || simon@cs.UAlberta.CA || Tel. +1 403 492-3338

ggiergiel@vmsa.cf.uci.edu (08/03/89)

 >In article <1989Jul24.165332.7985@alberta.uucp>,
> simon@alberta.uucp (Simon Tortike) writes...
> 
>>Can someone offer some advice on how to generate the diacritical
>>marks common in Polish with existing PostScript fonts?  It would
>>be nice if it could be done retroactively, but I'll consider
>>buying a new font if necessary.  Thanks
>>-------------------

Here is a copy of my reply Mr.Simon Tortike of Canada.

I am also puzzled by the lack of proper accent character for polish a 
and e in TEX.  Some people unfamilar with Polish lanquage resort to
 using \c  (APS for example) with utterly disagreeable results.
There is however much simpler solution. It only
requires that you use ADOBE fonts in your TEXtures document. Standard
Adobe text fonts define a character called OGONEK that can be used to
generate polish a and e.  Apple maps this character in position FE
which is inaccesible with standard keyboard mapping. To the credit of
Texture designer, Ogonek is available with all Postscript text fonts
installed in TexMetrix. Its TEX location is octal 316. Here is my
macro package for polish characters.

% Polish character definition

\def\s {\'s} \def\S {\'S} \def\z {\'z} \def\Z {\'Z} \def\n {\'n}
\def\N {\'N} \def\c {\'c} \def\C {\'C} \def\q {\.z} \def\Q {\.Z}
\def\o {\'o} \def\O {\'O} \def\l{\char'376} \def\L{\char'377}

\def\e{{e\llap{\char'316\kern0.05em}}}
\def\a{{a\llap{\char'316\kern-.1em}}}
\def\E{{E\llap{\char'316\kern.1em}}}
\def\A{{A\llap{\char'316\kern-.1em}}}

I store these in file polish. Here is an example of how it is used:

\input polish 
% the following two lines are here because your Texture program
% has not  been modified to use true polish slashed L.
\def\l {l} 
\def\L {L}
 % remember you can use only Adobe PS fonts
\font\myfont= times at 12pt
\font\myfontB= timesB at 12pt
\font\myfontI= timesI at 12pt 
\font\myfontBI= timesBI at 12pt

\myfontB Wi\a zania atom\o w.\par 
\myfont Gdy dwa lub wi\e cej atomy
\l \a cz\a\ si\e\ tworz\a c cz\a steczk\e, musi istnie\c\ pewna
si\l a przyci\a gaj\a ca, kt\o ra powoduje wi\a zanie si\e\ atom\o w.
Podobnie jest w ciele sta\l ym, w  kt\o rym r\o wnie\q\ musz\a\
istnie\c\ pewne si\l y przyci\a gaj\a ce, wi\a \q \a ce atom lub cz\a
steczki sk\l adaj\a ce si\e\ na to cia\l o. 
\myfontI Gdy dwa lub wi\e cej atomy \l \a cz\a\ si\e\ 
tworz\a c cz\a steczk\e, musi istnie\c\
pewna si\l a przyci\a gaj\a ca, kt\o ra powoduje wi\a zanie si\e\
atom\o w. Podobnie jest w ciele sta\l ym, w  kt\o rym r\o wnie\q\
musz\a\ istnie\c\ pewne si\l y przyci\a gaj\a ce, wi\a \q \a ce atom
lub cz\a steczki sk\l adaj\a ce si\e\ na to cia\l o. 
\myfontBI Gdy dwa
lub wi\e cej atomy \l \a cz\a\ si\e\ tworz\a c cz\a steczk\e, musi
istnie\c\ pewna si\l a przyci\a gaj\a ca, kt\o ra powoduje wi\a zanie
si\e\ atom\o w. Podobnie jest w ciele sta\l ym, w  kt\o rym r\o
wnie\q\ musz\a\ istnie\c\ pewne si\l y przyci\a gaj\a ce, wi\a \q \a
ce atom lub cz\a steczki sk\l adaj\a ce si\e\ na to cia\l o. 

\end


Note that you will not be able to use true polish slashed L,l.(that's
why I redefined \l and \L in the above example file). To use them
(Adobe fonts have polish l,L but they are not mapped in either
QuickDraw or TExtures) requires minor surgery on Textures and
some modification to TexMetrics file. I have done it, but the 
explanations are a little bit too technical to include them here. 
If you are still interested in how to do it let me know.

Regarding your question on retroactivity, by which I think you mean operating
system level support of diacritical marks for that particular language so
that any program could use them .I contacted Apple to inquire
about it, hoping that the only computer company that spent significant
effort in making their operating system fully international (vide
Script Manager) would have an answer. Unfortunately, they do not or at
least they were not willing to tell me anything. The impression I got
was that they are simply too afraid (it's your old good USA here)
to talk publicly about the possibility of their computers being
used with any of those filthy east european languages. For record, 
ScriptManager defines a script constant for smslavic, but that is the full
extent of Apple effort in this direction as of this writing.

 P.S the macros shown above are of the simplest possible design.
 With some fonts you may occasionally notice small misaligments. 
 To correct for that, add some font specific kerning .

Jerzy Giergiel 714-856-5849 GGIERGIEL@UCIVMSA