Re: [NTG-context] \typefile not including file and returning success

2023-02-21 Thread Marco Patzer via ntg-context
On Wed, 21 Dec 2022 13:17:15 +0100
Hans Hagen via ntg-context  wrote:

> The next upload will have:
> 
> \adddefaultsuffix[foo,{},crap]
> \adddefaultsuffix[{}]
> 
> \typefile{./crapcrap}
> \typefile{crapcrap}
> 
> which someone has to document on the wiki

Apologies for taking so long. But I just now tested your fix and
wanted to remove the absolute paths from my document and found that
either your fix is not working or I'm doing something wrong
(probably the latter). Example:

# create file “bar”
echo Bar > bar

%% \adddefaultsuffix[foo,{},crap,bar]
\adddefaultsuffix[{}]

\starttext
  Foo
  \typefile{bar}
\stoptext

This does *not* include the file “bar”. As far as I understand:

%% searches for files with no extention
\adddefaultsuffix[{}]

%% searches for files with extension aa, bb, foobar,
%% e.g. file.aa, blurp.bb or example.foobar
\adddefaultsuffix[aa, bb, foobar]

But that's not how it behaves. Can you elaborate?


Marco

LMTX 2023.02.14 17:44
PS: When I get it to work, I'll document it on the wiki.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] \typefile not including file and returning success

2022-12-21 Thread Marco Patzer via ntg-context
On Wed, 21 Dec 2022 13:17:15 +0100
Hans Hagen via ntg-context  wrote:

> > But context returning success when it clearly doesn't include the
> > file is unfortunate. The missing file might go completely unnoticed.
> > I'd expect an error there.  
> The next upload will have:
> 
> \adddefaultsuffix[foo,{},crap]
> \adddefaultsuffix[{}]
> 
> \typefile{./crapcrap}
> \typefile{crapcrap}

Thanks Hans for looking into that. I'll play with it after the next
update.

> which someone has to document on the wiki

Wilco

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] \typefile not including file and returning success

2022-12-21 Thread Hans Hagen via ntg-context

On 12/17/2022 6:27 PM, Marco via ntg-context wrote:

On Sat, 17 Dec 2022 17:43:48 +0100
Otared Kavian  wrote:

Thanks for your quick reply.


It seems that one can fool ConTeXt into typing a file without suffix
by giving the path to that file…


That works, I can confirm.


\typefile{/Users/kavian/Context/essais/mkiv/bar-bis}


Hard-coded absolute paths in TeX files are something I avoid, but I
assume that's just for demonstration here.


\typefile{./bar-bis}


That works as well. It's a workaround at least.

But context returning success when it clearly doesn't include the
file is unfortunate. The missing file might go completely unnoticed.
I'd expect an error there.

The next upload will have:

\adddefaultsuffix[foo,{},crap]
\adddefaultsuffix[{}]

\typefile{./crapcrap}
\typefile{crapcrap}

which someone has to document on the wiki

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco Patzer via ntg-context
On Sat, 17 Dec 2022 10:41:11 -0800
skyhorse--- via ntg-context  wrote:

> The context wiki says:
>   "When no file extension is specified the extension .tex is assumed."

It's not on the page for typefile:

  https://wiki.contextgarden.net/Command/typefile

And that surely makes sense for TeX (input) files, but not \type'ed
files, which are usually not TeX files.

\startnitpicking

The message

  verbatims   > file 'bar' does not exist

is wrong, the file “bar” exists. Displaying

  verbatims   > file 'bar.txt' does not exist

\stopnitpicking

would be correct. But as I said, assuming \type'ed files are .tex
files does not make sense, IMO.

> By chance, do you have a file named "bar.tex" that would prevent this
> from being an error?

No. It just doesn't produce an error here (or non-success exit code
for that matter).

using LMTX:  2022.12.15 18:12

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread skyhorse--- via ntg-context

The context wiki says:
  "When no file extension is specified the extension .tex is assumed."

Yes an error message should be displayed.
By chance, do you have a file named "bar.tex" that would prevent this from 
being an error?

skyhorse


-

Otared Kavian via ntg-context  wrote:

> Hi Marco,
> 
> If I create a file named « bar.txt » then
> 
> \starttext
> Nothing to say\dots
> 
> \typefile{bar.txt}
> 
> \stoptext
> 
> gives the correct result. However ConTeXt seems to dislike \typefile{bar} 
> when the filename has no suffix.
> 
> Best regards : Otared
> 
> > On 17 Dec 2022, at 16:06, Marco Patzer via ntg-context  
> > wrote:
> > 
> > Hi!
> > 
> > In the following example the file “bar” is not included:
> > 
> > # create file “bar”
> > echo Bar > bar
> > 
> > # t.tex
> > \starttext
> >  Foo
> >  \typefile{bar}
> > \stoptext
> > 
> > Then run
> > 
> >  context --errors='*' t.tex
> > 
> > The text “bar” is not included in the PDF, only Foo is. The log file
> > shows:
> > 
> >  verbatims   > file 'bar' does not exist
> > 
> > However, the file “bar” clearly does exist. Furthermore, context
> > exits with no error in the log file and a successful exit value:
> > 
> >  context --errors='*' t.tex > /dev/null; echo $?
> >  0
> > 
> > Is this working as intended?
> > 
> > Marco
> > ___
> > If your question is of interest to others as well, please add an entry to 
> > the Wiki!
> > 
> > maillist : ntg-context@ntg.nl / 
> > https://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : https://contextgarden.net
> > ___
> 
> Otared Kavian
> e-mail: ota...@gmail.com
> Phone: +33 6 88 26 70 95
> 
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco via ntg-context
On Sat, 17 Dec 2022 17:43:48 +0100
Otared Kavian  wrote:

Thanks for your quick reply.

> It seems that one can fool ConTeXt into typing a file without suffix
> by giving the path to that file…

That works, I can confirm.

> \typefile{/Users/kavian/Context/essais/mkiv/bar-bis}

Hard-coded absolute paths in TeX files are something I avoid, but I
assume that's just for demonstration here.

> \typefile{./bar-bis}

That works as well. It's a workaround at least.

But context returning success when it clearly doesn't include the
file is unfortunate. The missing file might go completely unnoticed.
I'd expect an error there.

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco Patzer via ntg-context
On Sat, 17 Dec 2022 16:25:01 +0100
Otared Kavian via ntg-context  wrote:

> If I create a file named « bar.txt » then
> 
> \starttext
> Nothing to say\dots
> 
> \typefile{bar.txt}
> 
> \stoptext
> 
> gives the correct result.

I can confirm that.

> However ConTeXt seems to dislike \typefile{bar} when the filename
> has no suffix.

Is there a way around it? Traditionally there are plenty of files
without suffix (e.g. README, Makefile, configure, etc.)

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Otared Kavian via ntg-context
Hi Marco,

If I create a file named « bar.txt » then

\starttext
Nothing to say\dots

\typefile{bar.txt}

\stoptext

gives the correct result. However ConTeXt seems to dislike \typefile{bar} when 
the filename has no suffix.

Best regards : Otared

> On 17 Dec 2022, at 16:06, Marco Patzer via ntg-context  
> wrote:
> 
> Hi!
> 
> In the following example the file “bar” is not included:
> 
> # create file “bar”
> echo Bar > bar
> 
> # t.tex
> \starttext
>  Foo
>  \typefile{bar}
> \stoptext
> 
> Then run
> 
>  context --errors='*' t.tex
> 
> The text “bar” is not included in the PDF, only Foo is. The log file
> shows:
> 
>  verbatims   > file 'bar' does not exist
> 
> However, the file “bar” clearly does exist. Furthermore, context
> exits with no error in the log file and a successful exit value:
> 
>  context --errors='*' t.tex > /dev/null; echo $?
>  0
> 
> Is this working as intended?
> 
> Marco
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco Patzer via ntg-context
Hi!

In the following example the file “bar” is not included:

# create file “bar”
echo Bar > bar

# t.tex
\starttext
  Foo
  \typefile{bar}
\stoptext

Then run

  context --errors='*' t.tex

The text “bar” is not included in the PDF, only Foo is. The log file
shows:

  verbatims   > file 'bar' does not exist

However, the file “bar” clearly does exist. Furthermore, context
exits with no error in the log file and a successful exit value:

  context --errors='*' t.tex > /dev/null; echo $?
  0

Is this working as intended?

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] UTF-8 characters being dropped from typefile

2020-11-11 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 11.11.2020 um 16:37:

On 11/11/20 10:08 AM, n...@scorecrow.com wrote:

Sorry for this really, really basic question but...

I have the following 3 line source file:

\starttext
\typefile{test-listing.txt}
\stoptext


Hi Bruce,

a MWE that shows your problem would be:

   \setupbodyfont[cursor]
   \starttext
   \startTEXpage[offset=1em]
   a ▸
   \stopTEXpage
   \stoptext


Which explains why the character is being dropped. What I don't
understand is why is LMMono12-Regular being used? I thought I had
read somewhere that TeX Gyre fonts were now the default (I'm on
ConTeXt  ver: 2020.11.05 23:01 LMTX) ?


Latin Modern are the default fonts in ConTeXt.

BTW, TeX Gyre Cursor doesn’t seem to contain the character you mention.



DejaVu has the symbol and can be a option either as main font or just as 
fallback (but this can break the alignment) for another font.


\setupbodyfont [dejavu]

\starttext

\rm Triangle: ▸

\ss Triangle: ▸

\tt Triangle: ▸

\stoptext

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] UTF-8 characters being dropped from typefile

2020-11-11 Thread Pablo Rodriguez
On 11/11/20 10:08 AM, n...@scorecrow.com wrote:
> Sorry for this really, really basic question but...
>
> I have the following 3 line source file:
>
> \starttext
> \typefile{test-listing.txt}
> \stoptext

Hi Bruce,

a MWE that shows your problem would be:

  \setupbodyfont[cursor]
  \starttext
  \startTEXpage[offset=1em]
  a ▸
  \stopTEXpage
  \stoptext

> Which explains why the character is being dropped. What I don't
> understand is why is LMMono12-Regular being used? I thought I had
> read somewhere that TeX Gyre fonts were now the default (I'm on
> ConTeXt  ver: 2020.11.05 23:01 LMTX) ?

Latin Modern are the default fonts in ConTeXt.

BTW, TeX Gyre Cursor doesn’t seem to contain the character you mention.

> If not, is there an installation level config  setting to make them
> the default or do I need to work out the relevant \start ...
> \stoptypescript commands?

I think the first line in the sample above shows a simple approach.

I hope it helps,

Pablo
--
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] UTF-8 characters being dropped from typefile

2020-11-11 Thread ntg
Sorry for this really, really basic question but...

I have the following 3 line source file:

\starttext
\typefile{test-listing.txt}
\stoptext

The file "test-listing.txt" is UTF-8 and includes the character U+25B8 (black 
right-pointing small triangle) which is being dropped from the output.

The console shows:

fonts   > checking > char ▸ (U+025B8) in font 'LMMono12-Regular' with 
id 8: missing

Which explains why the character is being dropped. What I don't understand is 
why is LMMono12-Regular being used? I thought I had read somewhere that TeX 
Gyre fonts were now the default (I'm on ConTeXt  ver: 2020.11.05 23:01 LMTX) ?

If not, is there an installation level config  setting to make them the default 
or do I need to work out the relevant \start ... \stoptypescript commands?

Thanks in advance.
--
Bruce Horrocks
Hampshire, UK

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] MP background for text typeset by \typefile

2020-11-05 Thread context

Hello,

is there a way to draw custom background (via MP) to a text typed by 
\typefile, which is so long so it spreads over more pages?


- I'm asking because I know how to typeset some text via \typefile with:

1. this:

\definetyping[Test]
  [before={\startbackground[background=color,backgroundcolor=blue]
  },
   after={\stopbackground
 },
  ]

- which creates a rectangular backround to the text, and the text may 
spread over pages;


2. or this:

\defineoverlay[AnOverlayDefinition][]

\definetyping[Test]
  [before={\startframedtext[background=AnOverlayDefinition,
   ]%
  },
   after={\stopframedtext
 },
  ]

- which allows to define a custom background via overlay/MP, but which 
encloses the text to be typeset into a framed, and thus doesn't spread 
over pages.


My intention is to "decore" the text typed by \typefile with a "fuzzy" 
background, which uses overlay/MP.
But I am in the sitaution where I am able to figure out MP code just 
when the text is to be enclosed into \framed.


Is it possible to combine both cases? How?

Best regards,

Lukas
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2018-02-19 Thread Jeong Dal
Dear Wolfgang,

I found that the previous run “mtxrun - script font…” cheked the fonts for 
TeXLive 2017.
So I run “setuptex” for ConTeXt standalone and run “mtxrun” again.
After that I compiled the same file.
The result is that \tt works as Nanum Gothic Coding but \ss still not working.
“Nanum Gothic” file was not found yet.

I am using Mac OSX 10.13 and latest beta.

Thank you.

Best regards,

Dalyoung

> 2017. 12. 7. 오전 2:17, ntg-context-requ...@ntg.nl 
>  작성:
> 
> You need fonts [1-3]  which contains hangul characters (don’t forget to 
> set a math font because it is used for the symbols in enumerations) and 
> you have to enable linebreaking for korean with the \setscript command.
> 
>  begin example
> \definefallbackfamily [mainface] [rm] [Nanum Myeongjo] [preset=range:korean]
> \definefontfamily [mainface] [rm] [DejaVu Serif]
> 
> \definefallbackfamily [mainface] [ss] [Nanum Gothic] [preset=range:korean]
> \definefontfamily [mainface] [ss] [DejaVu Sans]
> 
> \definefallbackfamily [mainface] [tt] [Nanum Gothic Coding] 
> [features=none,preset=range:korean]
> \definefontfamily [mainface] [tt] [DejaVu Sans Mono] [features=none]
> 
> \definefontfamily [mainface] [mm] [DejaVu Math]
> 
> \setupbodyfont[mainface]
> 
> \setscript[hangul]
> 
> \starttext
> 
> 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
> 모아 엮어졌습니다.
> 
> {\ss 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
> 모아 엮어졌습니다.}
> 
> \starttyping
> 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
> 모아 엮어졌습니다.
> \stoptyping
> 
> \stoptext
>  end example

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2018-02-19 Thread Pablo Rodriguez
On 02/19/2018 10:15 PM, Jeong Dal wrote:
> Dear Wolfgang,
> 
> Two months ago, you suggested an example for typefile with korean. I
> just read it at that time and I try your sample today. 
> Although there are Nanum Gothic and Nanum Gothic Coding in my system
> font, no output of korean for \ss and \tt.
> I run ‘mtxrun —script font —reload —force
> [...]
> Why ConTeXt couldn’t locate the font files?
> 
> I am using Mac OSX 10.13 and latest beta.

Hi Jeong,

as far as I can remember, I experienced a similar problem with these
fonts. I needed the first option to get the fonts embedded in the PDF
document.

Go to tex/texmf-cache and remove the directory luatex-cache.

Run "mtxrun --generate" and compile the sample again.

If that doesn’t work, try to copy those fonts to tex/texmf-fonts (and
reload fonts with mxtrun)..

I hope it helps,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2018-02-19 Thread Jeong Dal
Dear Wolfgang,

Two months ago, you suggested an example for typefile with korean. I just read 
it at that time and I try your sample today. 
Although there are Nanum Gothic and Nanum Gothic Coding in my system font, no 
output of korean for \ss and \tt.
I run ‘mtxrun —script font —reload —force
in the terminal, but the output is same. In the log file, it reads that 

selectfont  > The requested fallback font 'Nanum Gothic' for typeface 
'mainface' style 'ss' was ignored because no files where found.
selectfont  > The requested fallback font ‘Nanum Gothic Coding' for 
typeface 'mainface' style 'tt' was ignored because no files where found.


Why ConTeXt couldn’t locate the font files?

I am using Mac OSX 10.13 and latest beta.

Thank you.

Best regards,

Dalyoung

> 2017. 12. 7. 오전 2:17, ntg-context-requ...@ntg.nl 작성:
> 
> You need fonts [1-3]  which contains hangul characters (don’t forget to 
> set a math font because it is used for the symbols in enumerations) and 
> you have to enable linebreaking for korean with the \setscript command.
> 
>  begin example
> \definefallbackfamily [mainface] [rm] [Nanum Myeongjo] [preset=range:korean]
> \definefontfamily [mainface] [rm] [DejaVu Serif]
> 
> \definefallbackfamily [mainface] [ss] [Nanum Gothic] [preset=range:korean]
> \definefontfamily [mainface] [ss] [DejaVu Sans]
> 
> \definefallbackfamily [mainface] [tt] [Nanum Gothic Coding] 
> [features=none,preset=range:korean]
> \definefontfamily [mainface] [tt] [DejaVu Sans Mono] [features=none]
> 
> \definefontfamily [mainface] [mm] [DejaVu Math]
> 
> \setupbodyfont[mainface]
> 
> \setscript[hangul]
> 
> \starttext
> 
> 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
> 모아 엮어졌습니다.
> 
> {\ss 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
> 모아 엮어졌습니다.}
> 
> \starttyping
> 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
> 모아 엮어졌습니다.
> \stoptyping
> 
> \stoptext
>  end example

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Jeong Dal
Dear Wim,

There were a lot of discussions during the night.

For the use CJK, I think that Wolfgang’s example is good enough(Nanum fonts are 
free).
Here is another simple way.
In 2012, Hans included a typescript file for Un Fonts, you can use it just do 
“\setupbodyfont”.
The good thing is you can handle Korean, Chinese, and Japanese together.
I heard that Unfonts are included in TeXLive. If not, you can downloaded it.

I hope that you have no problem to compile the follwoing code.

Best regards,

Dalyoung


%
\setupbodyfont[unfonts]

\starttext
%\typefile[C][]{cjk.asy}
한자와 일본어는 어떤가요?

학이시습지불역열호(學而時習之不亦說乎)
가령 蓄音機(축음기) → レコード(레코드)

\stoptext


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Alan Braslau
On Wed, 06 Dec 2017 23:32:45 +0100
Wolfgang Schuster  wrote:

> You’re using the command \cornflowerbluein in your setups (probably
> for the header or footer)
> to change the color of the page number but ConTeXt doesn’t create 
> individual commands
> anymore for colors which are loaded from the color files.
> 
> 
> You can fix fix when you change the color setting to
> 
>  \color[cornflowerbluein]{\userpagenumber}
> 
> or even better you set the color with
> 
>  \setupheader[color=cornflowerbluein]

This change in behavior was (partially) motivated by an amusing bug:
\tan

Alan
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wolfgang Schuster



Wim Neimeijer 
6. Dezember 2017 um 22:30
This is the output ConText gives me, when I use a newer version of 
ConText,


 output of run ===
mtx-context | run 1: luatex 
--fmt="/opt/context_new/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" 
--jobname="goasy" 
--lua="/opt/context_new/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" 
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./goasy" 
--c:input="./goasy" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"

This is LuaTeX, Version 1.06.2 (TeX Live 2018/dev)
 system commands enabled.
open source > level 1, order 1, name 
'/opt/context_new/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'

system >
system > ConTeXt  ver: 2017.11.19 20:15 MKIV beta  fmt: 2017.11.21 
 int: english/english

system >
system > 'cont-new.mkiv' loaded
open source > level 2, order 2, name 
'/opt/context_new/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
close source > level 2, order 2, name 
'/opt/context_new/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'

system > files > jobname 'goasy', input './goasy', result 'goasy'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
open source > level 2, order 3, name 
'/home/icubic/go/src/bitbucket.org/wneimeijer/goasy/docs/manual/goasy.tex 
'

fonts > preloading latin modern fonts (second stage)
fonts > 'fallback modern-designsize rm 12pt' is loaded
open source > level 3, order 4, name 
'/opt/context_new/tex/texmf-context/tex/context/fonts/mkiv/type-imp-libertine.mkiv'
close source > level 3, order 4, name 
'/opt/context_new/tex/texmf-context/tex/context/fonts/mkiv/type-imp-libertine.mkiv'

fonts > typescripts > unknown library 'default'
fonts > defining > font with asked name 'linlibertiner' is not found 
using lookup 'file'

fonts > defining > unknown font 'linlibertiner', loading aborted
fonts > defining > unable to define 'linlibertiner' as 
'libertine-12pt-rm-tf-0--0'

open source > level 3, order 5, name '../setup_global.tex'
modules > 'units' is loaded
open source > level 4, order 6, name 
'/opt/context_new/tex/texmf-context/tex/context/modules/mkiv/m-units.mkiv'
resolvers > lua > loading file 
'/opt/context_new/tex/texmf-context/tex/context/modules/mkiv/x-mathml.lua' 
succeeded
units > The units module is obsolete because functionality is built 
into the core.
close source > level 4, order 6, name 
'/opt/context_new/tex/texmf-context/tex/context/modules/mkiv/m-units.mkiv'

open source > level 4, order 7, name '../setup_colors.tex'
colors > defining > unknown library 'hex'
colors > 'rgb' color space is supported
colors > 'cmyk' color space is supported
open source > level 5, order 8, name 
'/opt/context_new/tex/texmf-context/tex/context/base/mkiv/colo-imp-xwi.mkiv'
close source > level 5, order 8, name 
'/opt/context_new/tex/texmf-context/tex/context/base/mkiv/colo-imp-xwi.mkiv'

colors > system 'xwi' is loaded
close source > level 4, order 8, name '../setup_colors.tex'
open source > level 4, order 9, name '../setup_language.tex'
close source > level 4, order 9, name '../setup_language.tex'
open source > level 4, order 10, name '../setup_title.tex'
close source > level 4, order 10, name '../setup_title.tex'
open source > level 4, order 11, name '../setup_i18n.tex'
close source > level 4, order 11, name '../setup_i18n.tex'
open source > level 4, order 12, name '../setup_parts.tex'
close source > level 4, order 12, name '../setup_parts.tex'
open source > level 4, order 13, name '../setup_chapter.tex'
close source > level 4, order 13, name '../setup_chapter.tex'
open source > level 4, order 14, name '../setup_section.tex'
close source > level 4, order 14, name '../setup_section.tex'
open source > level 4, order 15, name '../setup_bookmarks.tex'
close source > level 4, order 15, name '../setup_bookmarks.tex'
open source > level 4, order 16, name '../setup_toc_foc.tex'
close source > level 4, order 16, name '../setup_toc_foc.tex'
open source > level 4, order 17, name '../setup_definitions.tex'
close source > level 4, order 17, name '../setup_definitions.tex'
open source > level 4, order 18, name '../setup_hyphen_rules.tex'
close source > level 4, order 18, name '../setup_hyphen_rules.tex'
open source > level 4, order 19, name '../setup_matrix.tex'
close source > level 4, order 19, name '../setup_matrix.tex'
open source > level 4, order 20, name '../setup_code.tex'
close source > level 4, order 20, name '../setup_code.tex'
close source > level 3, order 20, name '../setup_global.tex'
open source > level 3, order 21, name '../setup_frontmatter.tex'
structures > begin of sectionblock 'frontpart'
open source > level 4, order 22, name 'title.tex'
metapost > initializing instance 'metafun' using format 'metafun'
metapost > loading 'metafun' as 

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wim Neimeijer
 name '../setup_code.tex'
close source> level 3, order 20, name '../setup_global.tex'
open source > level 3, order 21, name '../setup_frontmatter.tex'
structures  > begin of sectionblock 'frontpart'
open source > level 4, order 22, name 'title.tex'
metapost> initializing instance 'metafun' using format 'metafun'
metapost> loading 'metafun' as
'/opt/context_new/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
using method 'default'
metapost> initializing number mode 'scaled'
backend > xmp > using file
'/opt/context_new/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1, subpage 1
open source > level 5, order 23, name '../setup_copyright.tex'
close source> level 5, order 23, name '../setup_copyright.tex'
pages   > flushing realpage 2, userpage 1
close source> level 4, order 23, name 'title.tex'
structure   > sectioning > title @ level 2 : 0.0 -> \headtext {content}
fonts   > defining > font with asked name 'linlibertinerb' is not
found using lookup 'file'
fonts   > defining > unknown font 'linlibertinerb', loading aborted
fonts   > defining > unable to define 'linlibertinerb' as
'libertine-12pt-rm-bf-0-c-0'

tex error   > tex error on line 418 in file ../setup_frontmatter.tex: !
Undefined control sequence


\14>:texta ...idth=\textwidth ]{ {\cornflowerblue
  \userpagenumber } \hfill }
\17>>1 #1,->\syst_setups {#1}
 \syst_helpers_do_process_comma_item
\syst_helpers_do_process_comma_list ...rgument #1,
  ]\relax \global \advance
\...
 \ignorecrlf \setups {texta}
   {}{}{}
\secondoftwoarguments #1#2->#2

\page_layouts_process_element_single_indeed ...#4}
  \fi \endgroup
...
l.39 \completecontent[partnumber=no]

?

=== end output ===

On Wed, Dec 6, 2017 at 10:01 PM, Wim Neimeijer <wneimei...@gmail.com> wrote:

> Thanks for all your input and help, but as said before I don't have the
> time to upgrade and than to discover existing things don't work
> resulting in a complete new thread to debug these existing things and/or
> fix with a new beta installation.
>
> But that is perhaps not my biggest concern with all these beta releases,
> ConText is great and for the most part easy to use, I am more worried that
> my existing ConText environment (setup) becomes broken, and/or resulting
> in complete different PDF output.
> I have no way of knowing, apart from visually inspecting a lot of pages of
> PDF.
>
> I thought including some code examples via \typefile (with a bit of text
> in either Cyrillic, Chinese, Japanese or Korean)
> could be achieved with a simple local font switch, or setting a regime or
> via \setuptyping but not on a global level
> with \definefontsynonym, definefontfallback etc.
>
> My fix is to change the examples a bit and continue.
> Again thanks for the help
>
>
>
>
>
> On Wed, Dec 6, 2017 at 9:25 PM, Hans Hagen <pra...@wxs.nl> wrote:
>
>> On 12/6/2017 7:24 PM, Wim Neimeijer wrote:
>>
>>> I disagree, a version from 2016 is not very old. I have a lot of
>>> documents using a ConText setup which works with this version
>>> of luatex and context.
>>>
>>> Last week I tried to use the latest beta with my documents and the beta
>>> was unable to run my documents.
>>> As it seems it is not backward compatible and I have no time at the
>>> moment to debug or test.
>>>
>> hm, normally updates are backwar dcompatible (apart from very beta
>> features) ... what fails?
>>
>>
>>
>> -
>>   Hans Hagen | PRAGMA ADE
>>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wim Neimeijer
Thanks for all your input and help, but as said before I don't have the
time to upgrade and than to discover existing things don't work
resulting in a complete new thread to debug these existing things and/or
fix with a new beta installation.

But that is perhaps not my biggest concern with all these beta releases,
ConText is great and for the most part easy to use, I am more worried that
my existing ConText environment (setup) becomes broken, and/or resulting in
complete different PDF output.
I have no way of knowing, apart from visually inspecting a lot of pages of
PDF.

I thought including some code examples via \typefile (with a bit of text in
either Cyrillic, Chinese, Japanese or Korean)
could be achieved with a simple local font switch, or setting a regime or
via \setuptyping but not on a global level
with \definefontsynonym, definefontfallback etc.

My fix is to change the examples a bit and continue.
Again thanks for the help





On Wed, Dec 6, 2017 at 9:25 PM, Hans Hagen <pra...@wxs.nl> wrote:

> On 12/6/2017 7:24 PM, Wim Neimeijer wrote:
>
>> I disagree, a version from 2016 is not very old. I have a lot of
>> documents using a ConText setup which works with this version
>> of luatex and context.
>>
>> Last week I tried to use the latest beta with my documents and the beta
>> was unable to run my documents.
>> As it seems it is not backward compatible and I have no time at the
>> moment to debug or test.
>>
> hm, normally updates are backwar dcompatible (apart from very beta
> features) ... what fails?
>
>
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Hans Hagen

On 12/6/2017 7:24 PM, Wim Neimeijer wrote:
I disagree, a version from 2016 is not very old. I have a lot of 
documents using a ConText setup which works with this version

of luatex and context.

Last week I tried to use the latest beta with my documents and the beta 
was unable to run my documents.
As it seems it is not backward compatible and I have no time at the 
moment to debug or test.
hm, normally updates are backwar dcompatible (apart from very beta 
features) ... what fails?



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Rik Kabel

On 2017-12-06 13:24, Wim Neimeijer wrote:
I disagree, a version from 2016 is not very old. I have a lot of 
documents using a ConText setup which works with this version

of luatex and context.

Last week I tried to use the latest beta with my documents and the 
beta was unable to run my documents.
As it seems it is not backward compatible and I have no time at the 
moment to debug or test.


So no, I cannot update at the moment.
It is not necessary to update. You can have multiple separate ConTeXt 
installations on a single system.


--
Rik
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Pablo Rodriguez
On 12/06/2017 07:24 PM, Wim Neimeijer wrote:
> I disagree, a version from 2016 is not very old. I have a lot of
> documents using a ConText setup which works with this version
> of luatex and context.
> 
> Last week I tried to use the latest beta with my documents and the beta
> was unable to run my documents. 
> As it seems it is not backward compatible and I have no time at the
> moment to debug or test.
> 
> So no, I cannot update at the moment.

Sorry, but I’m afraid that ConTeXt has beta releases almost every week
(when not every day).

Just in case it helps, I had to remove the luatex-cache directory and
run "mtxrun --generate", before I could use the new fonts (cache
reloading doesn’t work for me [even forcing it]).

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wim Neimeijer
I disagree, a version from 2016 is not very old. I have a lot of documents
using a ConText setup which works with this version
of luatex and context.

Last week I tried to use the latest beta with my documents and the beta was
unable to run my documents.
As it seems it is not backward compatible and I have no time at the moment
to debug or test.

So no, I cannot update at the moment.

On Wed, Dec 6, 2017 at 7:13 PM, Aditya Mahajan  wrote:

> On Wed, 6 Dec 2017, Wim Neimeijer wrote:
>
> @Wolfgang,
>>
>> Ran your example (unsure about all these \definefontfamily commands), but
>> does not work, a lot of errors
>>
>
> This is LuaTeX, Version beta-0.89.4 (TeX Live 2016/dev)
>> ConTeXt  ver: 2016.03.13 23:40 MKIV beta  fmt: 2016.3.23  int:
>> english/english
>>
>
> You are using a very old version of luatex and context. You need to update
> your distribution or install context standalone, which can be installed in
> parallel with texlive.
>
> http://wiki.contextgarden.net/ConTeXt_Standalone
>
> 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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
>
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Pablo Rodriguez
On 12/06/2017 06:16 PM, Wim Neimeijer wrote:
> @Wolfgang,
> 
> Ran your example (unsure about all these \definefontfamily commands),
> but does not work, a lot of errors 
> [...]
> This is LuaTeX, Version beta-0.89.4 (TeX Live 2016/dev) 
> [...]
> ConTeXt  ver: 2016.03.13 23:40 MKIV beta  fmt: 2016.3.23  int:
> english/english

Hi Wim,

how about updating to latest beta?

There have been some changes since your installed version:

My versions are:

mtx-context | current version: 2017.12.04 16:37
This is LuaTeX, Version 1.06.2 (TeX Live 2018/dev)

Just in case it helps,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Aditya Mahajan

On Wed, 6 Dec 2017, Wim Neimeijer wrote:


@Wolfgang,

Ran your example (unsure about all these \definefontfamily commands), but
does not work, a lot of errors



This is LuaTeX, Version beta-0.89.4 (TeX Live 2016/dev)
ConTeXt  ver: 2016.03.13 23:40 MKIV beta  fmt: 2016.3.23  int:
english/english


You are using a very old version of luatex and context. You need to update 
your distribution or install context standalone, which can be installed in 
parallel with texlive.


http://wiki.contextgarden.net/ConTeXt_Standalone

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wim Neimeijer
@Wolfgang,

Ran your example (unsure about all these \definefontfamily commands), but
does not work, a lot of errors

==
mtx-context | warning: no (local) file './context_cjk', proceeding
mtx-context | run 1: luatex
--fmt="/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
--jobname="context_cjk"
--lua="/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./context_cjk"
--c:input="./context_cjk" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
This is LuaTeX, Version beta-0.89.4 (TeX Live 2016/dev)
 system commands enabled.
open source > 1 > 1 >
/opt/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv

ConTeXt  ver: 2016.03.13 23:40 MKIV beta  fmt: 2016.3.23  int:
english/english

system  > 'cont-new.mkiv' loaded
open source > 2 > 2 >
/opt/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
close source> 2 > 2 >
/opt/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
system  > files > jobname 'context_cjk', input './context_cjk',
result 'context_cjk'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > /home/icubic/download/wim/context_cjk.tex
fonts   > otf loading > loading
'/opt/context/tex/texmf/fonts/truetype/public/dejavu/DejaVuSerif.ttf', hash
'dejavuserif'
otf reader  > found cmaps:
otf reader  >   platform 0: unicode
otf reader  > encoding 3: unicode 2.0 bmp
otf reader  >   formats: 4
otf reader  > encoding 4: unicode 2.0 full (unsupported)
otf reader  >   formats: 12 (unsupported)
otf reader  >   platform 1: macintosh (unsupported)
otf reader  > encoding 0: roman (unsupported)
otf reader  >   formats: 6 (unsupported)
otf reader  >   platform 3: windows
otf reader  > encoding 1: unicode bmp
otf reader  >   formats: 4
otf reader  > encoding 10: unicode ucs-4
otf reader  >   formats: 12
otf reader  > cmap checked: platform 3 (windows), encoding 1 (unicode
bmp), format 4, new unicodes 3329
otf reader  > cmap checked: platform 3 (windows), encoding 10 (unicode
ucs-4), format 12, new unicodes 55
otf reader  > cmap checked: platform 0 (unicode), encoding 3 (unicode
2.0 bmp), format 4, new unicodes 0
otf reader  > ignoring global kern table using gpos kern feature
otf reader  > not unicoded: brailledot dlLtcaron
otf reader  > 2809 bogus names removed (verbose unicode)
otf reader  > 3357 base class tags removed (default is base)
fonts   > otf loading > loading done
fonts   > otf loading > saving
'/opt/context/tex/texmf/fonts/truetype/public/dejavu/DejaVuSerif.ttf' in
cache
system  > lua > compiling
'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/dejavuserif.tma'
into
'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/dejavuserif.tmc'
system  > lua > dumping
'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/dejavuserif.tma'
into
'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/dejavuserif.tmc'
stripped
fonts   > otf loading > loading, optimizing, packing and caching
time 0.134
fonts   > defining > font with asked name 'mainface-rm--fallback-1'
is not found using lookup 'file'
fonts   > defining > unknown font 'mainface-rm--fallback-1',
loading aborted
fonts   > defining > unable to define 'mainface-rm--fallback-1' as
'dummy--0'
fonts   > defining > font with asked name 'mainface-rm--fallback-1'
is not found using lookup 'file'
fonts   > defining > unknown font 'mainface-rm--fallback-1',
loading aborted
fonts   > defining > unable to define 'mainface-rm--fallback-1' as
'dummy--0'



On Wed, Dec 6, 2017 at 12:00 PM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

>
> Wim Neimeijer 
> 6. Dezember 2017 um 00:32
> The thing here is, I am not an ConText expert just an user. I am working
> on a manual (200+ pages) where including code snippets
> is just a small part of the document and not something isolated. Not sure
> what to do next as the wiki explains a lot
> but not this.
>
> You need fonts [1-3]  which contains hangul characters (don’t forget to
> set a math font because it is used for the symbols in enumerations) and you
> have to enable linebreaking for korean with the \setscript command.
>
>  begin example
> \definefallbackfamily [mainface] [rm] [Nanum Myeongjo]
> [preset=range:korean]
> \definefontfamily [mainface] [rm] [DejaVu Serif]
>
> \definefallbackfamily [mainface] [ss] [Nanum Gothic] [preset=range:korean]
> \definefontfamily [mainface] [ss] [DejaVu Sans]

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wolfgang Schuster



Wim Neimeijer 
6. Dezember 2017 um 00:32
The thing here is, I am not an ConText expert just an user. I am 
working on a manual (200+ pages) where including code snippets
is just a small part of the document and not something isolated. Not 
sure what to do next as the wiki explains a lot

but not this.

You need fonts [1-3]  which contains hangul characters (don’t forget to 
set a math font because it is used for the symbols in enumerations) and 
you have to enable linebreaking for korean with the \setscript command.


 begin example
\definefallbackfamily [mainface] [rm] [Nanum Myeongjo] [preset=range:korean]
\definefontfamily [mainface] [rm] [DejaVu Serif]

\definefallbackfamily [mainface] [ss] [Nanum Gothic] [preset=range:korean]
\definefontfamily [mainface] [ss] [DejaVu Sans]

\definefallbackfamily [mainface] [tt] [Nanum Gothic Coding] 
[features=none,preset=range:korean]

\definefontfamily [mainface] [tt] [DejaVu Sans Mono] [features=none]

\definefontfamily [mainface] [mm] [DejaVu Math]

\setupbodyfont[mainface]

\setscript[hangul]

\starttext

이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
모아 엮어졌습니다.

{\ss 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
모아 엮어졌습니다.}

\starttyping
이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
모아 엮어졌습니다.
\stoptyping

\stoptext
 end example

[1] https://www.freekoreanfont.com/nanum-myeongjo-free-download/
[2] https://www.freekoreanfont.com/nanum-gothic-free-download/
[3] https://www.freekoreanfont.com/nanum-gothic-coding-free-download/

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread luigi scarso
On Wed, Dec 6, 2017 at 9:53 AM, Hans Hagen  wrote:
> On 12/6/2017 12:32 AM, Wim Neimeijer wrote:
>>
>> The thing here is, I am not an ConText expert just an user. I am working
>> on a manual (200+ pages) where including code snippets
>> is just a small part of the document and not something isolated. Not sure
>> what to do next as the wiki explains a lot
>> but not this.
>
> in the tEst suite:

The test suite is
http://www.pragma-ade.nl/context/latest/cont-tst.7z


-- 
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Henning Hraban Ramm
Am 2017-12-06 um 00:32 schrieb Wim Neimeijer :

> The thing here is, I am not an ConText expert just an user. I am working on a 
> manual (200+ pages) where including code snippets
> is just a small part of the document and not something isolated. Not sure 
> what to do next as the wiki explains a lot 
> but not this. 

Here’s an example for Hebrew, I guess you can adapt it to Japanese:

\definefallbackfamily[MyBodyFontFamily][sans][Arial Hebrew][range=0591-05F4]


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Hans Hagen

On 12/6/2017 12:32 AM, Wim Neimeijer wrote:
The thing here is, I am not an ConText expert just an user. I am working 
on a manual (200+ pages) where including code snippets
is just a small part of the document and not something isolated. Not 
sure what to do next as the wiki explains a lot

but not this.

in the tEst suite:

  ./fonts/fallbacks-001.tex
  ./scripts/type-kor-mixed.tex

for simple few-time cases you can decide to set the font explicitly:

\starttyping[style=\bf]
foo
\stoptyping

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread Wim Neimeijer
The thing here is, I am not an ConText expert just an user. I am working on
a manual (200+ pages) where including code snippets
is just a small part of the document and not something isolated. Not sure
what to do next as the wiki explains a lot
but not this.




On Tue, Dec 5, 2017 at 11:53 PM, Hans Hagen <pra...@wxs.nl> wrote:

> On 12/5/2017 11:10 PM, Wim Neimeijer wrote:
>
>> I wish it is that simple, but alas, I need to
>> to inform \typefile of the font as well,
>> possibly via setuptyping ?
>>
> if you mix scripts you need to either use font that has the glyphs or you
> have to create a bodyfint with a combination of fonts ... i'm pretty sure
> that the wiki explains this somewhere (fallbacks and such)
>
> Hans
>
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Nethe
> <https://maps.google.com/?q=Ridderstraat+27+%7C+8061+GH+Hasselt+%7C+The+Nethe=gmail=g>
> rlands
>tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread Hans Hagen

On 12/5/2017 11:10 PM, Wim Neimeijer wrote:

I wish it is that simple, but alas, I need to
to inform \typefile of the font as well,
possibly via setuptyping ?
if you mix scripts you need to either use font that has the glyphs or 
you have to create a bodyfint with a combination of fonts ... i'm pretty 
sure that the wiki explains this somewhere (fallbacks and such)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread Wim Neimeijer
I wish it is that simple, but alas, I need to
to inform \typefile of the font as well,
possibly via setuptyping ?

The following works with texlive 2017 (pdflatex), meaning I have the fonts
installed.
I also ran
$ mtxrun --script font --reload

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{CJKutf8}
\usepackage[english]{babel}

\begin{document}
\begin{CJK}{UTF8}{mj}
  이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
  모아 엮어졌습니다.
\end{CJK}
\end{document}





On Tue, Dec 5, 2017 at 9:43 PM, luigi scarso <luigi.sca...@gmail.com> wrote:

> On Tue, Dec 5, 2017 at 9:32 PM, Wim Neimeijer <wneimei...@gmail.com>
> wrote:
> > I am writing a manual where I include code snippets with typefile. Some
> of
> > the code snippets contain text in Japanese
> > but don't appear in the PDF document as typefile seems to skip the
> Japanese
> > characters
> >
> > MWE
> >
> > file cjk.asy
> > 
> > Label L;
> > L = Label("\\begin{CJK}{UTF8}{gbsn}{\\CJKfamily{gbsn}여보세요  \\end{CJK}");
> > label(L);
> > shipout();
> >
> > main file
> > ===
> > \starttext
> > \typefile[C][]{cjk.asy}
> > \stoptext
>
> Assuming a font with the glyphs needed, this should work:
> \starttext
> \typefile{cjk.asy}
> \stoptext
>
>
> --
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread luigi scarso
On Tue, Dec 5, 2017 at 9:32 PM, Wim Neimeijer <wneimei...@gmail.com> wrote:
> I am writing a manual where I include code snippets with typefile. Some of
> the code snippets contain text in Japanese
> but don't appear in the PDF document as typefile seems to skip the Japanese
> characters
>
> MWE
>
> file cjk.asy
> 
> Label L;
> L = Label("\\begin{CJK}{UTF8}{gbsn}{\\CJKfamily{gbsn}여보세요  \\end{CJK}");
> label(L);
> shipout();
>
> main file
> ===
> \starttext
> \typefile[C][]{cjk.asy}
> \stoptext

Assuming a font with the glyphs needed, this should work:
\starttext
\typefile{cjk.asy}
\stoptext


-- 
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread Wim Neimeijer
I am writing a manual where I include code snippets with typefile. Some of
the code snippets contain text in Japanese
but don't appear in the PDF document as typefile seems to skip the Japanese
characters

MWE

file cjk.asy

Label L;
L = Label("\\begin{CJK}{UTF8}{gbsn}{\\CJKfamily{gbsn}여보세요  \\end{CJK}");
label(L);
shipout();

main file
===
\starttext
\typefile[C][]{cjk.asy}
\stoptext
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] typebuffer different from typefile

2016-04-24 Thread Meer, Hans van der
The point is not that I am without options for a practical solution here. 
My point is that the difference between \typebuffer and \typefile breaks the 
strict and so much appreciated congruence between like macro calls.
Therefore my post must rather be seen as a plea to the maintainer(s) of these 
to consider a change in the given direction.

Hans van der Meer

> On 24 Apr 2016, at 17:04, Pablo Rodriguez <oi...@gmx.es> wrote:
> 
> On 04/24/2016 10:31 AM, dr. Hans van der Meer wrote:
>> Why is there a difference in syntax between typing buffers and typing files?
>> For files enclosure in {} for buffers in [], for files optional
>> parameters, for buffers not.
>> Is it possible to make the syntax of these two the same, because their
>> usage parallels each other?
> 
> Hi Hans,
> 
> I wonder whether any of these two options may help you:
> 
>\setuptyping[buffer][style=\ttx]
>\startbuffer[test]
>content of buffer
>\stopbuffer
>\starttext
>\typebuffer[test][style=\ss\red]
>\typefile[style=\ttx\blue]{test.txt}
>\stoptext
> 
> Again, just in case it might help,
> 
> Pablo





___
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] typebuffer different from typefile

2016-04-24 Thread Pablo Rodriguez
On 04/24/2016 10:31 AM, dr. Hans van der Meer wrote:
> Why is there a difference in syntax between typing buffers and typing files?
> For files enclosure in {} for buffers in [], for files optional
> parameters, for buffers not.
> Is it possible to make the syntax of these two the same, because their
> usage parallels each other?

Hi Hans,

I wonder whether any of these two options may help you:

\setuptyping[buffer][style=\ttx]
\startbuffer[test]
content of buffer
\stopbuffer
\starttext
\typebuffer[test][style=\ss\red]
    \typefile[style=\ttx\blue]{test.txt}
\stoptext

Again, just in case it might help,

Pablo
-- 
http://www.ousia.tk
___
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] typebuffer different from typefile

2016-04-24 Thread dr. Hans van der Meer
Why is there a difference in syntax between typing buffers and typing files?
For files enclosure in {} for buffers in [], for files optional parameters, for 
buffers not.
Is it possible to make the syntax of these two the same, because their usage 
parallels each other?

Example code:

\startbuffer[test]
content of buffer
\stopbuffer
\starttext
\typebuffer[test]
\typefile[style=\ttx]{test.txt}
\stoptext

Hans van der Meer

___
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] \typefile and width (number of spaces) for '\t'

2015-08-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Thanks, that's it... Lukas


On Mon, 24 Aug 2015 13:57:12 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


Procházka Lukáš Ing. - Pontex s. r. o. mailto:l...@pontex.cz
24. August 2015 13:30
Hello,

is there a way to specify width for a tabulator ('\t') being read in a
text file during \typefile command?

E.g. 10 spaces...

\setuptyping[file][tab=10]

Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] \typefile and width (number of spaces) for '\t'

2015-08-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

is there a way to specify width for a tabulator ('\t') being read in a text 
file during \typefile command?

E.g. 10 spaces...

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] \typefile and width (number of spaces) for '\t'

2015-08-24 Thread Wolfgang Schuster

Procházka Lukáš Ing. - Pontex s. r. o. mailto:l...@pontex.cz
24. August 2015 13:30
Hello,

is there a way to specify width for a tabulator ('\t') being read in a 
text file during \typefile command?


E.g. 10 spaces...

\setuptyping[file][tab=10]

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
___

Re: [NTG-context] typefile with absolute path to file

2012-11-21 Thread Hans Hagen

On 11/20/2012 11:17 PM, Aditya Mahajan wrote:


On my machine, I can read files **with an extension** from anywhere in
the system, but  \typefile{...} for a file without an extension results in:

verbatimsfile abc does not exist


ah .. but it makes sense to be explicit in what you want to be typed 
(it's not an input file in the sense of a document)


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] typefile with absolute path to file

2012-11-21 Thread Sietse Brouwer
I think he means files of which the name does not have an extension.
I.e. he is trying to type a file called 'xxx', not 'xxx.something'.
Example of such a file: the shell script /usr/bin/ps2pdf.
Cheers,
--Sietse
___
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] typefile with absolute path to file

2012-11-21 Thread Hans Hagen

On 11/21/2012 11:18 AM, Sietse Brouwer wrote:

I think he means files of which the name does not have an extension.
I.e. he is trying to type a file called 'xxx', not 'xxx.something'.
Example of such a file: the shell script /usr/bin/ps2pdf.


hopefully fixed in next upload .. btw, testing can best be done with

\enabletrackers[resolvers.locating,resolvers.detail]


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


[NTG-context] typefile with absolute path to file

2012-11-20 Thread Erik Margraf
Dear List,

a question about \typefile{}.
I tried to use \typefile{ /with/an/absolute/path/to/some_file }  and failed
Message in the log: Verbatim some_file not found. Also tried with
no path at all, assuming it will take the file from the current directory.
Same result.

Do I miss something? Should this work? Or, if not, how can I achieve
this effect (typefile
with absolute path to a file. btw. on a Linux system)

I'm aware of a similar message thread to this list from May 25th, this year.
But I didn't feel that it speaks against my comprehension of \typefile ...

Thanks!

Erik
___
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] typefile with absolute path to file

2012-11-20 Thread Aditya Mahajan



Dear List,

a question about \typefile{}.
I tried to use \typefile{ /with/an/absolute/path/to/some_file }  and failed
Message in the log: Verbatim some_file not found. Also tried with
no path at all, assuming it will take the file from the current directory.
Same result.

Do I miss something? Should this work? Or, if not, how can I achieve
this effect (typefile
with absolute path to a file. btw. on a Linux system)


\starttext
\typefile{\jobname.tex}
\typefile{/tmp/test.tex}
\stoptext

work with ConTeXt MkIV  2012.11.16.

However, I can confirm that

\typefile{/usr/bin/pdf2ps} does not work with context minimals on 
archlinux, although the texmfcnf.lua file says:


[system.outputmode]= restricted,
[system.inputmode] = any,

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] typefile with absolute path to file

2012-11-20 Thread Erik Margraf
Hi,

Thanks Aditya!

I tried this again with

\starttext
   \typefile{/tmp/xxx.tex}
\stoptext

and could trace what's going on ... (not even /tmp/xxx.tex worked)

The lines below is the trace output belonging to /tmp/xxx

stat(tmp/xxx.tex, 0x7fff5dc73d90) = -1 ENOENT (No such file or directory)
stat(../tmp/xxx.tex, 0x7fff5dc73d90)  = -1 ENOENT (No such file or directory)
stat(../../tmp/xxx.tex, 0x7fff5dc73d90) = -1 ENOENT (No such file or
directory)
stat(tmp/xxx.tex.tex, 0x7fff5dc73d90) = -1 ENOENT (No such file or directory)
stat(../tmp/xxx.tex.tex, 0x7fff5dc73d90) = -1 ENOENT (No such file
or directory)
stat(../../tmp/xxx.tex.tex, 0x7fff5dc73d90) = -1 ENOENT (No such
file or directory)

I could verify that tmp/xxx.tex is actually found!
current version: 2012.11.16 23:51
Anything I can do about that?  (I guess I can work with relative paths
below - tested this ...)

Context Version: current version: 2012.11.16 23:51
System: Debian 3.2.32-1 x86_64 GNU/Linux

regards
Erik

On Tue, Nov 20, 2012 at 4:25 PM, Aditya Mahajan adit...@umich.edu wrote:

 Dear List,

 a question about \typefile{}.
 I tried to use \typefile{ /with/an/absolute/path/to/some_file }  and
 failed
 Message in the log: Verbatim some_file not found. Also tried with
 no path at all, assuming it will take the file from the current directory.
 Same result.

 Do I miss something? Should this work? Or, if not, how can I achieve
 this effect (typefile
 with absolute path to a file. btw. on a Linux system)


 \starttext
 \typefile{\jobname.tex}
 \typefile{/tmp/test.tex}
 \stoptext

 work with ConTeXt MkIV  2012.11.16.

 However, I can confirm that

 \typefile{/usr/bin/pdf2ps} does not work with context minimals on archlinux,
 although the texmfcnf.lua file says:

 [system.outputmode]= restricted,
 [system.inputmode] = any,

 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
 ___
___
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] typefile with absolute path to file

2012-11-20 Thread Hans Hagen

On 11/20/2012 9:06 PM, Erik Margraf wrote:

Hi,

Thanks Aditya!

I tried this again with

\starttext
\typefile{/tmp/xxx.tex}
\stoptext

and could trace what's going on ... (not even /tmp/xxx.tex worked)


I just tried a standalone on a xubuntu virtual machine. I had no 
problems with


/data/temp/test/test.tex: (also copied one level lower)

\starttext

\typefile{/data/temp/test.tex}
\typefile{/data/test.tex}

\stoptext

So, I'm a bit puzzled.

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] typefile with absolute path to file

2012-11-20 Thread Aditya Mahajan

On Tue, 20 Nov 2012, Hans Hagen wrote:


On 11/20/2012 9:06 PM, Erik Margraf wrote:

Hi,

Thanks Aditya!

I tried this again with

\starttext
\typefile{/tmp/xxx.tex}
\stoptext

and could trace what's going on ... (not even /tmp/xxx.tex worked)


I just tried a standalone on a xubuntu virtual machine. I had no problems 
with


/data/temp/test/test.tex: (also copied one level lower)

\starttext

\typefile{/data/temp/test.tex}
\typefile{/data/test.tex}

\stoptext

So, I'm a bit puzzled.


On my machine, I can read files **with an extension** from anywhere in the 
system, but  \typefile{...} for a file without an extension results in:


verbatimsfile abc does not exist

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] typefile with absolute path to file

2012-11-20 Thread Sietse Brouwer
Compiling the evidence... all I can say is hmm

== Erik ==
Version: 2012.11.16 on Linux
Absolute path (parent dir): ???
Absolute path (non-parent dir): did not work

== Aditya ==
Version: 2012.11.16 on Linux
[system.outputmode]= restricted,
[system.inputmode] = any,
Absolute path (parent dir): works
Absolute path (non-parent dir): works
Absolute path (filename has no extension): fails

== Hans ==
Version: ??? on Linux
Absolute path (parent dir): works
Absolute path (non-parent dir): /??

== Sietse ==
Version: 2012.11.08 on Linux
[system.outputmode]= restricted,
[system.inputmode] = any,
Absolute path (parent dir): does not work
Absolute path (non-parent dir): does not work
Relative path: works
Absolute or relative path, filename has no extension: does not work.

Hmm.
___
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] typefile with absolute path to file

2012-11-20 Thread Erik Margraf
That's interesting. As I could trace, the leading / is removed on my system.

ldd output on my luatex gives (seems not really spectacular):

linux-vdso.so.1 =  (0x7fffad7ff000)
libdl.so.2 = /lib/x86_64-linux-gnu/libdl.so.2 (0x7f221f099000)
libm.so.6 = /lib/x86_64-linux-gnu/libm.so.6 (0x7f221ee17000)
libc.so.6 = /lib/x86_64-linux-gnu/libc.so.6 (0x7f221ea8f000)
/lib64/ld-linux-x86-64.so.2 (0x7f221f2c1000)

lua -v gives:  Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio

Though, I have lua5.2 installed in parallel

Any other infos, which might help?

On Tue, Nov 20, 2012 at 11:17 PM, Aditya Mahajan adit...@umich.edu wrote:
 On Tue, 20 Nov 2012, Hans Hagen wrote:

 On 11/20/2012 9:06 PM, Erik Margraf wrote:

 Hi,

 Thanks Aditya!

 I tried this again with

 \starttext
 \typefile{/tmp/xxx.tex}
 \stoptext

 and could trace what's going on ... (not even /tmp/xxx.tex worked)


 I just tried a standalone on a xubuntu virtual machine. I had no problems
 with

 /data/temp/test/test.tex: (also copied one level lower)

 \starttext

 \typefile{/data/temp/test.tex}
 \typefile{/data/test.tex}

 \stoptext

 So, I'm a bit puzzled.


 On my machine, I can read files **with an extension** from anywhere in the
 system, but  \typefile{...} for a file without an extension results in:

 verbatimsfile abc does not exist


 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
 ___
___
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] \typefile does not obey global path settings

2012-05-25 Thread Marco
On 2012-05-20 Marco net...@lavabit.com wrote:

 the \typefile command does not obey the \usepath setting any more.

Still failing in current beta.

% file: test.tex
\usepath [code]
\starttext

  % fails
  % \typefile{somefile}

  % works
  \typefile{code/somefile}
\stoptext

% file: code/somefile
This should be printed.


Marco


___
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] \typefile does not obey global path settings

2012-05-25 Thread Hans Hagen

On 25-5-2012 12:29, Marco wrote:

On 2012-05-20 Marconet...@lavabit.com  wrote:


the \typefile command does not obey the \usepath setting any more.


Still failing in current beta.


it was never part of the idea .. added in next beta


% file: test.tex
\usepath [code]
\starttext

   % fails
   % \typefile{somefile}

   % works
   \typefile{code/somefile}
\stoptext

% file: code/somefile
This should be printed.



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


[NTG-context] \typefile does not obey global path settings

2012-05-20 Thread Marco
Hi,

the \typefile command does not obey the \usepath setting any more.
Older versions did (before beta 2011.07.13 20:14). Example:

% test.tex
\usepath [code]
\starttext
  Here is some source code:
  \typefile{somefile}
\stoptext

% code/somefile
This should be printed.


Marco


___
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] Disable line-break when \typefile

2011-06-14 Thread Aditya Mahajan

On Wed, 8 Jun 2011, Marco wrote:


And what is “lines=no” for?


What i get from the source for the “lines” key is:

  no (default) : no hyphenation
  yes  : no hyphenation and left aligned text (align key is ignored)
  hyphenated   : hyphenation


Thanks for clarification. Though the options (also
regarding “space=fixed”) are confusing, or at least not
transparent, in my opinion.


For the vim module, I decided to use `space=on|off` to show visible space
and `lines=split|fixed` to enable or disable line breaks.

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] Disable line-break when \typefile

2011-06-10 Thread Aditya Mahajan

On Wed, 8 Jun 2011, Wolfgang Schuster wrote:



Am 08.06.2011 um 17:29 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:


Hello,

is there a way how to disable line breaks of (very) long lines typeset with \typefile, 
even if this would cause overfull hbox (i.e. typesetting to out-of-page area)?

The following example:


% This a very long line which should be typeset to one line even if there'll be 
overfull hbox

\definetyping[Std][bodyfont=10pt,style=\tt\setupinterlinespace]

\starttext
 \typefile[Std]{TypeFi.mkiv}

 \startcolumns[n=2,rule=on]
   \typefile[Std]{TypeFi.mkiv}
 \stopcolumns
\stoptext


gives a result where there is new line between overfull and hbox in normal mode and between be and 
typeset and be and overfull in column mode.

Is there a way how to avoid this, how to force continuing on the same line?


Add “space=fixed” to your setup.


Why does activatespacehandler behave differently.

{
\activatespacehandler{fixed}
A very very very very very very very very very very very very very long line to 
see if it breaks or not
\par}

{
\activatespacehandler{on}
A very very very very very very very very very very very very very long line to 
see if it breaks or not
\par}


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] Disable line-break when \typefile

2011-06-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .

OK, thanks.

I added some info into wiki.

Lukas


On Wed, 08 Jun 2011 22:44:41 +0200, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:



Am 08.06.2011 um 22:34 schrieb Marco:


And what is “lines=no” for?



What i get from the source for the “lines” key is:

  no (default) : no hyphenation
  yes  : no hyphenation and left aligned text (align key is ignored)
  hyphenated   : hyphenation

Wolfgang



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] Disable line-break when \typefile

2011-06-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

is there a way how to disable line breaks of (very) long lines typeset with \typefile, 
even if this would cause overfull hbox (i.e. typesetting to out-of-page area)?

The following example:


% This a very long line which should be typeset to one line even if there'll be 
overfull hbox

\definetyping[Std][bodyfont=10pt,style=\tt\setupinterlinespace]

\starttext
  \typefile[Std]{TypeFi.mkiv}

  \startcolumns[n=2,rule=on]
\typefile[Std]{TypeFi.mkiv}
  \stopcolumns
\stoptext


gives a result where there is new line between overfull and hbox in normal mode and between be and 
typeset and be and overfull in column mode.

Is there a way how to avoid this, how to force continuing on the same line?

The (long) line 
\definetyping[Std][bodyfont=10pt,style=\tt\setupinterlinespace] in column 
mode is typeset exactly how I'd need, i.e. it overlaps to the next column.

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

TypeFi.mkiv
Description: Binary data


TypeFi.pdf
Description: Adobe PDF document
___
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] Disable line-break when \typefile

2011-06-08 Thread Wolfgang Schuster

Am 08.06.2011 um 17:29 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 Hello,
 
 is there a way how to disable line breaks of (very) long lines typeset with 
 \typefile, even if this would cause overfull hbox (i.e. typesetting to 
 out-of-page area)?
 
 The following example:
 
 
 % This a very long line which should be typeset to one line even if there'll 
 be overfull hbox
 
 \definetyping[Std][bodyfont=10pt,style=\tt\setupinterlinespace]
 
 \starttext
  \typefile[Std]{TypeFi.mkiv}
 
  \startcolumns[n=2,rule=on]
\typefile[Std]{TypeFi.mkiv}
  \stopcolumns
 \stoptext
 
 
 gives a result where there is new line between overfull and hbox in 
 normal mode and between be and typeset and be and overfull in column 
 mode.
 
 Is there a way how to avoid this, how to force continuing on the same line?

Add “space=fixed” to your setup.

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
___


Re: [NTG-context] Disable line-break when \typefile

2011-06-08 Thread Marco
On 2011-06-08 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

  Is  there  a way  how  to  avoid  this, how  to  force
  continuing on the same line?

 Add “space=fixed” to your setup.

And what is “lines=no” for?

Marco


___
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] Disable line-break when \typefile

2011-06-08 Thread Wolfgang Schuster

Am 08.06.2011 um 22:34 schrieb Marco:

 And what is “lines=no” for?


What i get from the source for the “lines” key is:

  no (default) : no hyphenation
  yes  : no hyphenation and left aligned text (align key is ignored)
  hyphenated   : hyphenation

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
___


Re: [NTG-context] Disable line-break when \typefile

2011-06-08 Thread Marco
  And what is “lines=no” for?
 
 What i get from the source for the “lines” key is:
 
   no (default) : no hyphenation
   yes  : no hyphenation and left aligned text (align key is ignored)
   hyphenated   : hyphenation

Thanks for clarification. Though the options (also
regarding “space=fixed”) are confusing, or at least not
transparent, in my opinion.

Marco


___
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] Problem with \setuptyping-ed \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I encountered another problem with \typefile. This code crashes:

---
\setuptyping[Model][bodyfont=6pt,style=\tt\setupinterlinespace]

\starttext
  \typefile[Model]{t2.txt} %{t.u8}
  %\startluacode context.typefile({Model}, t.u8)\stopluacode
\stoptext
---

Although a .pdf is generated, I'm getting:

---
MTXrun | run 1: luatex 
--fmt=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c
 \write18 enabled.
(C:/Lukas/Jobs/Holesov.PDPS/SO_201/Statics.Tx/SV/t2.mkiv

ConTeXt  ver: 2011.01.12 10:20 MKIV  fmt: 2011.1.13  int: english/english
...
(c:/ConTeXt/tex/texmf-context/tex/context/base/bxml-apa.mkiv)
systems : begin file 
C:/Lukas/Jobs/Holesov.PDPS/SO_201/Statics.Tx/SV/t2.mkiv at line 3
! Missing number, treated as zero.
to be read again
   \relax
\docheckverbatimmargins ...er \c!oddmargin \relax
  \ifzeropt \scratchskip \el...
---

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t2.log
Description: Binary data


t2.mkiv
Description: Binary data
ABCabc
___
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] Problem typing file with diacritics by \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I just downloaded the last beta and it seems there is (again) a problem with 
\typefile a file with diacritics.

Samples are attached.

Best regards,

Lukas


On Tue, 12 Oct 2010 17:15:06 +0200, Hans Hagen pra...@wxs.nl wrote:


this will work in the next beta (making zip now)



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038ABCD
ÁÈÏáíéøžý


t.mkiv
Description: Binary data


t.log
Description: Binary data
___
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] Problem with \setuptyping-ed \typefile

2011-01-13 Thread Wolfgang Schuster

Am 13.01.2011 um 11:35 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 Hello,
 
 I encountered another problem with \typefile. This code crashes:
 
 ---
 \setuptyping[Model][bodyfont=6pt,style=\tt\setupinterlinespace]

You need \definetyping[Model][...].

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
___


Re: [NTG-context] Problem typing file with diacritics by \typefile

2011-01-13 Thread Wolfgang Schuster

Am 13.01.2011 um 11:36 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 Hello,
 
 I just downloaded the last beta and it seems there is (again) a problem with 
 \typefile a file with diacritics.
 
 Samples are attached.

Save your file in utf-8 encoding, my editor shows me your t.txt is currently 
encoded as “ISO 8859-7”.

You need also another typewriter font because Latin Modern Typewriter doesn’t 
contain lowercase greek letters.

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
___


Re: [NTG-context] Problem with \setuptyping-ed \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Thanks, it works now. (I've been using \setuptyping before and it used to 
work.)

Lukas


On Thu, 13 Jan 2011 11:58:28 +0100, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:



Am 13.01.2011 um 11:35 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

You need \definetyping[Model][...].

Wolfgang



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] Problem typing file with diacritics by \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Thu, 13 Jan 2011 12:03:06 +0100, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:



Am 13.01.2011 um 11:36 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:


Hello,

I just downloaded the last beta and it seems there is (again) a problem with 
\typefile a file with diacritics.

Samples are attached.


Save your file in utf-8 encoding, my editor shows me your t.txt is currently 
encoded as “ISO 8859-7”.


... Yes, that's a possibility. But as I can remember, this was fixed and there 
was no requirement for the file to be UTF-8 encoded (see 
http://www.ntg.nl/pipermail/ntg-context/2010/053222.html).

The file I want to typeset is generated by another program, which uses 
diacritics (single bytes), CP1250.


You need also another typewriter font because Latin Modern Typewriter doesn’t 
contain lowercase greek letters.


This wouldn't be a problem, greek letters are not included.

Lukas


Wolfgang




--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] Problem typing file with diacritics by \typefile

2011-01-13 Thread Wolfgang Schuster

Am 13.01.2011 um 12:11 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 OSave your file in utf-8 encoding, my editor shows me your t.txt is currently 
 encoded as “ISO 8859-7”.
 
 ... Yes, that's a possibility. But as I can remember, this was fixed and 
 there was no requirement for the file to be UTF-8 encoded (see 
 http://www.ntg.nl/pipermail/ntg-context/2010/053222.html).
 
 The file I want to typeset is generated by another program, which uses 
 diacritics (single bytes), CP1250.

And how should ConTeXt know that your file is in another encoding, in the 
example you referred there was \enableregime[cp1250] at the begin of the 
document but not in the document you now sent.

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] \typefile without breaking long lines

2010-11-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

is it possible to \setuptyping in the manner that long lines won't be broken?

So to get:

-\textwidth -
a

instead of:

aAA
AA

Thank you in advance.

Regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] \typefile from n-th line

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I'd need to \typefile a file from n-th line (= ignoring first n-1 lines).

Is there such an option for \typefile macro? 
(http://wiki.contextgarden.net/Reference/en/typefile is silent.)

I tried:

\typefile[default][lines={10}]{a_file.txt} % Start at line 10

\typefile[default][lines={10,+1}]{a_file.txt} % Start at line 10, step = 1

\typefile[default][start=10]{a_file.txt} % Start at line 10

\typefile[default][from=10]{a_file.txt} % Start at line 10

No success.

(The last Ctx minimals, WinXP.)

Lukas

___
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] \typefile from n-th line

2010-10-15 Thread luigi scarso
2010/10/15 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz:
 Hello,

 I'd need to \typefile a file from n-th line (= ignoring first n-1 lines).

 Is there such an option for \typefile macro?
 (http://wiki.contextgarden.net/Reference/en/typefile is silent.)

 I tried:

 \typefile[default][lines={10}]{a_file.txt} % Start at line 10

 \typefile[default][lines={10,+1}]{a_file.txt} % Start at line 10, step = 1

 \typefile[default][start=10]{a_file.txt} % Start at line 10

 \typefile[default][from=10]{a_file.txt} % Start at line 10

 No success.

 (The last Ctx minimals, WinXP.)

 Lukas
Not an answer, but quick recipe:
With mkiv is trivial ; use lua to skip the first n-1 lines.
With  mkii just use luatex as lua interpreter to call with
\executesystemcommand  and then see previous point.


-- 
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] \typefile from n-th line

2010-10-15 Thread Henning Hraban Ramm


Am 2010-10-15 um 09:16 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

I'd need to \typefile a file from n-th line (= ignoring first n-1  
lines).



\typefile[default][start=10]{a_file.txt} % Start at line 10



According to older ML messages and the source, \typefile[start=10]  
should work. Maybe it need stop also?

Otherwise it's undocumented.

see
http://source.contextgarden.net/tex/context/base/buff-ver.mkii?search=typefile 
 (MkII)
http://source.contextgarden.net/tex/context/base/buff-ver.mkiv?search=typefile 
 (MkIV)



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] \typefile from n-th line

2010-10-15 Thread Peter Münster
On Fri, Oct 15 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
 
 I'd need to \typefile a file from n-th line (= ignoring first n-1 lines).

\starttext% 1
\typefile[range=3]{test.tex}  % 2
bla   % 3
bla   % 4
bla   % 5
bla   % 6
\stoptext % 7

See also: http://tracker.luatex.org/view.php?id=475

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] \typefile from n-th line

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello, it doesn't seem to work.

Let's have t-TypeF2.mkiv with the following content:

---
\setuptyping[default][bodyfont=small,style={\ttx\setupinterlinespace}] % 1
% 2
\starttext % 3
  \typefile[default][start=4]{t-TypeF2.mkiv} % = This file; 4
  \typefile[default][start=4,stop=99]{t-TypeF2.mkiv} % = This file; 5
  \typefile[default][lines={4,+1}]{t-TypeF2.mkiv} % = This file; 6
\stoptext % 7
---

If you see the result, all lines are printed in all cases.

Moreover, 4 and 99 are also printed in the front and at the end of the 
typed file in the second case.

2Luigi:


Not an answer, but quick recipe:
With mkiv is trivial ; use lua to skip the first n-1 lines.
With  mkii just use luatex as lua interpreter to call with
\executesystemcommand  and then see previous point.


I had also such idea, but I believed to be simply solvable even with the 
existing \typefile command - supposing there is start/stop line option (or it 
couldn't be so complicated to provide them). So I supposed the valid syntax is 
unknown for me.

Lukas


On Fri, 15 Oct 2010 10:00:10 +0200, Henning Hraban Ramm hra...@fiee.net wrote:


\typefile[default][start=10]{a_file.txt} % Start at line 10



According to older ML messages and the source, \typefile[start=10]
should work. Maybe it need stop also?
Otherwise it's undocumented.

see
http://source.contextgarden.net/tex/context/base/buff-ver.mkii?search=typefile
  (MkII)
http://source.contextgarden.net/tex/context/base/buff-ver.mkiv?search=typefile
  (MkIV)


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t-TypeF2.mkiv
Description: Binary data


t-TypeF2.pdf
Description: Adobe PDF document
___
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] \typefile from n-th line

2010-10-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Yes, thanks, that's it:

\typefile[default][range={3,5}]{t-TypeF2.mkiv} % If also the upper limit is to 
be specified

Regards,

Lukas


On Fri, 15 Oct 2010 10:09:13 +0200, Peter Münster pmli...@free.fr wrote:


On Fri, Oct 15 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


I'd need to \typefile a file from n-th line (= ignoring first n-1 lines).


\starttext% 1
\typefile[range=3]{test.tex}  % 2
bla   % 3
bla   % 4
bla   % 5
bla   % 6
\stoptext % 7

See also: http://tracker.luatex.org/view.php?id=475

Cheers, Peter




--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] Problem typing file with diacritics by \typefile

2010-10-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I have problem. Suppose having t-TypeF.ctx which is to print itself:

---
\enableregime[cp1250]

\starttext

  ABC

  ŽŠČ

  \typefile[]{t-TypeF.ctx}

\stoptext
---

The letters ŽŠČ to be printed during \typefile are the problem.

I get a long error message, where the key message is:


l.9   \typefile[]{t-TypeF.ctx}

! String contains an invalid utf-8 sequence.

system   error on line 73 in file t-TypeF.ctx: String contains an 
invalid utf-8 sequence ...


l.73
 ´┐Ż

The file is created with CP 1250 = Windows, Eastern Europe, Czech Republic.

So how do I make ctx accept also Czech letters with diacritics like ŽŠČ?

- I also looked to wiki to \setuptyping, but it doesn't seem to there would be 
a command which could change this.

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t-TypeF.ctx
Description: Binary data
___
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] Problem typing file with diacritics by \typefile

2010-10-12 Thread Peter Münster
On Tue, Oct 12 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

 \enableregime[cp1250]
 
 \starttext
 
   ABC
 
   ŽŠČ
 
   \typefile[]{t-TypeF.ctx}
 
 \stoptext
 ---
 
 The letters ŽŠČ to be printed during \typefile are the problem.

Hello,

It seems, that \typefile assumes utf8 independently of the \enableregime.

I would suggest to configure your environment (editor and so on) to use only
utf8.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/
___
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] Problem typing file with diacritics by \typefile

2010-10-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Tue, 12 Oct 2010 08:45:25 +0200, Peter Münster pmli...@free.fr wrote:


I would suggest to configure your environment (editor and so on) to use only
utf8.


It's a problem as the file which is \typefiled is generated by another program 
and I have no control of which characters or which encoding it uses.

All runs programs run under Windows and all [mentioned] are using CP 1250.

Lukas



Cheers, 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] Problem typing file with diacritics by \typefile

2010-10-12 Thread Peter Münster
On Tue, Oct 12 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

 All runs programs run under Windows and all [mentioned] are using CP 1250.

Perhaps with a filter:
windows-program | recode windows-1250..u8 output-file

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/
___
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] Problem typing file with diacritics by \typefile

2010-10-12 Thread Hans Hagen

On 12-10-2010 9:39, Peter Münster wrote:

On Tue, Oct 12 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


All runs programs run under Windows and all [mentioned] are using CP 1250.


Perhaps with a filter:
windows-program | recode windows-1250..u8output-file


it's not that complex to support an regime option for \typefile but I 
need an example file then


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] Problem typing file with diacritics by \typefile

2010-10-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Tue, 12 Oct 2010 13:24:24 +0200, Hans Hagen pra...@wxs.nl wrote:


On 12-10-2010 9:39, Peter Münster wrote:

On Tue, Oct 12 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


All runs programs run under Windows and all [mentioned] are using CP 1250.


Perhaps with a filter:
windows-program | recode windows-1250..u8output-file


it's not that complex to support an regime option for \typefile but I
need an example file then


There is one attached - t-TypeF.mkiv - it contains all Czech letters with 
diacritics.

You can see also all letters with diacritics in Czech - Cz.txt (CP 1250) and their 
translation to UTF8 - Cz-UTF8.txt.

Cheers,

Lukasá
è
ï
é
ì
í
ò
ó
ø
š

ú
ù
ý
ž

Á
È
Ï
É
Ì
Í
Ò
Ó
Ø
Š

Ú
Ù
Ý
Ž
á
č
ď
é
ě
í
ň
ó
ř
Å¡
Å¥
ú
ů
ý
ž

Á
Č
Ď
É
Ě
Í
Ň
Ó
Ř
Å 
Ť
Ú
Å®
Ý
Ž


t-TypeF.mkiv
Description: Binary data
___
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] \typefile without the last n lines

2010-08-25 Thread Peter Münster
Hello,

Here a little feature request:

\starttext
\typefile[start=1, stop=-3]{test.tex} % printing this file without the
  % last 3 lines
% line to print
\stoptext % don't print this line
% don't print this line
% don't print this line

TIA for any help!
Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] How to add line number to verbatim typefile?

2010-01-21 Thread Joshua Lee
Hi all,
Here's a little sample named test.tex, 

 \starttext
 \setuptyping[file][numbering=line]
 
 \typefile[start=1,step=1]{test.tex}
 
 \stoptext

But, it does not shows the line number, any questions about the code snippet, 
thanks. 

BR/JL
___
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] typefile consorts (setup etc)

2009-10-06 Thread R. Bastian
Hello,

is there a way to get reserved words to bz printed \bf
(and maybe comments - \it, strings - \rm or another wise}

I think it is possible with lua+mk IV ; but i am working with mk II.



-- 
René Bastian
www.pythoneon.org
www.musiques-rb.org


___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \typefile with filenames with $ characters in their name

2009-06-28 Thread Henning Hraban Ramm

Am 2009-06-26 um 19:33 schrieb Gerben Wierda:

\typefile balks on filenames with $ characters in their names.  
Anything I can do about that?


Rename the file. It's an error if characters like that appear in a  
file name.


You could even rename it using Lua from within your TeX code.


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



PGP.sig
Description: Signierter Teil der Nachricht
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \typefile with filenames with $ characters in their name

2009-06-28 Thread Gerben Wierda

On 28 Jun 2009, at 19:17, Henning Hraban Ramm wrote:


Am 2009-06-26 um 19:33 schrieb Gerben Wierda:

\typefile balks on filenames with $ characters in their names.  
Anything I can do about that?


Rename the file. It's an error if characters like that appear in a  
file name.



You could even rename it using Lua from within your TeX code.


In my book, moving to a beta product or not accepting what is a vaild  
filename according to the filesystem is a limitation of the program.  
Not ConTeXt or TeX defines what a valid filename is, the OS decides.


I do not decide what the names of these files are, someone else  
produces them, and my work flow should be able to handle all valid  
filenames.


I assume then the answer is no? (Con)TeX(t) can't handle this?

G
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \typefile with filenames with $ characters in their name

2009-06-28 Thread Taco Hoekwater

Gerben Wierda wrote:
I do not decide what the names of these files are, someone else produces 
them, and my work flow should be able to handle all valid filenames.


I assume then the answer is no? (Con)TeX(t) can't handle this?


kpathsea can't handle files with $ signs in them, unless
the $ starts a variable it knows about (and that, it will
expand).

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \typefile with filenames with $ characters in their name

2009-06-28 Thread luigi scarso
On Sun, Jun 28, 2009 at 8:59 PM, Gerben Wierda gerben.wie...@rna.nl wrote:

 On 28 Jun 2009, at 19:17, Henning Hraban Ramm wrote:

  Am 2009-06-26 um 19:33 schrieb Gerben Wierda:

  \typefile balks on filenames with $ characters in their names. Anything I
 can do about that?


 Rename the file. It's an error if characters like that appear in a file
 name.


  You could even rename it using Lua from within your TeX code.


 In my book, moving to a beta product or not accepting what is a vaild
 filename according to the filesystem is a limitation of the program. Not
 ConTeXt or TeX defines what a valid filename is, the OS decides.

TeX (and ConTeXt) try hard to be OS independant , so I find natural some
limitations


 I do not decide what the names of these files are, someone else produces
 them, and my work flow should be able to handle all valid filenames.

 Well, my experience is that leave to  the users this prerogative is not
safe.
I always transform a filename in safe filename, process it, and eventually
transform back the name .

-- 
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \typefile with filenames with $ characters in their name

2009-06-26 Thread Gerben Wierda
\typefile balks on filenames with $ characters in their names.  
Anything I can do about that?


G
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \typefile with filenames with $ characters in their name

2009-06-26 Thread Hans Hagen

Gerben Wierda wrote:
\typefile balks on filenames with $ characters in their names. Anything 
I can do about that?


probeer eens:

\expanded{\typefile{\detokenize{}}}

-
  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
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \typefile with filenames with $ characters in their name

2009-06-26 Thread Gerben Wierda


On 26 Jun 2009, at 22:40, Hans Hagen wrote:


Gerben Wierda wrote:
\typefile balks on filenames with $ characters in their names.  
Anything I can do about that?


probeer eens:

\expanded{\typefile{\detokenize{}}}


\def\typeSQLfile#1{\expanded{\typefile[SQL]{\detokenize{#1
\typeSQLfile{Library-procedures/hlx$requery.pls}

Does not work. File not found.

Nor does directly calling:

\expanded{\typefile{\detokenize{Library-procedures/hlx$requery.pls}}}




-
 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
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Looks like a bug in \typefile[option=LANG]

2008-12-31 Thread Andrey Riabushenko
I have defined a new float environment for source file listings. 

\definefloat [listing] [listings]

\definetyping[listing][numbering=file]

\placelisting[lst:set]{Example of set tree} {
   \typefile[listing][option=C]{set.cpp}
}

It works just as expected.


Then I have tried to change standard color palet with my own palet.

\definepalet[corp-pretty][prettyone=corp-color-darkblue, 
prettytwo=corp-color-blue, prettythree=corp-color-lightblue, 
prettytwoone=corp-color-grey, prettyfour=corp-color-green,
prettyfourone=corp-color-green, prettyfourtwo=corp-color-green, 
prettyfourthree=corp-color-green,
prettyfourfour=corp-color-orange, prettysixone=corp-color-orange, 
prettysixtwo=corp-color-orange
prettyeight=corp-color-orange, prettynine=corp-color-orange]


\definefloat [listing] [listings]

\definetyping[listing][numbering=file, palet=corp-pretty]

\placelisting[lst:set]{Example of set tree} {
   \typefile[listing][option=C]{set.cpp}
}

The colors did not appear, in the texexec output I got lots of errors like

color   : TEXcorp-pretty:prettythree is not defined
color   : TEXcorp-pretty:prettythree is not defined
color   : TEXcorp-pretty:prettyone is not defined
color   : TEXcorp-pretty:prettytwo is not defined
color   : TEXcorp-pretty:prettythree is not defined
color   : TEXcorp-pretty:prettyfour is not defined


NOTICE \typefile LOOKS FOR PALET  TEXcorp-pretty and not corp-pretty as I 
have defined. There is some bug or feature that makes an implicit 
assumption of the palet prefix name - TEX.



I have managed to make it work by definition a palet with name TEXcorp-pretty 
and still passing as palet option of \definetyping the name corp-pretty, but 
it is a ugly hack.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile

2008-11-10 Thread Hans Hagen
Aditya Mahajan wrote:

 \starttext
 \typefile{test-aditya-001.tex}
 \stoptext
 
 Ah, this also works here. The error only shows if the file does not have 
 an extension.

this is fixed (hack, awaiting a proper split of supp-fil into mkii and 
mkiv)

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
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile

2008-11-10 Thread luigi scarso
On Mon, Nov 10, 2008 at 6:49 PM, Hans Hagen [EMAIL PROTECTED] wrote:

 Aditya Mahajan wrote:

  \starttext
  \typefile{test-aditya-001.tex}
  \stoptext
 
  Ah, this also works here. The error only shows if the file does not have
  an extension.

 this is fixed (hack, awaiting a proper split of supp-fil into mkii and
 mkiv)

 Hans

\starttext
\typefile{test-aditya-TEST}
\stoptext
where
test-aditya-TEST has
TEST
fails
with

! Undefined control sequence.
argument \filepath

\pathplusfile #1#2-#1
  \f!pathseparator #2
\mktypefileverbatim ...rs.typefile(\readfilename
  )}
\dosometyping ...rt }{\typingparameter \c!stop }}}
  \stopverbatimcolor
\stoppa...
\dotypefile ...else \dodotypefile [\v!file ][]{#3}
  \fi \fi
l.3 \typefile{test-aditya-TEST}

?

minimals-beta
Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008
i686 GNU/Linux
This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
ConTeXt MtxRun | current version: 2008.42.10 15:11

PS
context --version gives current version: 2008.42.10 15:11

-- 
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile

2008-11-10 Thread Hans Hagen
luigi scarso wrote:
 
 
 On Mon, Nov 10, 2008 at 6:49 PM, Hans Hagen [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 Aditya Mahajan wrote:
 
   \starttext
   \typefile{test-aditya-001.tex}
   \stoptext
  
   Ah, this also works here. The error only shows if the file does
 not have
   an extension.
 
 this is fixed (hack, awaiting a proper split of supp-fil into mkii and
 mkiv)
 
 Hans
 
 \starttext
 \typefile{test-aditya-TEST}
 \stoptext
 where
 test-aditya-TEST has
 TEST
 fails
 with
 
 ! Undefined control sequence.
 argument \filepath

bah, i'll fis this asap (when i do the split)


-
   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
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile

2008-11-10 Thread Aditya Mahajan
On Mon, 10 Nov 2008, Hans Hagen wrote:

 bah, i'll fis this asap (when i do the split)

For me this is not urgent as there is a manual workaround.

\def\filepath{the current working directory}

Thanks,
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] typefile

2008-10-30 Thread Aditya Mahajan
Hi,

Something is wrong with \typefile in latest context in MKIV.

\starttext
\typefile{somefile}
\stoptext

(the file 'somefile' should exist)

gives

! Undefined control sequence.
argument \filepath

\pathplusfile #1#2-#1
   \f!pathseparator #2
\mktypefileverbatim ...rs.typefile(\readfilename
   )}
\dosometyping ...rt }{\typingparameter \c!stop }}}
   \stopverbatimcolor 
\stoppa...
\dotypefile ...else \dodotypefile [\v!file ][]{#3}
   \fi \fi
l.3 \typefile{somefile}


Also, in MKII, when the file does not exist, you get a warning message in 
the pdf output. In MKIV, there is no warning. Missing files are silently 
ignored.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


  1   2   >