Re: [NTG-context] [t-rst] inclusion into Minimals, i. e. installation using `./first-setup.sh --extras='t-rst'`

2011-05-08 Thread Taco Hoekwater

On 05/07/2011 05:36 PM, Mojca Miklavec wrote:

On Fri, May 6, 2011 at 21:08, Marco wrote:

On 2011-05-06 Mojca Miklavec wrote:


Looks like context needs a package manager.


[...] but I admit that I miss some GUI (but then again I
have no idea how to write a portable GUI).


There are several possibilities,  GTK+ is well documented,
ported to  many platforms and operating  systems (However,
maybe not to all, ConTeXt supports)  and has Lua bindings.


If you can prepare a very simple example and explain how to compile it
on windows, mac and windows ...


Installing the *right* GTK+ version on macosx is quite a challenge.
The texlive way of perl/Tk is much more portable, even though it
re-introduces perl to the mix.

Another option could be to use a http browser, using Hans' mtxrun web
server and client? That is pure lua, but of course it is not available
until after installation of context.

Best wishes,
Taco

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

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


Re: [NTG-context] Too much spacing in math mode between 'f' and 'l' (MkIV only)

2011-05-08 Thread Taco Hoekwater

On 05/07/2011 01:26 PM, Hans Hagen wrote:


Hans and Taco, do you have any idea? Why is the inter-letter spacing
different in MkII and MkIV.


In math-vfu we have:

if italic then
width = width + italic
end

And that is for a reason. I might be a left over from when the math
engine was redone. So I need input from Taco.


I suspect that was from an earlier, bad interpretation of the opentype
math specification and that it can go away. But: much safer is to have
a big test file first using various (variable|opname) + other char
combinations.

Best wishes,

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

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


Re: [NTG-context] mtxrun fails after update to ubuntu 11.04

2011-05-08 Thread Taco Hoekwater

On 05/07/2011 02:49 PM, S Barmeier wrote:

Hi,

After updating my system to ubuntu 11.04, all sorts of access
permissions seem to have changed. In particular, when compiling any
ConTeXt document, I get

oad otf  loading:
/usr/local/texlive/2010/texmf-dist/fonts/opentype/public/lm/lmmono8-regular.otf
(hash: lmmono8-regular)
load otf  font loaded okay
load otf  file size: 66268
load otf  enhancing ...
load otf  saving in cache:
/usr/local/texlive/2010/texmf-dist/fonts/opentype/public/lm/lmmono8-regular.otf
report | lua: compiling
/usr/local/texlive/2010/texmf-cache/luatex-cache/context/7625073666844883aa0723352de861b9/fonts/otf/lmmono8-regular.tma
into
/usr/local/texlive/2010/texmf-cache/luatex-cache/context/7625073666844883aa0723352de861b9/fonts/otf/lmmono8-regular.tmctexluac:
cannot open
/usr/local/texlive/2010/texmf-cache/luatex-cache/context/7625073666844883aa0723352de861b9/fonts/otf/lmmono8-regular.tma:
No such file or directory
luac: cannot open
/usr/local/texlive/2010/texmf-cache/luatex-cache/context/7625073666844883aa0723352de861b9/fonts/otf/lmmono8-regular.tma:
No such file or directory

Trying to mtxrun --script fonts --reload, it tells me

MTXrun | resolvers: unable to save 'files' in
'/usr/local/texlive/2010/texmf-cache/luatex-cache/context/7625073666844883aa0723352de861b9/trees/1240e363db2f4c53de58379d2b0c6f6b.lua'
(access error)
MTXrun | fontnames: unable to access database cache
MTXrun | fontnames: accessing the data table failed

and similar errors. I've tried sudo mtxrun [...], but then the command
is not found.

I hope the problem will be resolved by changing folder permissions, but
I'm not sure which folders are affected and which I should refrain from
changing.


You can change permissions of

  /usr/local/texlive/2010/texmf-cache/luatex-cache/context

and everything below it, but a nicer solution is to set TEXMFCACHE.

There are various options, but the easiest is

  set TEXMFCACHE=~/texmf-cache

in your shell's startup script (you have to create the path manually at 
first).


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

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


Re: [NTG-context] mtxrun fails after update to ubuntu 11.04

2011-05-08 Thread S Barmeier
Thank you for your reply!

mtxrun, luatools and context all --generate now, but trying to

mtxrun --script fonts --list --all

says it's missing a metatable (whatever that is):

[...]
MTXrun | fontnames: identifying tree font files with suffix afm
MTXrun | fontnames: scanning /usr/local/texlive/2010/texmf for afm files
MTXrun | fontnames: 1691 entries found, 8 afm files checked, 8 okay
MTXrun | fontnames: scanning /usr/local/texlive/2010/texmf-dist for afm
files
MTXrun | fontnames: 81835 entries found, 2237 afm files checked, 2237 okay
MTXrun | fontnames: identifying tree font files with suffix AFM
MTXrun | fontnames: scanning /usr/local/texlive/2010/texmf for AFM files
MTXrun | fontnames: 1691 entries found, 0 AFM files checked, 0 okay
MTXrun | fontnames: scanning /usr/local/texlive/2010/texmf-dist for AFM
files
MTXrun | fontnames: 81835 entries found, 0 AFM files checked, 0 okay
MTXrun | fontnames: 2245 tree files identified, 139 skipped, 100
duplicates, 2106 hash entries added, runtime 2.310 seconds
MTXrun | fontnames: identifying system font files with suffix otf
MTXrun | fontnames: adding path from OSFONTDIR: /usr/share/fonts
MTXrun | fontnames: adding path from OSFONTDIR: /usr/local/share/fonts
MTXrun | fontnames: adding path from OSFONTDIR: /usr/share/fonts
MTXrun | fontnames: adding path from OSFONTDIR: /usr/local/share/fonts
MTXrun | fontnames: globbing path
/usr/share/fonts/**.otf/usr/local/texlive/2010/bin/x86_64-linux/mtxrun:2625:
bad argument #1 to '(for generator)' (directory metatable expected, got nil)

Again, many thanks.
Severin

P.S.: Just out of curiosity: I was under the impression that the best
way to stay updated with both general TeX and ConTeXt was to run texlive
2010 and point your tlmgr to the tlcontrib repository. luatools gets
updated frequently, but the ConTeXt version is from July 2010.

Is there any savvy way to update to a newer release of ConTeXt without
meddling too much with the existing texlive installation?

On 05/08/2011 08:26 PM, Taco Hoekwater wrote:
 On 05/07/2011 02:49 PM, S Barmeier wrote:
 Hi,

 After updating my system to ubuntu 11.04, all sorts of access
 permissions seem to have changed. In particular, when compiling any
 ConTeXt document, I get

...

 Trying to mtxrun --script fonts --reload, it tells me

 MTXrun | resolvers: unable to save 'files' in
 '/usr/local/texlive/2010/texmf-cache/luatex-cache/context/7625073666844883aa0723352de861b9/trees/1240e363db2f4c53de58379d2b0c6f6b.lua'

 (access error)
 MTXrun | fontnames: unable to access database cache
 MTXrun | fontnames: accessing the data table failed

 and similar errors. I've tried sudo mtxrun [...], but then the command
 is not found.

 I hope the problem will be resolved by changing folder permissions, but
 I'm not sure which folders are affected and which I should refrain from
 changing.
 
 You can change permissions of
 
   /usr/local/texlive/2010/texmf-cache/luatex-cache/context
 
 and everything below it, but a nicer solution is to set TEXMFCACHE.
 
 There are various options, but the easiest is
 
   set TEXMFCACHE=~/texmf-cache
 
 in your shell's startup script (you have to create the path manually at
 first).
 
 Best wishes,
 Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Annotation and background color

2011-05-08 Thread Otared Kavian
On 7 mai 2011, at 17:24, Aditya Mahajan wrote:
 […]
 Have you seen my (old) MAPS article on theorems:
 http://www.ntg.nl/maps/36/09.pdf
 
 That gives an example of how to get a list of all enumerations. I haven't 
 tested that with MkIV, but that example uses just lists.

Hi Aditya,

Thanks fo rthe link: it's a pity I didn't know that article. It is very clear 
and useful, and if I knew this before I would have added a reference to it on 
the wiki,
http://wiki.contextgarden.net/proclaim

Just a remark about putting the list of proclaims at some place: in mkii, as 
you say in your article, the following
\placelist[enumeration:all][width=6em,criterium=all]
gives a list of all the titles and page numbers of proclaims. However it does 
not work with mkiv, I guess because the command has been slightly changed for 
placing lists: by any chance do you know what would be the correct invocation?

Best regards: OK

___
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] Annotation and background color

2011-05-08 Thread Otared Kavian
On 7 mai 2011, at 17:29, Wolfgang Schuster wrote:

  […]
 \defineenumeration[proclaim]
   [text=,
   style=slanted,
   title=yes,
   titleleft=,
   titleright=,
   location=serried,
   width=fit,
   right={.~},
   way=bysection,
   prefix=yes,
   prefixsegments=section]
 
 Wolfgang

Hi Wolfgang,

Thank you for your insight: indeed by saying
way=bysection,
prefix=yes,
prefixsegments=section
one gets the correct behavior both in mkii and mkiv (so I changed my definition 
of proclaim).

Just out of curioisty, though it might be useful in some circumstances, how 
would you do in order to have
ChapterNumber.SectionNumber.ProclaimNumber
instead of just SectionNumber.ProclaimNumber, if at all possible? 

Best regards and many thanks: OK___
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] Annotation and background color

2011-05-08 Thread Otared Kavian

On 7 mai 2011, at 18:32, Wolfgang Schuster wrote:

 Am 07.05.2011 um 16:37 schrieb Otared Kavian:
 
 Hi Wolfgang,
 
 Many thanks for your explanations.
 If I may ask a further question, I would like to know at which level one can 
 control whether the first argument of the quotation in the example
  \MyQuotation{Wolfgang Schuster}{The annotation module is wonderful!}
 is surrounded or not by parentheses?
 
 The header (First Argument of the command) consists of
 
 TEXT (“text”-key)
 NUMBER   (incremented by context but you can enable/disable it with 
 “number=yes|no”)
 LEFT SYMBOL  (“left”-key, default: “(”)
 RIGHT SYMBOL (“right”-key, default “)”)
 TITLE(“title”-key or optional argument of the command/environment)

Hi,

Thanks to your explanations I understood the meanings of each of the keys, and 
the principles of using the annotation environment. 
What would be the key to use in order to have (for instance) a colon « : » 
after the number?

Best regards: OK



 I am asking this because I defined for my own use a macro which replaces the 
 \proclaim command of Plain TeX (which disappeared in ConTeXt): I am thinking 
 of switching to use the annotation module, since maybe with that it should 
 be possible to have a list of all anotations of a certain type (for instance 
 list of all theorems, all lemmas, etc) with the page at which they appear. 
 Also with the annotations environment it seems that one can have more fancy 
 layouts for proclaims.
 
 The annotation module doesn’t have so many options as enumerations and it is 
 no replacement for them. What the module does is that it generates a 
 environment (like \definestartstop) where you have access to the content, 
 with your own command you can format the content in any way you like.
 
 The advantage of this method is that you can separate content and layout of 
 certain texts which isn’t possible with build in methods, e.g. a \inmargin 
 text will always appear in the margin and when you want the text now as quote 
 you have to change the command from \inmargin to \quotation but with the 
 annotation module the command in your document won’t change because the 
 switch from \inmargin to \quotation happens in the preamble with the setup of 
 the environment.
 
 \usemodule[annotation]
 
 \define[2]\AnnotationCommand{\quotation{#2}}
 
 \setupannotation[alternative=inmargin]
 %\setupannotation[alternative=command,command=\AnnotationCommand]
 
 \starttext
 
 … \startannotation Hello\stopannotation …
 
 … \startannotation Hello\stopannotation …
 
 \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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




___
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] [t-rst] inclusion into Minimals, i. e. installation using `./first-setup.sh --extras='t-rst'`

2011-05-08 Thread Marco
On 2011-05-07 Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:

 On Fri, May 6, 2011 at 21:08, Marco wrote:

  On 2011-05-06 Mojca Miklavec wrote:
 
   Looks like context needs a package manager.
 
  [...]  but I  admit that  I miss  some GUI  (but then
  again I have no idea how to write a portable GUI).
 
  There   are  several   possibilities,  GTK+   is  well
  documented,  ported to  many  platforms and  operating
  systems (However, maybe not  to all, ConTeXt supports)
  and has Lua bindings.

 If you can prepare a very simple example and explain how
 to compile it on windows, mac and windows ...

A simple example  of a GUI is attached and  may serve as a
starting  point (questions  to  the  example maybe  better
off-list, since it's not at all ConTeXt related).

I don't  know which  packages are  required on  windows or
macos. On  linux and solaris  it is sufficient  to install
GTK and the lua-gtk bindings.


Marco
#! /usr/bin/env lua

Mainwin = {}
Mainwin.__index = Mainwin

List = {
'Just',
'some',
'random',
'stuff',
'for',
'demonstration',
}

local function UpdateProgressBar(bar)
local oldFrac = gtk.progress_bar_get_fraction(bar)
local frac= 1/#List

if (oldFrac + frac = 1)
then
frac = 0
oldFrac = 1
gtk.main_quit()
end

gtk.progress_bar_set_fraction(bar, oldFrac + frac)
end

function Progressbar()
local progress = gtk.progress_bar_new()
gtk.progress_bar_set_text(progress, Processing…)
gtk.progress_bar_set_fraction(progress, 0)
return progress
end

function Mainwin.new()
local self = {}
setmetatable(self, Mainwin)

-- Set main window size, title, …
self.w = gtk.window_new(gtk.WINDOW_TOPLEVEL)
self.w:set_title(My Program)
self.w:connect('destroy', gtk.main_quit)
self.w:set_default_size(400, 400)

-- Vertical box
local vbox = gtk.vbox_new(false, 10)
vbox:set_border_width(5)
self.w:add(vbox)

-- Tool bar
local toolbar = gtk.toolbar_new()
vbox:pack_start(toolbar, false, true, 0)

-- Tool bar: items
local items = {
{ gtk-go-forward,  StartProcessing },
{ SEPARATOR, nil },
{ gtk-quit, gtk.main_quit } }

-- Tool bar: add items to tool bar
for _, item in pairs(items) do
local stock   = item[1]
local handler = item[2]
local button, id

if stock == 'SEPARATOR' then
button = gtk.separator_tool_item_new()
else
button = gtk.tool_button_new_from_stock(stock)
id = button:connect(clicked, handler, self)
end
toolbar:insert(button, -1)
end

-- Progress bar
progressbar = Progressbar()
vbox:pack_start(progressbar, false, true, 0)

-- Scroll window
local scrollwindow = gtk.scrolled_window_new(nil, nil)
vbox:pack_start(scrollwindow, true, true, 0)

-- Tree view
local treeview = gtk.tree_view_new()
scrollwindow:add(treeview)

-- create store
local store = gtk.tree_store_new(3,
glib.TYPE_INT,  -- [0] some ID
glib.TYPE_STRING,   -- [1] path / file name
glib.TYPE_STRING)   -- [2] Status
treeview:set_model(store)

-- column with text
local r, c
r = gtk.cell_renderer_text_new()

c = gtk.tree_view_column_new_with_attributes(File, r, text, 1, nil)
treeview:append_column(c)

c = gtk.tree_view_column_new_with_attributes(Status, r, text, 2, nil)
treeview:append_column(c)

-- add some items
local iter1 = gtk.new TreeIter

for i = 1, #List
do
store:append(iter1, nil)
store:set(iter1, 0, i, 1, List[i], -1)
end

self.w:show_all()
return self
end



function StartProcessing()
DoStartProcessing_c = gnome.closure(DoStartProcessing)
glib.timeout_add(200,
 DoStartProcessing_c,
 DoStartProcessing)
end

function DoStartProcessing()
UpdateProgressBar(progressbar)
return true
end


--
-- Main Program --
--

require gtk
mainwin = Mainwin.new()
gtk.main()
___
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] [t-rst] inclusion into Minimals, i. e. installation using `./first-setup.sh --extras='t-rst'`

2011-05-08 Thread Marco
On 2011-05-08 Taco Hoekwater t...@elvenkind.com wrote:

  There  are   several  possibilities,  GTK+   is  well
  documented,  ported to  many platforms  and operating
  systems (However, maybe not to all, ConTeXt supports)
  and has Lua bindings.
 
  If you can  prepare a very simple  example and explain
  how to compile it on windows, mac and windows ...

 Installing the *right* GTK+ version on macosx is quite a
 challenge.

I don't know, I never used macosx.

 The texlive way  of perl/Tk is much  more portable, even
 though it re-introduces perl to the mix.

I don't think it's a good  idea to introduce perl. The way
to go  is to get  rid of  the hotchpotch of  languages and
implement everything in lua, if  possible. If we prefer TK
over GTK why not use the lua Tk bindings?


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] [t-rst] inclusion into Minimals, i. e. installation using `./first-setup.sh --extras='t-rst'`

2011-05-08 Thread Arthur Reutenauer
 Another option could be to use a http browser, using Hans' mtxrun web
 server and client? That is pure lua, but of course it is not available
 until after installation of context.

  We could bootstrap the system by first downloading only the necessary
pieces, like is done for the Minimals.  It should only need half a dozen
files.  But all that needs to be actually developed, of course.

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] Too much spacing in math mode between 'f' and 'l' (MkIV only)

2011-05-08 Thread Hans Hagen

On 8-5-2011 1:22, Taco Hoekwater wrote:

On 05/07/2011 01:26 PM, Hans Hagen wrote:


Hans and Taco, do you have any idea? Why is the inter-letter spacing
different in MkII and MkIV.


In math-vfu we have:

if italic then
width = width + italic
end

And that is for a reason. I might be a left over from when the math
engine was redone. So I need input from Taco.


I suspect that was from an earlier, bad interpretation of the opentype
math specification and that it can go away. But: much safer is to have
a big test file first using various (variable|opname) + other char
combinations.


ok, for now i'll just comment that code

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] [t-rst] inclusion into Minimals, i. e. installation using `./first-setup.sh --extras='t-rst'`

2011-05-08 Thread Hans Hagen

On 8-5-2011 4:56, Arthur Reutenauer wrote:

Another option could be to use a http browser, using Hans' mtxrun web
server and client? That is pure lua, but of course it is not available
until after installation of context.


   We could bootstrap the system by first downloading only the necessary
pieces, like is done for the Minimals.  It should only need half a dozen
files.  But all that needs to be actually developed, of course.


can someone remind me what problem we're trying to solve here?

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] Annotation and background color

2011-05-08 Thread Wolfgang Schuster

Am 08.05.2011 um 15:39 schrieb Otared Kavian:

 What would be the key to use in order to have (for instance) a colon « : » 
 after the number?

There is a stopper key but the argument is placed after the right symbol.

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] Some Ethiopic examples (hyphenation/breaking) in ConTeXt

2011-05-08 Thread Hans Hagen

On 7-5-2011 4:19, Mojca Miklavec wrote:


In fact there are two different writing paradigms. One uses word
separator and another one uses spaces. My guess that the second one
might have arised in the modern era due to poor computer suppor. (If
they are using spaces, they have at least a chance that words break in
text editors and web browsers, but I may be wrong. Wikipedia uses
spaces for example, but all old books use separators.)


So what are the rules for mixing languages/scripts then?

[ethi] [latn] [ethi]


(My roommate was just robbed/scammed in Ethiopia last week; no wonder
that even spam filters put the mails in the same category as Nigerian
scams :)


I recently installed language blocking to the routers ... at some point 
I think it will become 'block all' unless 'a few countries'.


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] Some Ethiopic examples (hyphenation/breaking) in ConTeXt

2011-05-08 Thread Arthur Reutenauer
 So what are the rules for mixing languages/scripts then?

  I'm not sure there are any rules.  There might be typographical traditions, 
though.

 I recently installed language blocking to the routers ... at some point I 
 think it will become 'block all' unless 'a few countries'.

  There are scammers in every country, unfortunately.  In London there is a 
well-known scam when you are looking for a flat to rent; adverts that look like 
genuine offers at first turn out to be just a trick by scammers to rip you off 
of your money.  I made contact with some of them when I first moved here, but 
stopped talking to them very soon because what they told me didn't make any 
sense.  I feel uncomfortable when things don't make sense :-)

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] [t-rst] inclusion into Minimals, i. e. installation using `./first-setup.sh --extras='t-rst'`

2011-05-08 Thread Mojca Miklavec
On Sun, May 8, 2011 at 19:36, Hans Hagen pra...@wxs.nl wrote:
 On 8-5-2011 4:56, Arthur Reutenauer wrote:

 Another option could be to use a http browser, using Hans' mtxrun web
 server and client? That is pure lua, but of course it is not available
 until after installation of context.

   We could bootstrap the system by first downloading only the necessary
 pieces, like is done for the Minimals.  It should only need half a dozen
 files.  But all that needs to be actually developed, of course.

 can someone remind me what problem we're trying to solve here?

Having a GUI installer for the minimals (to make it more user-friendly
and enable the user to choose what modules and fonts to install).

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

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

Re: [NTG-context] [t-rst] inclusion into Minimals, i. e. installation using `./first-setup.sh --extras='t-rst'`

2011-05-08 Thread Philipp Gesang
On 2011-05-07 17:45:47, Mojca Miklavec wrote:
 On Sat, May 7, 2011 at 12:19, Philipp Gesang wrote:
 
   2. Until we do something about it, it would be very very desirable to
   put it to modules.contextgarden.net (I know that it is painful).
  
   If it’s possible now I’d try it asap.
 
  Did you have any problems? In case you did, please contact Patrick.
 
  I did have problems about a year ago. Probably tomorrow---
  depending on the weather---I’ll add an xml interface file and
  comment the module source. After that I’ll give the upload
  another shot.
 
 I keep my finders crossed for you. :)

Looks like it worked now: http://modules.contextgarden.net/rst

Have fun,
Philipp

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


pgpAWbn6VxIdy.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] [t-rst] inclusion into Minimals, i. e. installation using `./first-setup.sh --extras='t-rst'`

2011-05-08 Thread Pontus Lurcock
On Sun 08 May 2011, Marco wrote:

 If we prefer TK over GTK why not use the lua Tk bindings?

When I saw this discussion starting I googled the Lua Tk bindings, and
it turned out [1] that they apparently haven't been updated since
1998. A shame, since Tk is usually a good bet for easy cross-platform
GUIs.

[1] http://www.tecgraf.puc-rio.br/~celes/tklua/

Pont
___
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] mtxrun fails after update to ubuntu 11.04

2011-05-08 Thread Pontus Lurcock
On Sun 08 May 2011, S Barmeier wrote:

 Is there any savvy way to update to a newer release of ConTeXt
 without meddling too much with the existing texlive installation?

The best way is to install the minimals; it's a complete stand-alone
ConTeXt system that can go anywhere (including your home directory),
so you don't risk any complex interactions with existing TeX
installations.

Pont
___
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] GUI for minimals WAS: Re: [t-rst] inclusion into Minimals, i. e. installation using `./first-setup.sh --extras='t-rst'`

2011-05-08 Thread Marco
On 2011-05-09 Pontus Lurcock p...@talvi.net wrote:

 On Sun 08 May 2011, Marco wrote:

  If  we prefer  TK  over GTK  why not  use  the lua  Tk
  bindings?

 When I saw this discussion starting I googled the Lua Tk
 bindings,  and it  turned out  [1] that  they apparently
 haven't been updated since 1998.

What about  ltcltk [1],  it's from  2010? However  I never
used  it,  I just  did  some  simple  GUIs with  the  GTK+
binding.

[1] http://www.tset.de/ltcltk/

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] [t-rst] inclusion into Minimals, i. e. installation using `./first-setup.sh --extras='t-rst'`

2011-05-08 Thread Marco
On 2011-05-08 Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:

 On Sun, May 8, 2011 at 19:36, Hans Hagen pra...@wxs.nl
 wrote:

  On 8-5-2011 4:56, Arthur Reutenauer wrote:
 
  Another option could be to use a http browser, using
  Hans'  mtxrun web  server and  client? That  is pure
  lua, but of  course it is not  available until after
  installation of context.
 
    We could bootstrap  the system by first downloading
  only  the  necessary pieces,  like  is  done for  the
  Minimals.  It  should only  need half a  dozen files.
   But  all that  needs  to be  actually developed,  of
  course.
 
  can  someone remind  me what  problem we're  trying to
  solve here?

 Having a GUI installer for the minimals (to make it more
 user-friendly and enable the user to choose what modules
 and fonts to install).

Just a (maybe stupid) idea:

What about making the  existing windows GUI install and/or
update  all available  modules/fonts,  since most  windows
users don't care about a few hundred MiB disk space.

Second,  creating  a  repository  for  Debian/Ubuntu  that
enables  Linux users  to  install the  minimals using  the
system package manager. It's easy  to create a package for
the modules.

I have no idea how  package management works for MacOS, if
something  like  repositories  exist or  how  software  is
installed/updated.

And leave the existing  interface for the other platforms,
since  the vast  majority  uses either  Linux, Windows  or
MacOS.

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] [t-rst] inclusion into Minimals, i. e. installation using `./first-setup.sh --extras='t-rst'`

2011-05-08 Thread Thomas A. Schmitz

On May 8, 2011, at 11:00 PM, Marco wrote:

 Having a GUI installer for the minimals (to make it more
 user-friendly and enable the user to choose what modules
 and fonts to install).
 
 Just a (maybe stupid) idea:
 
 What about making the  existing windows GUI install and/or
 update  all available  modules/fonts,  since most  windows
 users don't care about a few hundred MiB disk space.
 
 Second,  creating  a  repository  for  Debian/Ubuntu  that
 enables  Linux users  to  install the  minimals using  the
 system package manager. It's easy  to create a package for
 the modules.
 
 I have no idea how  package management works for MacOS, if
 something  like  repositories  exist or  how  software  is
 installed/updated.
 
 And leave the existing  interface for the other platforms,
 since  the vast  majority  uses either  Linux, Windows  or
 MacOS.

Just a few thoughts:

1. linux ≠ ubuntu/debian. Maintaining a repository for all different linux 
distros in their different package formats would be a nightmare.

2. Maintaining a cross-platform GUI is incredibly difficult. gtk is an absolute 
non-starter on OS X. 

3. Resources are limited. I would rather they go into development of luatex and 
mkiv then into eye-candy for mouse-pushers.

4. We now get reports from people (not necessarily, but sometomes newbies) 
going I ran command X, and the output was Y. With a GUI we get: I pushed the 
button, you know the one with the letters on it, and nothing happened. GUIs 
have a tendency to hide useful information, making debugging all but 
impossible. (I sometimes look at comp.text.tex on usenet - the number of people 
who confuse their editor and its shiny interface with the underlying TeX engine 
is staggering; the same would happen here).

5. Even if it's easy to create a debian package for the modules, who's going 
to create and maintain it? 

6. Offering a GUI sends out a wrong message to new users: it pretends that this 
is just something that will work the same way as their word processor or office 
program works. But once people actually want to do useful things, they need to 
learn a minimum of coding techniques. Users will then feel deceived because the 
shiny GUI made them believe they could just write away and click buttons.

In sum: I see no compelling reason in favor of, but many important reasons 
against such an installer.

Thomas

___
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] [t-rst] inclusion into Minimals, i. e. installation using `./first-setup.sh --extras='t-rst'`

2011-05-08 Thread Marco
On 2011-05-08 Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote:

 
 On May 8, 2011, at 11:00 PM, Marco wrote:
 
  Having a GUI installer for the minimals (to make it more
  user-friendly and enable the user to choose what modules
  and fonts to install).
  
  Just a (maybe stupid) idea:
  
  What about making the  existing windows GUI install and/or
  update  all available  modules/fonts,  since most  windows
  users don't care about a few hundred MiB disk space.
  
  Second,  creating  a  repository  for  Debian/Ubuntu  that
  enables  Linux users  to  install the  minimals using  the
  system package manager. It's easy  to create a package for
  the modules.
  
  I have no idea how  package management works for MacOS, if
  something  like  repositories  exist or  how  software  is
  installed/updated.
  
  And leave the existing  interface for the other platforms,
  since  the vast  majority  uses either  Linux, Windows  or
  MacOS.
 
 Just a few thoughts:

 1. linux  ≠ ubuntu/debian. Maintaining a  repository for
 all different  linux distros in their  different package
 formats would be a nightmare.

ACK.

 2.  Maintaining  a   cross-platform  GUI  is  incredibly
 difficult. gtk is an absolute non-starter on OS X.

If you  say so.  But anyway, we  should not  discuss about
which GUI toolkit  we use, since it is not  at all decided
that anything will change at this point.

 3. Resources  are limited. I  would rather they  go into
 development of  luatex and mkiv then  into eye-candy for
 mouse-pushers.

 4. We now get reports  from people (not necessarily, but
 sometomes  newbies)  going I  ran  command  X, and  the
 output  was  Y.  With  a  GUI we  get:  I  pushed  the
 button, you  know the  one with the  letters on  it, and
 nothing happened.  GUIs have a tendency  to hide useful
 information,  making debugging  all  but impossible.  (I
 sometimes look  at comp.text.tex on usenet  - the number
 of  people  who  confuse  their  editor  and  its  shiny
 interface with the underlying  TeX engine is staggering;
 the same would happen here).

I   agree.My   thought   was   thefollowing:   The
installation/update of ConTeXt is  not integrated into the
systems default methods. How  often do we get installation
help  requests on  the mailing  list (on  every platform)!
Supporting the  default installation/update method  of the
operating system would  not necessarily need a  GUI and be
easy for the users.

 5. Even  if it's easy  to create a debian  package for
 the modules, who's going to create and maintain it?

The creation of the package is scriptable. When the module
developer uploads/updates  a module  a (not  yet existing)
script is called that creates the Debian package, which is
saved in  the repository. Of course  a scriptable solution
breaks when e.g. dependencies are not met.

 6.  Offering a  GUI sends  out  a wrong  message to  new
 users: it pretends that this is just something that will
 work  the same  way as  their word  processor or  office
 program  works.  But once  people  actually  want to  do
 useful things,  they need to  learn a minimum  of coding
 techniques. Users  will then  feel deceived  because the
 shiny GUI made  them believe they could  just write away
 and click buttons.

 In sum: I see no compelling reason in favor of, but many
 important reasons against such an installer.

As said before: Supporting the native package installation
mechanisms of  the major OSs/distributions would  be a big
help. For the rest the present mechanisms work fine.

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] Proposed changes for Croatian language

2011-05-08 Thread Reviczky, Adam
 just send me a patch after the next beta then (i just merged in other 
 fixes)

I've attached the newly patched lang-txt.lua against the current experimental 
(2011.05.08) with the hu fixes.

Adam


lang-txt.lua.gz
Description: lang-txt.lua.gz
___
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] Error with export=yes

2011-05-08 Thread Reviczky, Adam
 fixed in next beta
 
 (you can replace gmatch by string.gmatch as a fast fix)

Thanks, that fixed the problem for one, but still it fails on my thesis with:

! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:868: attempt to 
index field '?' (a nil value).

empty file

I hope it is not because of my tex file.
Log attached.

Adam
(/home/reviczky/Downloads/ctx/test/thesis/src/prd_finalreport.tex

ConTeXt  ver: 2011.05.08 23:02 MKIV  fmt: 2011.5.9  int: english/english

(/usr/share/texmf/tex/context/base/cont-new.mkiv) (prd_finalreport.top
){/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} (project_6ccs3prj.tex (env_6ccs3prj.tex (/usr/share/texmf/tex/context/base/colo-imp-x11.mkiv) (/usr/share/texmf/tex/context/base/m-database.mkiv+ /usr/share/texmf/tex/context/base/m-database.lua) (/usr/share/texmf/tex/context/base/page-run.mkiv))) (c_titlepage.tex) (c_legal.tex) (c_abstract.tex) (c_acknowledgements.tex) (c_tableofcontents.tex) (c_introduction.tex) (c_background.tex) (c_body.tex) (c_evaluation.tex) (c_conclusions.tex
Overfull \hbox (11.07205pt too wide) in paragraph at lines 26--26
[][]\*TeX Gyre11ptrmtf* (-15) Second\*TeX Gyre11ptrmtf* (-20) ly, \*TeX Gyre11ptrmtf* (-15) an ana\*TeX Gyre11ptrmtf* (-20) ­l\*TeX Gyre11ptrmtf* (-15) og\*TeX Gyre11ptrmtf* (-20) y \*TeX Gyre11ptrmtf* (-15) can be d\*TeX Gyre11ptrmtf* (-20) r\*TeX Gyre11ptrmtf* (-15) awn w\*TeX Gyre11ptrmtf* (-20) it\*TeX Gyre11ptrmtf* (-15) h \*TeX Gyre11ptrmtf* (-20) t\*TeX Gyre11ptrmtf* (-15) he wa\*TeX Gyre11ptrmtf* (-20) y L[]T[]X \*TeX Gyre11ptrmtf* (-15) enhanced \*TeX Gyre11ptrmtf* (-20) T[]X \*TeX Gyre11ptrmtf* (-15) o\*TeX Gyre11ptrmtf* (-20) r X\*TeX Gyre11ptrmtf* (-15) H\*TeX Gyre11ptrmtf* (-20) T\*TeX Gyre11ptrmtf* (-15) M\*TeX Gyre11ptrmtf* (-20) L+\*TeX Gyre11ptrmtf* (-15) CSS

\hbox(7.887+2.6675)x426.78743, glue set - 1.0, direction TLT
.\whatsit
..\localinterlinepenalty=0
..\localbrokenpenalty=0
..\localleftbox=null
..\localrightbox=null
.\hbox(0.0+0.0)x0.0, direction TLT
.\*TeX Gyre11ptrmtf* (-15) S
.\*TeX Gyre11ptrmtf* (-15) e
.\*TeX Gyre11ptrmtf* (-15) c
.etc.

) (c_bibliography.tex (prd_finalreport.bbl)) (c_appendix.tex /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/0e9b8cc57c0432d5c772dda2b9cd6dfe.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/20423a750695b2b662ba0d45cffb47d7.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/e5e275d1076b71ab932ea5ebd4ebf214.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/d4119ab8da3dcb23984cfb71ad63d7fd.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/38eb45f44eddb6c6d26bb5dd5aeb81f8.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/77bb547e2ae6cfc8f18ed6ac3fcc4cb0.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/e5ef87eb4b66f38fd4ed47540edace38 /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/cab33a4eaf4616b446d5e19baa4af9d7) (c_userguide.tex /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_main.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_about.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_credits.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_licence.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_open.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_filters.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_progress.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_clear.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_recognition.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_relational.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_ellipses.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_operator.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_arrow.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_logical.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_sets.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_misc.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_greeklo.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_greekup.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_typeset.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_mkiv.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_save.png 

Re: [NTG-context] Error with export=yes

2011-05-08 Thread Reviczky, Adam
Further, using an example with dingbats:

%%%
\setupbackend[export=cld-mkiv-export.xml,xhtml=cld-mkiv-export.xhtml,css={cld-mkiv-export.css,mathml.css}]

\starttext
Hello world! \getnamedglyphdirect{name:dingbats}{a79}
\stoptext
%%%

Produces a broken xhtml (XML Parsing Error: not well-formed), the pdf is fine 
of course.
The end-mark is exported to �� in xhtml.

Not sure if that's anything to fix, just wanted to let you know.

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