Re: [NTG-context] rotated accented character
Mojca Miklavec wrote:
So now that I have the properly rotated letter, is it possible to do the following:
% U0259 LATIN SMALL LETTER SCHWA \definecharacter schwa {\rotate[rotation=180,location=high]{\hbox{e}}} \definecharacter schwagrave {\buildtextaccent\textgrave{\schwa}} \schwagrave
Hm, probably needed for old-slovenian or so: \starttext \unexpanded\def\topaccent#1#2#3#4#5% down right slantcorrection accent char {\dontleavehmode \bgroup \setbox0\hbox{#4}% \setbox2\hbox{#5}% \hbox to \wd2 \bgroup \hss\copy2\hss \hskip-\wd2 \hss\hskip#2\wd0\hskip-#3\fontdimen1\font\raise#1\hbox{#4}\hss \egroup \egroup} \def\buildtextgrave{\topaccent{0pt}{0}{15}{\textgrave}} \startencoding[default] \definecharacter schwa {\hbox{\rotate[rotation=180,location=high]{\hbox{e}}}} \definecharacter schwagrave {\buildtextgrave\schwa} \stopencoding test test \ruledhbox{\schwa} test \schwagrave test test \ruledhbox{\schwa} test \schwagrave test test \ruledhbox{\schwa} test \schwagrave \sl test test \ruledhbox{\schwa} test \schwagrave test test \ruledhbox{\schwa} test \schwagrave test test \ruledhbox{\schwa} test \schwagrave \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen wrote:
Hm, probably needed for old-slovenian or so:
To typeset the old-slovenian I have to wait for another couple of years for some more glyphs which cannot be faked ;) (But you know - our phoneticians never run out of ideas how to write what we speak. These strange glyps are a part of modern dictionaries and grammars.) I'm glad that I can finally type one of the characters that I was searching for years in LaTeX :) ... Also thanks to Brooks for inspiring me with his nice question marks in the garden.
\starttext
\unexpanded\def\topaccent#1#2#3#4#5% down right slantcorrection accent char {\dontleavehmode \bgroup \setbox0\hbox{#4}% \setbox2\hbox{#5}% \hbox to \wd2 \bgroup \hss\copy2\hss \hskip-\wd2 \hss\hskip#2\wd0\hskip-#3\fontdimen1\font\raise#1\hbox{#4}\hss \egroup \egroup}
\def\buildtextgrave{\topaccent{0pt}{0}{15}{\textgrave}}
Thank you, Hans! This macro solved two problems at once :) Now I can also define \udoublegrave (the "Aditions for Slovenian and Croatian" section of Unicode ;) by simply putting \mirror{\texthungarumlaut} as an argument to \topaccent. Definitions of those strange glyphs have nothing to do in the ConTeXt core, but perhaps you can put the \topaccent there as someone else could need it as well. Thanks again, Mojca
Mojca Miklavec wrote:
Thank you, Hans! This macro solved two problems at once :) Now I can also define \udoublegrave (the "Aditions for Slovenian and Croatian" section of Unicode ;) by simply putting \mirror{\texthungarumlaut} as an argument to \topaccent.
hm, your little private tex version ...
Definitions of those strange glyphs have nothing to do in the ConTeXt core, but perhaps you can put the \topaccent there as someone else could need it as well.
ok, done Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Hans Hagen Outside
-
Mojca Miklavec