ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* czech food
@ 2005-09-10  0:26 Vit Zyka
  2005-09-15 10:02 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Vit Zyka @ 2005-09-10  0:26 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1648 bytes --]

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
=======================================================

[-- Attachment #2: lang-sla.zip --]
[-- Type: application/zip, Size: 4219 bytes --]

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: czech food
  2005-09-10  0:26 czech food Vit Zyka
@ 2005-09-15 10:02 ` Hans Hagen
  2005-09-15 12:16   ` Vit Zyka
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2005-09-15 10:02 UTC (permalink / raw)


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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: czech food
  2005-09-15 10:02 ` Hans Hagen
@ 2005-09-15 12:16   ` Vit Zyka
  0 siblings, 0 replies; 3+ messages in thread
From: Vit Zyka @ 2005-09-15 12:16 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 2628 bytes --]

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
> -----------------------------------------------------------------
> 
> _______________________________________________

[-- Attachment #2: lang-sla.zip --]
[-- Type: application/zip, Size: 4021 bytes --]

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-09-15 12:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-10  0:26 czech food Vit Zyka
2005-09-15 10:02 ` Hans Hagen
2005-09-15 12:16   ` Vit Zyka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).