Re: [NTG-context] space between label and number

2011-06-29 Thread dalyoung
Dear Hans,

I'll send a patched file after adding more preferable translation of the words 
into Korean  in lang-txt.lua.

Thank you.

Best regards,

Dalyoung

On 2011. 6. 30., at 오전 2:14, Hans Hagen wrote:

> On 29-6-2011 4:47, dalyoung wrote:
>> Dear Hans,
>> 
>> I add a space where it is need in the file "lang-txt.lua" and make a format 
>> using context --make --all.
>> Then the space is added between labels and the numbers.
>> If you need the modified file for update, please let me know.
> 
> if it's the korean convention to use spaces, indeed you can patch the file 
> and send it to me
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
> | www.pragma-pod.nl
> -

___
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] Using Luatex.

2011-06-29 Thread luigi scarso
On Wed, Jun 29, 2011 at 10:50 PM, John Culleton  wrote:
> Been away for a while. Currently using luatex for lightly formatted
> documents. But I want to use Context for my next
> job (lots of formatting). How do I incorporate luatex and the fonts found by
> luatex in my Context file?
See fonts in context
http://www.boekplan.nl/node/11

>
> And should I use MKII or MKIV?
mkii uses pdftex
mkiv uses luatex
Best solution is the minimals.
>
> My luatex books are basically pdftex files with a few statements to get at
> fonts not included with TeX, e.g.,
> \input luaotfload.sty
>
> \font\lll={CHOPS___.TTF} at 48bp
>
> \font\lk={CHOPS___.TTF} at 36bp
>
> \font\hl={CHOPS___.TTF} at 16bp
>
> \font\head={CHOPS___.TTF} at 26bp
>
> \font\lr pplr7t at 12bp
>
> \font\llr pplr7t at 14bp
>
> \font\rm pplr7t at 10bp
>
> \font\it pplri7t at 10bp
>
> \font\bf pplb7t at 10bp
Even if you can use a sort of plain luatex in mkiv, It's better ti use
the mkiv syntax.

-- 
luigi
___
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] Columns and figures in MKIV

2011-06-29 Thread Jason Earl

I am trying to upgrade an existing document from using texexec and
pdftex to context and luatex.  Unfortunately, the document relies pretty
heavily on columns (using \startcolumns[n=2,tolerant=verytolerant]) and
the idea that figures that are too wide to place in a column float to
the top of the next page.

Unfortunately, this does not seem to be the case with the current
minimals.  The following example works fine for texexec (even if I
comment out the \startpostponing \stoppostponing code).  The figure is
placed (centered) at the top of page 2.  With MKIV, however, the figure
stays in the first column and bleeds over into the second column (the
postponing code does change it to the next page, but it doesn't force it
out of the column).

--8<---cut here---start->8---
\enableregime[utf-8]

\starttext
\startcolumns
\chapter[chap:testing]{Testing}

\startcolumns[n=2, tolerant=verytolerant]
\input knuth

%\startpostponing
  \placefigure
[center][fig:foo]
{none}
{\externalfigure[foo][]
  [width=1.5\textwidth]}
%\stoppostponing

\input tufte

\input knuth

\input tufte

\input knuth

\input tufte

\stopcolumns
\stoptext--8<---cut here---end--->8---

I am using the Context minimal distribution (on Linux) and context
reports that the current version as:

current version: 2011.06.29 09:57

It is quite likely that I am simply doing this wrong, but I have read:

http://wiki.contextgarden.net/Columns

and it appears to support what I am trying to do.  I have experimented a
bit with columnsets, but they appear to be overkill for my use.  Then
again, I am probably doing it wrong.  Any advice would be appreciated.

Jason Earl
___
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] Using Luatex.

2011-06-29 Thread Wolfgang Schuster

Am 29.06.2011 um 22:50 schrieb John Culleton:

> Been away for a while. Currently using luatex for lightly formatted 
> documents. But I want to use Context for my next
> job (lots of formatting). How do I incorporate luatex and the fonts found by 
> luatex in my Context file? 
> And should I use MKII or MKIV?

John, the question you should ask yourself is if ConTeXt is the right tool for 
you.

What i learnt from you past mails is that you always use many macros from files 
which are written for plain TeX instead of ConTeXt’s own mechanism. When you 
really want to use ConTeXt then use ConTeXt’s commands to change the font, the 
layout and also to produce a index etc.

Wolfgang


___
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] Using Luatex.

2011-06-29 Thread John Culleton
Been away for a while. Currently using luatex for lightly 
formatted documents. But I want to use Context for my next
job (lots of formatting). How do I incorporate luatex and 
the fonts found by luatex in my Context file? 

And should I use MKII or MKIV?

My luatex books are basically pdftex files with a few 
statements to get at fonts not included with TeX, e.g.,

\input luaotfload.sty
\font\lll={CHOPS___.TTF} at 48bp
\font\lk={CHOPS___.TTF} at 36bp
\font\hl={CHOPS___.TTF} at 16bp
\font\head={CHOPS___.TTF} at 26bp
\font\lr pplr7t at 12bp 
\font\llr pplr7t at 14bp 
\font\rm pplr7t at 10bp 
\font\it pplri7t at 10bp
\font\bf pplb7t at 10bp


-- 
John Culleton
Able Indexers and Typesetters
Cover design, Indexing, Interior Layout
___
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] Scaling down the resolution of used pictures

2011-06-29 Thread Hans Hagen

On 29-6-2011 9:43, Peter Münster wrote:

On Wed, Jun 29 2011, Hans Hagen wrote:


That would be a possibility, but I was wondering if there was a way to let
ConTeXt do it. Saves a lot of time. Also: when changing from A4 to A5, you
have to do it all over again.


You can plugin in a converter. However, it only works for one to anothe format
so you need to patch a line in grph-inc.lua:


Could img.copy() help here perhaps?


that's unrelated,

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] Scaling down the resolution of used pictures

2011-06-29 Thread Peter Münster
On Wed, Jun 29 2011, Hans Hagen wrote:

>> That would be a possibility, but I was wondering if there was a way to let
>> ConTeXt do it. Saves a lot of time. Also: when changing from A4 to A5, you
>> have to do it all over again.
>
> You can plugin in a converter. However, it only works for one to anothe format
> so you need to patch a line in grph-inc.lua:

Could img.copy() help here perhaps?

-- 
   Peter
___
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] Scaling down the resolution of used pictures

2011-06-29 Thread Hans Hagen

On 29-6-2011 7:20, Aditya Mahajan wrote:

On Wed, 29 Jun 2011, Hans Hagen wrote:


Such a plugin looks like:

\startluacode
figures.converters.png = {
png = function(oldname,newname,resolution)
local command = string.format('gm convert -depth 1 "%s"
"%s"',oldname,newname)
logs.report(string.format("running command %s",command))
os.execute(command)
end
}
\stopluacode


Don't you need to use 'resolution' somewhere in the function?


Well, not 'need' but it would make sense of course to use that info, for 
instance to set the depth or resolution but I wasn't in the mood for 
studying the man pages (and I always forget the command line arguments), 
so I leave that 'as an exercise for the reader'.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] Scaling down the resolution of used pictures

2011-06-29 Thread Aditya Mahajan

On Wed, 29 Jun 2011, Hans Hagen wrote:


Such a plugin looks like:

\startluacode
figures.converters.png = {
   png = function(oldname,newname,resolution)
   local command = string.format('gm convert -depth 1 "%s" 
"%s"',oldname,newname)

   logs.report(string.format("running command %s",command))
   os.execute(command)
   end
}
\stopluacode


Don't you need to use 'resolution' somewhere in the function?


\externalfigure[mill.png][resolution=lowres,conversion=png]


Aditya
___
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] space between label and number

2011-06-29 Thread Hans Hagen

On 29-6-2011 4:47, dalyoung wrote:

Dear Hans,

I add a space where it is need in the file "lang-txt.lua" and make a format 
using context --make --all.
Then the space is added between labels and the numbers.
If you need the modified file for update, please let me know.


if it's the korean convention to use spaces, indeed you can patch the 
file and send it to me


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] Scaling down the resolution of used pictures

2011-06-29 Thread Hans Hagen

On 29-6-2011 5:01, Cecil Westerhof wrote:

2011/6/29 Martin Schröder


I do not use graphics a lot in my ConTeXt files. But some time ago I used
several pictures with a very high resolution. This made the resulting PDF
very big. I did not expect the PDF printed on a printer with a higher
resolution as 1200 DPI. Is there a way to have the included graphics not

be

bigger as necessary (without changing the original pictures)?


Use a program for image manipulation, e.g. ImageMagick.



That would be a possibility, but I was wondering if there was a way to let
ConTeXt do it. Saves a lot of time. Also: when changing from A4 to A5, you
have to do it all over again.


You can plugin in a converter. However, it only works for one to anothe 
format so you need to patch a line in grph-inc.lua:


line 416: local converter = (newformat ~= format or resolution) and 
converters[format]


(I'll figure out something better for this so it's a temp hack.)

Such a plugin looks like:

\startluacode
figures.converters.png = {
png = function(oldname,newname,resolution)
local command = string.format('gm convert -depth 1 "%s" 
"%s"',oldname,newname)

logs.report(string.format("running command %s",command))
os.execute(command)
end
}
\stopluacode

\externalfigure[mill.png][resolution=lowres,conversion=png]


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] Scaling down the resolution of used pictures

2011-06-29 Thread luigi scarso
On Wed, Jun 29, 2011 at 5:01 PM, Cecil Westerhof  wrote:
> 2011/6/29 Martin Schröder 
>>
>> > I do not use graphics a lot in my ConTeXt files. But some time ago I
>> > used
>> > several pictures with a very high resolution. This made the resulting
>> > PDF
>> > very big. I did not expect the PDF printed on a printer with a higher
>> > resolution as 1200 DPI. Is there a way to have the included graphics not
>> > be
>> > bigger as necessary (without changing the original pictures)?
>>
>> Use a program for image manipulation, e.g. ImageMagick.
>
> That would be a possibility, but I was wondering if there was a way to let
> ConTeXt do it.
still not without an external program, but I hope for Porquerolles.

-- 
luigi
___
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] Scaling down the resolution of used pictures

2011-06-29 Thread Henning Hraban Ramm

Am 2011-06-29 um 17:01 schrieb Cecil Westerhof:

That would be a possibility, but I was wondering if there was a way  
to let ConTeXt do it. Saves a lot of time.


There once was t-degrade module: http://modules.contextgarden.net/t-degrade
I guess the modern way would be using t-filter: 
http://modules.contextgarden.net/filter


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] Scaling down the resolution of used pictures

2011-06-29 Thread Cecil Westerhof
2011/6/29 Martin Schröder 

> > I do not use graphics a lot in my ConTeXt files. But some time ago I used
> > several pictures with a very high resolution. This made the resulting PDF
> > very big. I did not expect the PDF printed on a printer with a higher
> > resolution as 1200 DPI. Is there a way to have the included graphics not
> be
> > bigger as necessary (without changing the original pictures)?
>
> Use a program for image manipulation, e.g. ImageMagick.
>

That would be a possibility, but I was wondering if there was a way to let
ConTeXt do it. Saves a lot of time. Also: when changing from A4 to A5, you
have to do it all over again.

-- 
Cecil Westerhof
___
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] space between label and number

2011-06-29 Thread dalyoung
Dear Hans,

I add a space where it is need in the file "lang-txt.lua" and make a format 
using context --make --all.
Then the space is added between labels and the numbers.
If you need the modified file for update, please let me know.
Thank you.

Best regards,

Dalyoung


On 2011. 6. 28., at 오후 11:39, Hans Hagen wrote:

> On 28-6-2011 3:06, dalyoung wrote:
>> Hi,
>> 
>> By Hans's help, the labels of figures and of tables are appeared in Korean 
>> after setting \mainlagnuage[kr]. (\placefigure of \placetable )
>> Thanks!
>> 
>> However, there is no space between label and number like "그림1" or  "표3".
>> I tried to add a space like "그림 " in the file char-def and some other files, 
>> but it won't work.
>> When mainlanguage is english, the labels are "Figure 1" or "Table 3". There 
>> exists a space.
> 
> You can tweak lang-txt.lua (you need to remake the format afterards).
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
> | www.pragma-pod.nl
> -

___
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] Scaling down the resolution of used pictures

2011-06-29 Thread Martin Schröder
2011/6/29 Cecil Westerhof :
> I do not use graphics a lot in my ConTeXt files. But some time ago I used
> several pictures with a very high resolution. This made the resulting PDF
> very big. I did not expect the PDF printed on a printer with a higher
> resolution as 1200 DPI. Is there a way to have the included graphics not be
> bigger as necessary (without changing the original pictures)?

Use a program for image manipulation, e.g. ImageMagick.

Best
   Martin
___
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] Scaling down the resolution of used pictures

2011-06-29 Thread Cecil Westerhof
At the moment it is not very important, but my other question remembered me
about an old situation.

I do not use graphics a lot in my ConTeXt files. But some time ago I used
several pictures with a very high resolution. This made the resulting PDF
very big. I did not expect the PDF printed on a printer with a higher
resolution as 1200 DPI. Is there a way to have the included graphics not be
bigger as necessary (without changing the original pictures)?

Again, at the moment it is not urgent. But when I come in the same situation
again, it would be nice if the resulting PDF was not five times as big as
necessary. And maybe the answer is useful for someone else also. ;-}

-- 
Cecil Westerhof
___
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] Working with graphics

2011-06-29 Thread Cecil Westerhof
I am using graphics in my PDF document. First I used something like this:
\midaligned{\externalfigure[graphics/priceList][width=1\textwidth]}

Initially this worked good enough. But now I have both little pictures and
pictures that are large in the y-direction. At this moment I change the
width parameter manually. But I would like something like the following:

   - A picture is not stretched more as a certain value. (Say two.)
   - A picture is never to wide.
   - A picture is never to high to fill more as 75% of a page.

Is this something that is possible?

Also: is it a good idea to use \useexternalfigure, or is this only necessary
when a picture is used more as once.

-- 
Cecil Westerhof
___
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] CMYK colors not as expected

2011-06-29 Thread Taco Hoekwater


On 06/29/11 15:59, Taco Hoekwater wrote:
> 
> The wiki page has equations to convert YCbCr to RGB.
> I have no idea what the 'K' component in your CLUT
> is supposed to be.

>From some patent(?) doc, it seems this is a multiplier
for the Cb and Cr values...
___
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] CMYK colors not as expected

2011-06-29 Thread Taco Hoekwater


On 06/29/11 08:08, luigi scarso wrote:
> 
> 
> have you already seen 
>  http://en.wikipedia.org/wiki/YCbCr

As luigi says, the Y/Cb/Cr (with or without T) is not
CMYK, it is a different kind of color space altogether,
and is conceptually much closer to RGB than to CMYK.

The wiki page has equations to convert YCbCr to RGB.
I have no idea what the 'K' component in your CLUT
is supposed to be.

Best wishes,
Taco

___
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] Netiquette (was: Repeated Hyphens in URL Cause Fatal Error)

2011-06-29 Thread Paul Menzel
Dear Raymond,


please do not blindly reply to some message when you want to create a
new message. Despite editing the subject line the mail client sets some
fields in the message header so that the message is displayed as a reply
never the less and threading using those fields is messed up.

Your method seems to result from using Web clients where it is not easy
to just click on an address to compose a new one and to save oneself
typing the address into the field. Since you are using Apple Mail you
can just click an the ConTeXt email address in any message to compose a
new message.

Further tips on what to consider when dealing with lists are written
down by openSUSE [1].


Thanks,

Paul


[1] http://en.opensuse.org/openSUSE:Mailing_list_netiquette


signature.asc
Description: This is a digitally signed message part
___
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] modules in minimals (important)

2011-06-29 Thread Mojca Miklavec
Hello,

Hans has changed the command line parameter for modules (--modules=vim
should work now). The problem is that he now stores the chosen modules
to a variable "modules" as opposed to "extras". So if you want to keep
your modules, please edit status-of-update.lua and replace ["extras"]
with ["modules"]. Or simply install the modules again.

There is also a switch --fonts= which installs some additional fonts from
http://minimals.contextgarden.net/current/fonts/extra/

Mojca
___
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] CMYK colors not as expected

2011-06-29 Thread Hans Hagen

On 28-6-2011 2:06, Hans van der Meer wrote:

I would be pleased to get some advice from "color-knowledgeable people" on the 
following matter.

In TV-broadcasts there are usually two kinds of subtitles present: Teletext as 
characters and DVB as pixels. These can be extracted and rendered with 
Metapost. I have done this, but I am not very satisfied with the colors 
produced. On the television screen they look bright, when rendered in Metapost 
they are dull and muddy. The text is barely readable.

As I am fairly sure I did extract the correct bits from the CLUT contained in 
the stream, I wonder if I am doing something not right at the Metapost side. In 
the datastream the values given are the most significant 6, 4, 4 and 2 bits of 
respectively Y, Cr, Cb, T. These are scaled to the values given to Metapost by 
dividing them by 255.

In the zip one finds the program (ConTeXt MKIV) used for typesetting, an 
example pixel map with clut, and the output. I would be obliged to get some 
comments.


As you're doing a lot of calculations, you can consider using bitmaps

\starttext

\startMPpage
draw
bitmapimage(2,2,"334455 667788 99aabb ccddee")
scaled 3cm
rotated 15 ;
draw
bitmapimage(2,2,"33 55 77 99")
scaled 2cm
rotated 30 ;
draw
bitmapimage(2,2,"ff00 ff00ff00 00ff ")
scaled 1cm
rotated 45 ;
\stopMPpage

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___