Hello mostly Czech ConTeXters, I have noticed in the modules.pdf that there are some Czech slot empty in the lang-sla.tex. Most of them are filled up now. All changes are marked by 'new' comment. Main changes: - redefinition of 'dashes' (pomlcek) \c!leftsentence=\thickglue--\thickglue\penalty-20, \c!rightsentence=\thickglue--\thickglue\penalty-20, \c!leftsubsentence=~---~\penalty-20, \c!rightsubsentence=~---~\penalty-20, (intends were: endash size preferable, short stretchable/shrinkable spaces around, line break possible after dash but not before; it conforms Czech typographical rules) It needs some new definitions to core-spa.tex (Hans ??): \unexpanded\def\textormathglue#1#2#3{% {\dimen0=#1\hspaceamount\empty{#3}% \skip0=0pt plus.5\dimen0 minus.3\dimen0 \ifmmode\mskip#1#2% \else\kern#1\hspaceamount\empty{#3}\hskip\skip0\fi\relax}% } \def\thinglue {\textormathglue+\thinmuskip 1} \def\medglue {\textormathglue+\medmuskip 2} \def\thickglue {\textormathglue+\thickmuskip3} - definition of day names - most of empty slot added (Zkratky, Sekce, Subsekce, viz, ...) The file is attached. Suggestions are welcomed. Vit ======================================================= Ing. Vít Zýka, Ph.D. TYPOkvítek database publishing databazove publikovani data maintaining and typesetting in typographic quality priprava dat a jejich sazba v typograficke kvalite tel.: (+420) 777 198 189 www: http://typokvitek.com =======================================================
Vit Zyka wrote:
It needs some new definitions to core-spa.tex (Hans ??): \unexpanded\def\textormathglue#1#2#3{% {\dimen0=#1\hspaceamount\empty{#3}% \skip0=0pt plus.5\dimen0 minus.3\dimen0 \ifmmode\mskip#1#2% \else\kern#1\hspaceamount\empty{#3}\hskip\skip0\fi\relax}% } \def\thinglue {\textormathglue+\thinmuskip 1} \def\medglue {\textormathglue+\medmuskip 2} \def\thickglue {\textormathglue+\thickmuskip3}
this boils down to: \unexpanded\def\textormathglue#1#2#3% {\begingroup \scratchdimen=#1\hspaceamount\empty{#3}% \scratchskip=\zeropoint \!!plus.5\scratchdimen \!!minus.3\scratchdimen\relax \ifmmode \mskip#1#2% \else \kern\scratchdimen \hskip\scratchskip \fi \endgroup} \def\thinglue {\textormathglue+\thinmuskip 1} \def\medglue {\textormathglue+\medmuskip 2} \def\thickglue{\textormathglue+\thickmuskip3} why the kern followed by the skip? why not just \unexpanded\def\textormathglue#1#2#3% {\ifmmode \mskip#1#2\relax \else \begingroup \scratchdimen#1\hspaceamount\empty{#3}% \scratchskip \scratchdimen \!!plus .5\scratchdimen \!!minus.3\scratchdimen \hskip\scratchskip \endgroup \fi} ----------------------------------------------------------------- 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:
Vit Zyka wrote:
It needs some new definitions to core-spa.tex (Hans ??): \unexpanded\def\textormathglue#1#2#3{% {\dimen0=#1\hspaceamount\empty{#3}% \skip0=0pt plus.5\dimen0 minus.3\dimen0 \ifmmode\mskip#1#2% \else\kern#1\hspaceamount\empty{#3}\hskip\skip0\fi\relax}% } \def\thinglue {\textormathglue+\thinmuskip 1} \def\medglue {\textormathglue+\medmuskip 2} \def\thickglue {\textormathglue+\thickmuskip3}
this boils down to:
\unexpanded\def\textormathglue#1#2#3% {\begingroup \scratchdimen=#1\hspaceamount\empty{#3}% \scratchskip=\zeropoint \!!plus.5\scratchdimen \!!minus.3\scratchdimen\relax \ifmmode \mskip#1#2% \else \kern\scratchdimen \hskip\scratchskip \fi \endgroup}
Yes, that is better.
\def\thinglue {\textormathglue+\thinmuskip 1} \def\medglue {\textormathglue+\medmuskip 2} \def\thickglue{\textormathglue+\thickmuskip3}
why the kern followed by the skip? why not just
I was not sure if original kern has not have some secret reason, so I preserved as much \textormathspace as possible. No comments was done for cont-sla.tex, so I would ask you Hans to incorporate it to distro. Clean file in attch. Thanks Vit P.S. I had played with sorting but was not successful with uppercase accented letters. In texexecnew I noticed there are definition only for small letters, so uppercase should be defined by user. But how to do it for accented letters I do not know (without brief explanation of \exportsortrule, \exportsortshortcut, \exportsortreduction, \exportsortdivision there are too much variations - in a way of applied order, encoding expression, intended behaviour, not implemented features, bugs - and I am not able to solve it im my time possibilities).
\unexpanded\def\textormathglue#1#2#3% {\ifmmode \mskip#1#2\relax \else \begingroup \scratchdimen#1\hspaceamount\empty{#3}% \scratchskip \scratchdimen \!!plus .5\scratchdimen \!!minus.3\scratchdimen \hskip\scratchskip \endgroup \fi}
----------------------------------------------------------------- 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 (2)
-
Hans Hagen
-
Vit Zyka