Re: [NTG-context] Cloze Text (text with gaps)

2013-06-27 Thread Christian Prim
Thanks David

I think the first one is a very good idea. But I failed to give the
\underbar a color different to the one of the text. Can you help me please?

Thanks
Christian


2013/6/27 David Rogers davidandrewrog...@gmail.com

 Christian Prim christian.p...@gmx.ch writes:

  I wonder if I can typeset a cloze text using context. The gaps
 (__)
  must have a given length (say in cm or the length of a given word, given
  sentence) and must break at the end of a line.
 
  \hl[4] is nice but won't do the trick since it won't break. \fillinline
 and
  others fill the hole line, but I only want to fill a given size.
 
  Are there some ideas how to deal with it?
 
  Example:
 
  The name of the _ is _
  . And now it's time to go to bed.
  Some more text.


 I haven't tested these ideas...

 One possibility: type the answer in white, but give it a coloured
 \underbar. (You might need to type longer answers, or in a larger font
 size, to leave enough room for hand writing.)

 Another: use a \fillinline - you can define the length.

 --
 David

 ___
 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] Overriding pdfview

2013-06-27 Thread luigi scarso
On Thu, Jun 27, 2013 at 1:02 AM, Bill Meahan subscribed_li...@meahan.netwrote:

  On 6/26/2013 6:24 PM, Hans Hagen wrote:
  [snip].

 If there is one thing I have learned in developing software since 1965
 (not a typo), it is to never depend on *any *third-party application
 being present. If it is not part of the base system install, it probably
 won't be there. I've even met Unix systems without *make*. Requiring the
 user to use some flag or other seldom flies and results in many nastygrams
 and late-night phone calls. If you need it, include it.

 yes , this is how currently the standalone core  context --- and in the
end, also the texlive -- works, with the constrain that
it has to work with the same results on several different platforms.
This means that the viewer cannot be part of the core -- it's the same
situation of inkscape for svg.
But instead of give no support at all sometime is better to give some
support, if possibile -- for example if it's easy to install a pdf viewer
or inkscape.


-- 
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] Overriding pdfview

2013-06-27 Thread luigi scarso
On Thu, Jun 27, 2013 at 4:21 AM, hwit...@gmail.com wrote:


 I likewise find the Sumatr pdf viewer better.  Besides the benefits
 already mentioned, it also has the proper quality of being non-intrusive.
  Adobe readers are quite happy to bloat your memory and take control or
 otherwise intrude on your system's normal operations.

 I don't use Adobe's reader at all.

Adobe Reader/Acrobat is the reference: is you see and print a pdf with
Acrobat under Windows 8 you are on the right side.
Otherwise you are on the wrong side.
For javascript, if the pdf  works under Acrobat under Windows 8 it's ok,
otherwise no.

If Reader/Acrobat doesn't complain the question if the pdf is valid or not
is not important for and end user (ok, it's not true for pdf/a).

Until now I have found the sumatrapdf is (very) good, but it cannot be used
as reference.
-- 
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] Overriding pdfview

2013-06-27 Thread Hans Hagen

On 6/27/2013 9:35 AM, luigi scarso wrote:




On Thu, Jun 27, 2013 at 4:21 AM, hwit...@gmail.com
mailto:hwit...@gmail.com wrote:


I likewise find the Sumatr pdf viewer better.  Besides the benefits
already mentioned, it also has the proper quality of being
non-intrusive.  Adobe readers are quite happy to bloat your memory
and take control or otherwise intrude on your system's normal
operations.

I don't use Adobe's reader at all.

Adobe Reader/Acrobat is the reference: is you see and print a pdf with
Acrobat under Windows 8 you are on the right side.
Otherwise you are on the wrong side.
For javascript, if the pdf  works under Acrobat under Windows 8 it's ok,
otherwise no.

If Reader/Acrobat doesn't complain the question if the pdf is valid or
not is not important for and end user (ok, it's not true for pdf/a).


indeed, it's the final reference


Until now I have found the sumatrapdf is (very) good, but it cannot be
used as reference.


but okay and convenient for edit/view cycles (my second choice is 
okular, also available for windows)


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
___


[NTG-context] [fontloader] cached fonts have invalid tounicode values

2013-06-27 Thread Philipp Gesang
Hi Hans,

this has been reported by Dohyun Kim [1]: the generic fontloader
(not Context) serializes some tounicode values as Lua numbers,
not strings. When re-reading the cache file the values lose all
leading zeros, so they are no longer well-formed UTF-16BE.

...
  [tounicode]={
   [2329]=E001,
...
   [2384]=0063006B,   -- -- correct
   [2385]=00630068, -- -- invalid
   [2386]=00740074,
   [2387]=00630074,
   [2388]=017F0069,
...

Best regards,
Philipp

[1] https://github.com/lualatex/luaotfload/issues/102
(Kim’s example works with luatex-plain if you comment out the
``\input luaotfload.sty`` line.)



-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgp7GnelUVpi2.pgp
Description: PGP signature
___
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] Overriding pdfview

2013-06-27 Thread Sietse Brouwer
Instead of choosing our own default PDF viewer, we should probably
invoke the user's default PDF viewer. Every OS has a command-line
program to open a file with the system default program:

On OS X:
open myfile.pdf

On Windows:
start myfile.pdf

On Linux, there separate programmes for KDE, new gnome and old gnome,
and desktop-agnostic:
kde-open myfile.pdf || gvfs-open myfile.pdf || gnome-open myfile.pdf
|| xdg-open myfile.pdf

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] Overriding pdfview

2013-06-27 Thread Mica Semrick
 On Linux, there separate programmes for KDE, new gnome and old gnome,
and desktop-agnostic:
kde-open myfile.pdf || gvfs-open myfile.pdf || gnome-open myfile.pdf
|| xdg-open myfile.pdf

On my linux mint/debian boxes, xdg-open works fine across MATE, XFCE, and
KDE.


On Thu, Jun 27, 2013 at 8:15 AM, Sietse Brouwer sbbrou...@gmail.com wrote:

 Instead of choosing our own default PDF viewer, we should probably
 invoke the user's default PDF viewer. Every OS has a command-line
 program to open a file with the system default program:

 On OS X:
 open myfile.pdf

 On Windows:
 start myfile.pdf

 On Linux, there separate programmes for KDE, new gnome and old gnome,
 and desktop-agnostic:
 kde-open myfile.pdf || gvfs-open myfile.pdf || gnome-open myfile.pdf
 || xdg-open myfile.pdf

 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

 ___

___
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] Overriding pdfview

2013-06-27 Thread Aditya Mahajan

On Thu, 27 Jun 2013, Sietse Brouwer wrote:


Instead of choosing our own default PDF viewer, we should probably
invoke the user's default PDF viewer. Every OS has a command-line
program to open a file with the system default program:

On OS X:
open myfile.pdf

On Windows:
start myfile.pdf

On Linux, there separate programmes for KDE, new gnome and old gnome,
and desktop-agnostic:
kde-open myfile.pdf || gvfs-open myfile.pdf || gnome-open myfile.pdf
|| xdg-open myfile.pdf


Or, simple read the mailcap preference  or use a program such as 
run-mailcap or see which choose the viewer based on mailcap preferences.


I am half joking here; don't go down this route. One can simply leave it 
to the user to write a wrapper to context that calls the PDF viewer when 
context is finished.


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] Overriding pdfview

2013-06-27 Thread Hans Hagen

On 6/27/2013 5:15 PM, Sietse Brouwer wrote:

Instead of choosing our own default PDF viewer, we should probably
invoke the user's default PDF viewer. Every OS has a command-line
program to open a file with the system default program:

On OS X:
open myfile.pdf

On Windows:
start myfile.pdf

On Linux, there separate programmes for KDE, new gnome and old gnome,
and desktop-agnostic:
kde-open myfile.pdf || gvfs-open myfile.pdf || gnome-open myfile.pdf
|| xdg-open myfile.pdf


but there is no

stopmyfile.pdf
restart myfile.pdf

-
  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] Cloze Text (text with gaps)

2013-06-27 Thread Wolfgang Schuster

Am 24.06.2013 um 16:36 schrieb Christian Prim christian.p...@gmx.ch:

 Hi list
 
 I wonder if I can typeset a cloze text using context. The gaps (__) 
 must have a given length (say in cm or the length of a given word, given 
 sentence) and must break at the end of a line.
 
 \hl[4] is nice but won't do the trick since it won't break. \fillinline and 
 others fill the hole line, but I only want to fill a given size.
 
 Are there some ideas how to deal with it?

\def\TextGap[#1]%
  {\scratchdimen#1\relax
   \divide\scratchdimen\plusten
   \dorecurse\plusten
 {\vrule width \scratchdimen height \linewidth\relax
  \ifnum\recurselevel10 \hskip\zeropoint\relax \fi}}

\starttext
a \TextGap[4cm] b \TextGap[4cm] c \TextGap[4cm] d \TextGap[4cm] e
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Cloze Text (text with gaps)

2013-06-27 Thread Jaroslav Hajtmar

Hello Wolfgang.
Here is example of other using of your TextGap.
There is a problem in some lines? Why linewidth is change?

Thanx Jaroslav Hajtmar


\def\TextGap[#1]%
  {\scratchdimen#1\relax
   \divide\scratchdimen\plusten
   \dorecurse\plusten
 {\vrule width \scratchdimen height \linewidth\relax
  \ifnum\recurselevel10 \hskip\zeropoint\relax \fi}}

\def\textgap#1{\setbox0=\hbox{#1}%
\TextGap[\the\wd0]%
}



\starttext
a \TextGap[4cm] b \TextGap[4cm] c \TextGap[4cm] d \TextGap[4cm] e


My words: \textgap{My words}. Why is line very thick here?

Here is an sentence: \textgap{Here is an sentence} -- linewidth is OK here.

Here is an sentence: \textgap{Here is an sentence}. And why is problem 
here again?



\stoptext


Dne 27.6.2013 20:23, Wolfgang Schuster napsal(a):

\def\TextGap[#1]%
   {\scratchdimen#1\relax
\divide\scratchdimen\plusten
\dorecurse\plusten
  {\vrule width \scratchdimen height \linewidth\relax
   \ifnum\recurselevel10 \hskip\zeropoint\relax \fi}}

\starttext
a \TextGap[4cm] b \TextGap[4cm] c \TextGap[4cm] d \TextGap[4cm] e
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Cloze Text (text with gaps)

2013-06-27 Thread Wolfgang Schuster

Am 27.06.2013 um 20:53 schrieb Jaroslav Hajtmar hajt...@gyza.cz:

 Hello Wolfgang.
 Here is example of other using of your TextGap.
 There is a problem in some lines? Why linewidth is change?

Add “width 0pt” to the \vrule arguments. See also my definition of \WordGap.

\def\TextGap[#1]%
 {\scratchdimen#1\relax
  \divide\scratchdimen\plusten
  \dorecurse\plusten
{\vrule width \scratchdimen height \linewidth depth \zeropoint\relax
 \ifnum\recurselevel10 \hskip\zeropoint\relax \fi}}

\def\WordGap
  {\dowithnextbox{\TextGap[\nextboxwd]}\hbox}

\starttext

a \TextGap[4cm] b \TextGap[4cm] c \TextGap[4cm] d \TextGap[4cm] e

My words: \WordGap{My words}. Why is line very thick here?

Here is an sentence: \WordGap{Here is an sentence} -- linewidth is OK here.

Here is an sentence: \WordGap{Here is an sentence}. And why is problem here 
again?

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


Re: [NTG-context] Overriding pdfview

2013-06-27 Thread Arthur Reutenauer
 I am half joking here; don't go down this route.

  Why?  Users can override defaults, but most don't (and most certainly
not by writing additional code themselves, except for a tiny minority).
Why shouldn't reasonable defaults be provided?

Arthur
___
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] Overriding pdfview

2013-06-27 Thread Pavneet Arora
Exactly what I was thinking:

pavneet@darjiling:~$ more .mailcap
application/pdf; evince %s

I like evince because it also doesn't lock the PDF file, and 
auto-refreshes the view when updated.  It also has/can have a space 
efficient toolbar structure, which works great on my little netbook: 
Asus EEE 701 running Bodhi Linux off an SD card---my favourite writing 
environment by far.  So no wrapper needed except for first invocation 
which puts evince in the background.

My own work environment is a bit like an old-school IDE:

- tmux with side-by-side panes for vim editing and document compilation.
- different tmux windows for different documents being worked on.
- evince on one of the adjacent workspace to preview.  
  CTRLALTRIGHT|LEFT to quickly switch back and forth from 
  edit-compile to test workspaces.

 Date: Thu, 27 Jun 2013 13:25:06 -0400 (EDT)
 From: Aditya Mahajan adit...@umich.edu
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] Overriding pdfview
 Message-ID:
   alpine.LNX.2.02.1306271320220.24744@ybpnyubfg.ybpnyqbznva
 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
 
 Or, simple read the mailcap preference  or use a program such as 
 run-mailcap or see which choose the viewer based on mailcap 
 preferences.
 
 I am half joking here; don't go down this route. One can simply leave it 
 to the user to write a wrapper to context that calls the PDF viewer when 
 context is finished.
 
 Aditya

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
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] [fontloader] cached fonts have invalid tounicode values

2013-06-27 Thread Philipp Gesang
···date: 2013-06-27, Thursday···from: Philipp Gesang···

 Hi Hans,
 
 this has been reported by Dohyun Kim [1]: the generic fontloader
 (not Context) serializes some tounicode values as Lua numbers,
 not strings. When re-reading the cache file the values lose all
 leading zeros, so they are no longer well-formed UTF-16BE.
 
 ...
   [tounicode]={
[2329]=E001,
 ...
[2384]=0063006B,   -- -- correct
[2385]=00630068, -- -- invalid
[2386]=00740074,
[2387]=00630074,
[2388]=017F0069,
 ...
 
 Best regards,
 Philipp
 
 [1] https://github.com/lualatex/luaotfload/issues/102
 (Kim’s example works with luatex-plain if you comment out the
 ``\input luaotfload.sty`` line.)

I’ve traced it to luatex-basics-gen.lua. The cache is compiled
with the spec “{reduce = true}” which causes values to be
analyzed and “tonumber()”ed. If I unset the reduce flag, the
values turn out correct in the PDF.

Best,
Philipp




pgp495oNB_xPk.pgp
Description: PGP signature
___
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] french character spacing in footnotes

2013-06-27 Thread Alan Bowen
The following code has the right character spacing spacing in the body text
but not in the footnote.

\startcomponent Test
\mainlanguage[fr]
\setcharacterspacing[frenchpunctuation]
Le début est lacunaire; le début est lacunaire: le début est lacunaire.
Est-ce que le début est lacunaire? \quote{Il n’y a pas de titre final}?%
\footnote{Le début est lacunaire; le début est lacunaire: le début est
lacunaire. Est-ce que le début est lacunaire? \quote{Il n’y a pas de titre
final}?}

\stopcomponent

I am running the latest standalone.

Any suggestions?

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

Re: [NTG-context] Overriding pdfview

2013-06-27 Thread luigi scarso
On Thu, Jun 27, 2013 at 9:43 PM, Pavneet Arora pavneet_ar...@waroc.comwrote:

 Exactly what I was thinking:

 pavneet@darjiling:~$ more .mailcap
 application/pdf; evince %s

 I like evince because it also doesn't lock the PDF file, and
 auto-refreshes the view when updated.  It also has/can have a space
 efficient toolbar structure, which works great on my little netbook:
 Asus EEE 701 running Bodhi Linux off an SD card---my favourite writing
 environment by far.  So no wrapper needed except for first invocation
 which puts evince in the background.

 My own work environment is a bit like an old-school IDE:

 - tmux with side-by-side panes for vim editing and document compilation.
 - different tmux windows for different documents being worked on.
 - evince on one of the adjacent workspace to preview.
   CTRLALTRIGHT|LEFT to quickly switch back and forth from
   edit-compile to test workspaces.

 Unfortunately my version of evince doesn't always print correctly  a pdf
made by context mkiv

\starttext
$3v$ \par

$3\omega$

\stoptext

When I do print-preview, the math is not shown, and nothing is printed.

(okular is ok)

--
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] Overriding pdfview

2013-06-27 Thread Sietse Brouwer
A summary of things people have said in this thread. NB: everything is
paraphrased, so blame me if anything seems overly terse in tone.



Bill doesn't have or want SumatraPDF

Hans made SumatraPDF the default because it has lots of nice
properties that Acrobat doesn't have

Luigi thinks maybe mupdf is the right candidate (evince and okular are
OK, xpdf doesn't work under 64bit, linux acrobat is old)

Siep uses qpdfview, perhaps? Suggests it

Bill uses Calibre, personally (and he thinks it would also be  bad if
ConTeXt assumed everyone uses Calibre)

Bill likes the idea of bundling a PDF reader with ConTeXt

Hwitloc doesn't use Acrobat at all

Luigi mentions that Adobe Reader is the reference PDF viewer -- what
doesn't work in Adobe Reader might as well not work at all.

Hans agrees Reader is the reference, but prefers sumatrapdf or okular
for edit/view cycles

Sietse thinks ConTeXt should start by using the user's default pdf
viewer --- via open / start / xdg-open. It is then up to the user to
override this setting for ConTeXt.

Hans thinks this has a problem [on Windows?]: there is start
myfile.pdf, but no stop myfile.pdf. Which doesn't play well with Adobe
Reader, which cannot handle open PDFs being updated.

Aditya proposes -- in jest -- to read the user's mailcap file (on
Linux, presumably).

Pavneet thinks there is merit in this 'read the user's mailcap' jest.
Also, he likes evince.

Luigi has found Evince sometimes has printing problems with PDFs make by MkIV



I'll repeat what I said, though: the PDF reader that is (a) most
likely to be installed, and (b) is most logical / least surprising to
the user, is: the user's own default PDF viewer. Adobe Reader may be
clunky for this purpose, but IMO the user's choice should nonetheless
be respected.

It is easier, and less aggravating, to look up 'what is a better PDF
viewer than Adobe' than 'why does ConTeXt not respect my default PDF
viewer setting?'

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] Overriding pdfview

2013-06-27 Thread Gareth Jones
 I'll repeat what I said, though: the PDF reader that is (a) most
 likely to be installed, and (b) is most logical / least surprising to
 the user, is: the user's own default PDF viewer.

For what it’s worth, as an end user, I agree.
___
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] [fontloader] cached fonts have invalid tounicode values

2013-06-27 Thread Akira Kakuto

Hi Philipp,


I’ve traced it to luatex-basics-gen.lua.


luaotfload-basics-gen.lua and luaotfload-merged.lua?
Thank you very much.

Akira

___
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] Overriding pdfview

2013-06-27 Thread Arthur Reutenauer
 Unfortunately my version of evince doesn't always print correctly  a pdf
 made by context mkiv
 
 \starttext
 $3v$ \par
 
 $3\omega$
 
 \stoptext
 
 When I do print-preview, the math is not shown, and nothing is printed.

  As has already been mentioned, this could simply be a font issue, or a
silly mistake with the way some programs handle Unicode characters with
codes over 65536.

Arthur
___
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] french character spacing in footnotes

2013-06-27 Thread Wolfgang Schuster

Am 28.06.2013 um 00:27 schrieb Alan Bowen bowenala...@gmail.com:

 The following code has the right character spacing spacing in the body text 
 but not in the footnote.
 
 \startcomponent Test
 \mainlanguage[fr]
 \setcharacterspacing[frenchpunctuation]
 Le début est lacunaire; le début est lacunaire: le début est lacunaire. 
 Est-ce que le début est lacunaire? \quote{Il n’y a pas de titre final}?%
 \footnote{Le début est lacunaire; le début est lacunaire: le début est 
 lacunaire. Est-ce que le début est lacunaire? \quote{Il n’y a pas de titre 
 final}?}
 
 \stopcomponent
 
 I am running the latest standalone.
 
 Any suggestions?

ConTeXt resets a few features for the notes and you have to enable them for the 
notes block.
Add the following lines to your document and it should work.

\startsetups[footnote:french]
  \setcharacterspacing[frenchpunctuation]
\stopsetups

\setupnote[footnote][setups=footnote:french]

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] french character spacing in footnotes

2013-06-27 Thread Peter Münster
On Fri, Jun 28 2013, Wolfgang Schuster wrote:

 ConTeXt resets a few features for the notes and you have to enable them for 
 the notes block.
 Add the following lines to your document and it should work.

 \startsetups[footnote:french]
   \setcharacterspacing[frenchpunctuation]
 \stopsetups

 \setupnote[footnote][setups=footnote:french]

See also: http://tracker.luatex.org/view.php?id=428#c1092

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