Re: [NTG-context] Converting normal font into bold

2013-11-24 Thread Ondřej Hošek
Hi Huseyin,

On Sun, Nov 24, 2013 at 10:18 PM, H. Özoguz h.oezo...@mmnetz.de wrote:
 If I put the same arabic into CorelDraw, it prints a nice Unicode-Symbol for
 the number - see the JPG I have attached here, screenshot from CorelDraw,
 but ConTeXt ignores the brackets and prints just a verys small number. There
 are some problems like this. Are they easy to fix, or is this problem deeply
 involved?

Apparently, replacing a number enclosed in ornate parentheses (U+FD3E
and U+FD3F) with a number in the end of ayah ornament is a specialty
of the UthmanicHafs font. If I input the digit (e.g. U+0662) and then
the special non-printable end of ayah character (U+06DD), ConTeXt
and Amiri successfully output the digit inside the ornament.

Of course, since U+06DD is a non-printable character, it might be a
pain to work with in a text editor; you might want to define a custom
command for this purpose:

\def\eoa#1{#1\char06DD}

Cheers,
~~ Ondra
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] broken Czech dates

2013-10-13 Thread Ondřej Hošek
Hello,

the current ConTeXt Standalone contains a bug when attempting to output
Czech dates.

Minimal example:
\mainlanguage[cs]
\starttext
\currentdate
\stoptext

Expected output:
13. řijna 2013

Received output:
day, ,month, ,year

The culprit appears to be a missing comma in the language definition in
lang-def.mkiv:

\installlanguage
  [\s!cs]
  [ % ...
   \c!rightquotation=\upperrightdoublesixquote,
   \c!date={\v!day,\fourperemspace,\v!month,\space,\v!year}
   \s!lefthyphenmin=2,
   % ...
]

Add a comma at the end of the line defining the date format; this appears
to fix the problem.

As far as I can tell, the definitions of Slovak (sk) and Turkmen (tk)
appear to be suffering from the same problem.

Cheers,
~~ Ondra Hošek
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Fwd: broken Czech dates

2013-10-13 Thread Ondřej Hošek
Hello,

it appears Tomáš Hála's faculty's e-mail server has been blacklisted by
Spamhaus; he asked me to forward this to ntg-context.

Cheers,
~~ Ondra


-- Forwarded message --
From: Tomas Hala th...@pef.mendelu.cz
Date: Sun, Oct 13, 2013 at 10:32 PM
Subject: Re: [NTG-context] broken Czech dates
To: Ondřej Hošek ondra.ho...@gmail.com


snip

Hello,

you are right, there is really a mistake, that is probably my fault
when I was preparing Slovak settings and checking Czech ones.

Moreover, the dot is missing there; for both, cs and sk, we have to use
this:

   \c!date={\v!day,{.\fourperemspace},\v!month,\space,\v!year},


Cheers,

Tomas





Sun, Oct 13, 2013 ve 05:05:26PM +0200 Ondřej Hošek napsal(a):
#Hello,
#
#the current ConTeXt Standalone contains a bug when attempting to output
#Czech dates.
#
#Minimal example:
#\mainlanguage[cs]
#\starttext
#\currentdate
#\stoptext
#
#Expected output:
#13. řijna 2013
#
#Received output:
#day, ,month, ,year
#
#The culprit appears to be a missing comma in the language definition in
#lang-def.mkiv:
#
#\installlanguage
#  [\s!cs]
#  [ % ...
#   \c!rightquotation=\upperrightdoublesixquote,
#   \c!date={\v!day,\fourperemspace,\v!month,\space,\v!year}
#   \s!lefthyphenmin=2,
#   % ...
#]
#
#Add a comma at the end of the line defining the date format; this
appears
#to fix the problem.
#
#As far as I can tell, the definitions of Slovak (sk) and Turkmen (tk)
#appear to be suffering from the same problem.
#
#Cheers,
#~~ Ondra Hošek
# /usr/bin/xdg-open: řádek 402: htmlview: příkaz nenalezen
# /usr/bin/xdg-open: řádek 402: firefox: příkaz nenalezen
# /usr/bin/xdg-open: řádek 402: mozilla: příkaz nenalezen
# /usr/bin/xdg-open: řádek 402: netscape: příkaz nenalezen

#
___
# If your question is of interest to others as well, please add an entry to
the Wiki!
#
# maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
# webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
# archive  : http://foundry.supelec.fr/projects/contextrev/
# wiki : http://contextgarden.net
#
___


 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] authoring for web and print - suggestions

2013-05-11 Thread Ondřej Hošek
On Sat, May 11, 2013 at 1:08 PM, Thomas A. Schmitz
thomas.schm...@uni-bonn.de wrote:
 I think the most natural route would be to author your content in generic
 xml. This can be wonderfully processed in ConTeXt

The relevant manual section [1] seems to be the authoritative document
on this, though I don't know how up-to-date it is. The wiki [2]
contains additional, perhaps more practical, information.

Cheers,
~~ Ondra

[1] http://pragma-ade.com/show-man-43.htm
[2] http://wiki.contextgarden.net/XML

P.S. TU Wien represent.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simpleslides placeTitle undefined control sequence

2012-11-18 Thread Ondřej Hošek
On Son, 2012-11-18 at 13:08 +0100, Thomas A. Schmitz wrote:
 Sorry, my bad - new revision, can you try again?

Thanks, that fixed it!

Cheers,
~~ Ondra

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simpleslides placeTitle undefined control sequence

2012-11-17 Thread Ondřej Hošek
On Sat, Nov 17, 2012 at 9:21 AM, Thomas A. Schmitz
thomas.schm...@uni-bonn.de wrote:
 Or wait: did you download the modules during the last three days? I may have
 uploaded a wrong version; can you try again with the latest?

Just to be sure, I re-downloaded ConTeXt Standalone (it's now on
2012.11.16), unpacked the newest simpleslides from
modules.contextgarden.net in texmf-modules (overwriting the existing
files), and, compiling my minimal example, got the same error.

For what it's worth, I don't know how happy mkiv is with \doattributes
and \dostartattributes.

Cheers,
~~ Ondra
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] simpleslides placeTitle undefined control sequence

2012-11-16 Thread Ondřej Hošek
Hi,

I've encountered another simpleslides problem, which can probably be
chalked up to mkiv's moving target status.

Minimal example:

\usemodule[simpleslides]
\setupTitle[title=Hi]
\starttext
\placeTitle
\stoptext

Error with mkiv, ConTeXt 2012.11.14 11:37:

! Undefined control sequence.
{snip}
argument \??vars 
   :simpleslides:title:
\dousestylehashparameter #1#2-\ifcsname #1
   #2\endcsname \expandafter
\douses...
\dostartattributes ...estylehashparameter {#1}{#2}

\dousecolorhashparameter {...
\placeTitle ...pleslides:title:}\c!style \c!color 

\simpleslidestitlecomponen...
l.4 \placeTitle

Cheers,
~~ Ondra

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] simpleslides broken?

2012-11-02 Thread Ondřej Hošek
Hello,

I'm having troubles with the simpleslides module; for example, my
favorite style, Swoosh, turned from dark-blue-on-light-blue to
white-on-black and the swoosh position seems to have changed.

Minimal testcase:

\usemodule[simpleslides][style=Swoosh]
\starttext
\SlideTitle{Test Slide}
Some content.
\stoptext

Output:
http://ondrahosek.dyndns.org/simpleslides-brokenswoosh.pdf

What went wrong?

Cheers,
~~ Ondra

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simpleslides broken?

2012-11-02 Thread Ondřej Hošek
On Fre, 2012-11-02 at 15:57 -0400, Aditya Mahajan wrote:
 Our attempt to make the module more modular backfired due to change in 
 context internals.

Ah, okay. Thanks for the prompt response!

Cheers,
~~ Ondra


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] errors with simpleslides (style-specific)

2011-09-30 Thread Ondřej Hošek
On Fri, Sep 30, 2011 at 12:07, Thomas A. Schmitz
thomas.schm...@uni-bonn.de wrote:
 Aditya and I just rolled back these experimental changes (which shouldn't
 have been in the released version anyway) and uploaded a new version on the
 garden. Can you try this one? It should take care of the problems you
 mentioned.

The new version (t-simpleslides-2011.09.29.zip from
modules.contextgarden.net) indeed took care of the problems.

Thanks a lot!

~~ Ondra
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] first-setup.sh modules/goodies/extras

2011-09-28 Thread Ondřej Hošek
2011/9/28 Procházka Lukáš l...@pontex.cz:
 So thus my generalized question - what are other
 secret/undocumented/unfindable options, like --goodies=

They aren't all that undocumented. For my system, this lua script is
used, and there's a pretty nice help listing right at the top of the
code:
http://standalone.contextgarden.net/setup/linux-64/bin/mtx-update.lua

Note that the option --extras has been renamed to --modules. (This is
alluded to in a comment near the end of that Lua script.)

@Mojca and the Standalone squad: perhaps first-setup.sh (or its
successors) should pass on --help to the Lua script without doing
anything else?

Cheers,
~~ Ondra
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] errors with simpleslides (style-specific)

2011-09-27 Thread Ondřej Hošek
Greetings,

I'm using ConTeXt Standalone 2011.09.27 20:05.


\usemodule[simpleslides][style=Shaded]
\starttext
\SlideTitle{The first slide}
Hello, world.
\SlideTitle{The second slide}
Greetings, world.
\stoptext


! Undefined control sequence.

system   tex  error on line 5 in file slides.ctx: Undefined
control sequence ...

1 \usemodule[simpleslides][style=Shaded]
2 \starttext
3 \SlideTitle{The first slide}
4 Hello, world.
5   \SlideTitle{The second slide}
6 Greetings, world.
7 \stoptext
8

argument \@@MPG \simpleslidescounter

\executeifdefined #1-\ifcsname #1
  \endcsname \csname #1\expandafter \expanda...
\includeMPgraphic ...\executeifdefined {\@@MPG #1}
  ;
argument ...udeMPgraphic {\simpleslidescounter }
   ; fi StopPage ;
\processMPgraphic ...ntMPgraphicformat , \!!bs #1
  ;\!!es , \!!bs \currentMPi...
\handleuseMPgraphic ...hics \processMPgraphic {#3}
  \endgroup
...
l.5 \SlideTitle{The second slide}


Changing the style to Swoosh throws a different error message
(Undefined x coordinate has been replaced by 0., apparently by
Metapost). Presentations consisting of a single slide are processed
without errors; from my cursory glance at the code, the problem lies
either with the setups or with the slide counter.

Cheers,
~~ Ondra
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] errors with simpleslides (style-specific)

2011-09-27 Thread Ondřej Hošek
On Tue, Sep 27, 2011 at 23:21, Thomas A. Schmitz
thomas.schm...@uni-bonn.de wrote:
 How did you obtain the module?

sh first-setup.sh --context=beta --fonts=all --modules=all --goodies=all

Just did a clean installation using this command; the problem's still
there. I should probably mention that I only tried mkiv.

Cheers,
~~ Ondra
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] math: formula alignment: confusion about `left` and `right` alignment

2011-07-24 Thread Ondřej Hošek
On 24.07.2011, at 16:37, Paul Menzel paulepan...@users.sourceforge.net wrote:

 What is wrong with the way I am looking at this?

Nothing; the reasons are historical. When defining left and right, the 
author thought of raggedleft (the text is ragged on the left) instead of 
flushleft.

To avoid confusion, you may want to use flushleft and flushright explicitly.

Cheers,
~~ Ondra
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] mkiv and non-universal sans-serif kerning

2011-07-22 Thread Ondřej Hošek
Greetings,

long-time reader, first-time writer here. I've been using ConTeXt for
about a year and, until now, been able to solve all my problems using
the wiki or the mailing list, so a keep up the good work! is
certainly in order. ;-)

My problem concerns kerning in mkiv, which apparently doesn't work for
all sans-serif fonts. It does seem to work for TeX Gyre Heros and
Latin Modern Sans, but not, as an example of a font shipped with
ConTeXt, DejaVu.

Here's a short testcase:

\usetypescript[dejavu]
\setupbodyfont[dejavu,12pt,rm]

\starttext

Token (kerned)

T{\char200C}oken (unkerned)

{\ss Token (kerned)}

{\ss T{\char200C}oken (unkerned)}

\stoptext

(U+200C is the zero width non-joiner, rather useful as an invisible
breaker of kerns and ligatures.)

Expected behavior: first line To kerned, second line To not
kerned, third line To kerned, fourth line To not kerned.

Differences to expected behavior on my machine (ConTeXt minimals
2011.07.22 01:29): third line To not kerned either.

Thanks for the assistance in advance!

Cheers,
~~ Ondra Hošek
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] mkiv and non-universal sans-serif kerning

2011-07-22 Thread Ondřej Hošek
On Fri, Jul 22, 2011 at 21:28, Hans Hagen pra...@wxs.nl wrote:
 the current version has some heuristics for mode (some fonts need node mode)
 and script/language (some fonts don't have dflt defined)

Ah, thanks for the hint. Explicitly setting script=latn in the
default font feature solves the problem.

Cheers,
~~ Ondra
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___