Re: [Dev-luatex] os.uname on 64 bit Windows

2021-12-22 Thread Reinhard Kotucha
> default: > strcpy(uts->machine, "unknown"); > break; > } Hi Luigi, I suppose that with "ppc", "alpha", and "mips" you can't derive the register width width from the name. Renaming them doesn&#x

Re: [Dev-luatex] os.uname on 64 bit Windows

2021-12-22 Thread Reinhard Kotucha
On 2021-12-21 at 11:41:37 +0100, luigi scarso wrote: > On Wed, Sep 8, 2021 at 9:56 AM luigi scarso wrote: > > > > > > > On Sun, Sep 5, 2021 at 7:48 PM Reinhard Kotucha > > wrote: > > > >> > >> Obviously. But I doubt that wP

Re: [Dev-luatex] luatex svn git sync

2021-12-20 Thread Reinhard Kotucha
7;m glad that at least dante.de and tug.org are not maintained by so-called "professional teams". That would be disastrous. Regards, Reinhard -- ---------- Reinhard KotuchaPhone: +49-511-3373112 M

Re: [Dev-luatex] os.uname on 64 bit Windows

2021-09-05 Thread Reinhard Kotucha
On 2021-09-05 at 10:43:10 +0200, luigi scarso wrote: > On Sun, Sep 5, 2021 at 2:22 AM Reinhard Kotucha > wrote: > > > Hi, > > on a 64 bit Windows machine os.uname() erroneously returns > > > > machine i686 > > > > On the same

[Dev-luatex] os.uname on 64 bit Windows

2021-09-04 Thread Reinhard Kotucha
Reinhard -- -- Reinhard KotuchaPhone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannovermailto:reinhard.kotu...@web.de -- ___ dev-luat

Re: [Dev-luatex] Dump sharing - redundant copying/allocations

2021-07-21 Thread Reinhard Kotucha
t give up this great feature. Regards, Reinhard -- ------ Reinhard KotuchaPhone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover

Re: [Dev-luatex] Potential bug with kerning in math mode

2020-03-06 Thread Reinhard Kotucha
ese differences invisible to end users, more or less. Math fonts are more problematic because they are more complex and the number of potential developers is quite small. Regards, Reinhard -- -- R

Re: [Dev-luatex] os.setenv()

2020-02-21 Thread Reinhard Kotucha
On 2020-02-21 at 23:00:58 +0100, luigi scarso wrote: > On Fri, Feb 21, 2020 at 10:50 PM Reinhard Kotucha > wrote: > > > Hi, > > I just tried this with texlua 1.10.0: > > > > > > local function time_

[Dev-luatex] os.setenv()

2020-02-21 Thread Reinhard Kotucha
When I call "time_of_day ('Asia/Tokyo')" first I get Sat Feb 22 06:39:46 2020 Sat Feb 22 06:39:46 2020 Sat Feb 22 06:39:46 2020 Is it possible to fix this behavior? Regards, Reinhard -- ------ Reinhard Kotu

[Dev-luatex] PNG file inclusion

2020-01-04 Thread Reinhard Kotucha
But I've copied the PNG and PDF files to http://ms25.ddns.net/texlive/png-inclusion.tar.xz The PDF files were created by pdfTeX, using only the \pdfximage and \pdfrefximage primitives. Regards, Reinhard --

Re: [Dev-luatex] segfault on example in manual

2019-04-08 Thread Reinhard Kotucha
On 2019-04-08 at 20:53:29 +0900, Hironobu Yamashita wrote: > Hi Luigi, > > On 2019-04-02 at 21:59:21 +0200, luigi scarso wrote: > > > > On Tue, Apr 2, 2019 at 9:48 PM Reinhard Kotucha > > wrote: > > I suppose that texlua crashes when trying to pr

Re: [Dev-luatex] segfault on example in manual

2019-04-02 Thread Reinhard Kotucha
On 2019-04-02 at 21:59:21 +0200, luigi scarso wrote: > On Tue, Apr 2, 2019 at 9:48 PM Reinhard Kotucha > wrote: > I suppose that texlua crashes when trying to print the warning, see > gdb output below.  What I don't understand is is why luatex and > texlu

Re: [Dev-luatex] segfault on example in manual

2019-04-02 Thread Reinhard Kotucha
On 2019-04-02 at 08:50:23 +0200, luigi scarso wrote: > On Tue, Apr 2, 2019 at 7:18 AM luigi scarso wrote: > > On Tue, Apr 2, 2019 at 12:23 AM Reinhard Kotucha < > reinhard.kotu...@web.de> wrote: > > Hi, > when I run the example on

[Dev-luatex] segfault on example in manual

2019-04-01 Thread Reinhard Kotucha
Hi, when I run the example on page 261/262 of the LuaTeX Manual and the input file ("foo.pdf" in the example) doesn't exist, I get Segmentation fault (core dumped) on x86_64-linux. Regards, Reinhard -- -- R

[Dev-luatex] epdf libray :save()

2018-12-26 Thread Reinhard Kotucha
getEmbeddedFile() is even less invasive. Merry Christmas, Reinhard -- -- Reinhard KotuchaPhone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannovermailto:reinhard

Re: [Dev-luatex] mruby

2018-08-08 Thread Reinhard Kotucha
a string to mruby.run() but you can't pass the results back to Lua. The latter is required because only Lua can communicate with TeX. Hence IMO mruby isn't very useful, even for other purposes. Regards, Reinhard -- -----

[Dev-luatex] socket.url not recognized as a built-in library

2018-07-16 Thread Reinhard Kotucha
ge.loaded.socket.url._PACKAGE = "socket." -package.loaded.socket.url._VERSION = "URL 1.0.2" +package.loaded.socket.url._VERSION = "URL 1.0.3" package.loaded.socket.url.absolute() package.loaded.socket.url.build() package.loaded.socket.url.build_path() --

Re: [Dev-luatex] openin_any = p in texmf.cnf

2018-03-17 Thread Reinhard Kotucha
aTeX is not concerned ATM because it still uses pdftex. It's highly desirable to make luatex work with openin_any=p as well. Regards, Reinhard -- ------ Reinhard Kotucha

[Dev-luatex] openin_any = p in texmf.cnf

2018-03-09 Thread Reinhard Kotucha
excerpt from texmf.cnf: - % Do we allow TeX \input or \openin (openin_any), or \openout % (openout_any) on filenames starting with `.' (e.g., .rhosts) or % outside the current tree (e.g., /etc/passwd)? % a (any)

Re: [Dev-luatex] External library issue

2017-05-19 Thread Reinhard Kotucha
#x27;; $pdf_mode = 1; $dvi_mode = $postscript_mode = 0; Omit --shell-escape if you don't need it. Regards, Reinhard -- ------ Reinhard KotuchaP

[Dev-luatex] luajit memory limit

2016-10-01 Thread Reinhard Kotucha
matter): dd if=/dev/zero of=./f_256MiB bs=1048576 count=256 dd if=/dev/zero of=./f_512MiB bs=1048576 count=512 -- ------ Reinhard KotuchaPhone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover

[Dev-luatex] Mantis ID 0000980

2016-07-26 Thread Reinhard Kotucha
Hans and Luigi, thank you very much for providing pdf.getcreationdate(). Regards, Reinhard -- -- Reinhard KotuchaPhone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover

[Dev-luatex] \pdffeedback creationdate

2016-06-13 Thread Reinhard Kotucha
e code could be more comprehensible. The PDF creation date is required in order to write the PDF/A XMP file and I'm doing this entirely in Lua. Is it feasible to add such a Lua variable (maybe 'pdf.creationdate')? Regards, Reinhard -- ----

Re: [Dev-luatex] PDF validation

2016-01-26 Thread Reinhard Kotucha
find it. I suppose that its parser is more fussy than required by the standard. Regards, Reinhard -- -- Reinhard KotuchaPhone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannovermailto:reinhard.kotu...@web.de

[Dev-luatex] Minor bug in LuaTeX Reference 0.80.0

2015-07-10 Thread Reinhard Kotucha
See section 4.11.1 on page 108: pdf.mapfile( map file) pdf.mapfile( map line) I suppose that the latter function should be pdf.mapline(). Regards, Reinhard -- -- Reinhard KotuchaPhone: +49-511

[Dev-luatex] luatex documentation

2014-05-25 Thread Reinhard Kotucha
" vs. "pdf.catalog". Otherwise too much has to be explained. The phrase "The preferred interface is now pdf.setcatalog, ..." is also misleading because the old interface had been removed and users have no choice anyway. Regards, Reinhard -- -

[Dev-luatex] luazip core dump

2014-05-24 Thread Reinhard Kotucha
e: nil -- End: -- vim:set tabstop=2 expandtab: # --- -- ---- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotu...@web.de Microsof

Re: [Dev-luatex] pdf.obj() removes leading white space

2014-03-10 Thread Reinhard Kotucha
t I break everything when I change something anywhere else. Thanks a lot, Reinhard -- -------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover

Re: [Dev-luatex] pdf.obj() removes leading white space

2014-03-08 Thread Reinhard Kotucha
On 2014-03-08 at 12:45:07 +0100, Hans Hagen wrote: > On 3/8/2014 1:46 AM, Reinhard Kotucha wrote: > > Hi, > > I'm currently trying to insert XMP metadata into a PDF file in order > > to make it PDF/A compliant. > > > > The XML stuff is a Lua stri

[Dev-luatex] pdf.obj() removes leading white space

2014-03-07 Thread Reinhard Kotucha
too. Regards, Reinhard -- ---- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailt

Re: [Dev-luatex] set exit status

2013-07-12 Thread Reinhard Kotucha
xitstatus = 1 > > > > or \exitstatus=1 \bye > > \directlua{os.exit(1)} Or the other way round: tex.print([[\batchmode\errmessage{}\csname @@end\endcsname\end]]) Well, neither \directlua{} nor tex.print() is needed. ;) Regards, Reinhard -- ------

Re: [Dev-luatex] Memory leak in string.explode()?

2012-11-10 Thread Reinhard Kotucha
On 2012-11-10 at 00:17:01 +0100, Hans Hagen wrote: > On 11/10/2012 12:02 AM, Reinhard Kotucha wrote: > > > I know. However, I just installed Subversion and copiled the > > latest SVN version of LuaTeX on my Raspberry Pi. If you or > > anybody else is interested in

Re: [Dev-luatex] Memory leak in string.explode()?

2012-11-09 Thread Reinhard Kotucha
On 2012-11-08 at 11:36:37 +0100, Hans Hagen wrote: > On 11/8/2012 2:05 AM, Reinhard Kotucha wrote: > > > Thank you, Hans. Here it's faster than reading the file at once > > but still slower than reading 8k Blocks. It also consumes as > > much memory as reading

Re: [Dev-luatex] Memory leak in string.explode()?

2012-11-07 Thread Reinhard Kotucha
ost important thing is that it's an integer multiple of a filesystem data block. Since Taco provided os.type() and os.name(), it's possible to to make the chunk size system dependent. But I fear that the actual hardware (SSD vs. magnetic disk) has a bigger impact

Re: [Dev-luatex] Memory leak in string.explode()?

2012-11-06 Thread Reinhard Kotucha
On 2012-11-05 at 10:00:29 +0100, Taco Hoekwater wrote: > On 11/05/2012 07:40 AM, minux wrote: > > > > On Mon, Nov 5, 2012 at 9:32 AM, Reinhard Kotucha > > mailto:reinhard.kotu...@web.de>> wrote: > > > > - > >

Re: [Dev-luatex] Memory leak in string.explode()?

2012-11-04 Thread Reinhard Kotucha
On 2012-11-04 at 23:42:04 +0100, Reinhard Kotucha wrote: > On 2012-11-04 at 17:08:34 +0100, Taco Hoekwater wrote: > > > On 11/04/2012 03:00 AM, Reinhard Kotucha wrote: > > > > > > When I use the lpeg based function split(), everything is fine, t

Re: [Dev-luatex] Memory leak in string.explode()?

2012-11-04 Thread Reinhard Kotucha
On 2012-11-04 at 17:08:34 +0100, Taco Hoekwater wrote: > On 11/04/2012 03:00 AM, Reinhard Kotucha wrote: > > > > When I use the lpeg based function split(), everything is fine, though > > it's slower than string.explode(). But when I use string.explode(), I >

[Dev-luatex] Memory leak in string.explode()?

2012-11-03 Thread Reinhard Kotucha
eadily growing while the program is running. Regards, Reinhard -- ---- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotu...@web.de --

Re: [Dev-luatex] string.explode()

2012-01-02 Thread Reinhard Kotucha
On 2012-01-01 at 12:28:06 +0100, Hans Hagen wrote: > On 1-1-2012 10:32, Paul Isambert wrote: > > Reinhard Kotucha a écrit: > >> > >> Hi Taco, > >> though luatex isn't frozen yet, I think that many people are using it > >> already and drast

[Dev-luatex] string.explode()

2012-01-01 Thread Reinhard Kotucha
' ' is a space token (ASCII 0x20). Is it possible to change string.explode() so that ' ' can be either a space token (ASCII 0x20) or a tabulator (ASCII 0x09) without breaking existing scripts? Regards, Reinhard -- ------

Re: [Dev-luatex] Luatex and metafont

2011-06-14 Thread Reinhard Kotucha
y nice system > to do that. Ok. Maybe this might be interesting in this context: http://en.wikipedia.org/wiki/METATYPE1 Regards, Reinhard -- -------- Reinhard Kotucha Phone: +49-5

Re: [Dev-luatex] Luatex and metafont

2011-06-09 Thread Reinhard Kotucha
On 2011-06-09 at 23:31:30 +, Mauricio CA wrote: > Can I use metafont fonts with luatex? Why do you prefer bitmap fonts? Regards, Reinhard -- ---- Reinhard Kotucha Phone: +49-

Re: [Dev-luatex] file permissions

2011-02-06 Thread Reinhard Kotucha
On 6 February 2011 Hans Hagen wrote: > On 6-2-2011 3:56, Reinhard Kotucha wrote: > > > $ whoami > > reinhard > > $ ls -l /etc/passwd > > -rw-r--r-- 1 root root 2269 Dec 19 14:57 /etc/passwd > > > > Your test suggests that the file is writable, bu

Re: [Dev-luatex] file permissions

2011-02-06 Thread Reinhard Kotucha
On 6 February 2011 Hans Hagen wrote: > On 5-2-2011 9:11, Reinhard Kotucha wrote: > > > In order to test whether a file is readable I currently open this > > file in a protected call. This is also possible for directories > > when I run lfs.dir() inside pcall(). It

[Dev-luatex] file permissions

2011-02-05 Thread Reinhard Kotucha
> false print(lfs.attributes('/dev/null', 'mode')) => char device Hence, I think that a separate function lfs.access() makes more sense. WDYT? Regards, Reinhard -- Reinhard

Re: [Dev-luatex] QA Notice: Package has poor programming practices

2010-12-31 Thread Reinhard Kotucha
s package tool. I've put the latest release on my server: http://ms25.ath.cx/portage-2.1.9.25.tar.bz2 The message above is defined in bin/misc-functions.sh Regards, Reinhard --

Re: [Dev-luatex] arg[0] / texlua

2010-12-12 Thread Reinhard Kotucha
i.e. no new process is spawned. Execution is done using a protected call, so any compile or runtime errors are catched. Source files runscript.tlu launcher script for locating and dispatching target scripts/programs runscript_dll.c common DLL part of

Re: [Dev-luatex] arg[0] / texlua

2010-12-11 Thread Reinhard Kotucha
d on texlua. This avoids nasty problems when people install a generic Lua engine too. Regards, Reinhard -- Reinhard Kotucha Phone: +4

Re: [Dev-luatex] pdftexversion, OmegaVersion etc.

2010-11-29 Thread Reinhard Kotucha
mited (after we discussed it with John at eurotex). Do you propose to drop \Omegaversion because you changed the Omega code and forgot to increase the version number? :) Regards, Reinhard -- Reinhard

Re: [Dev-luatex] Typo in functuonref.tex

2010-09-12 Thread Reinhard Kotucha
On 12 September 2010 luigi scarso wrote: > On Sun, Sep 12, 2010 at 5:24 PM, Aditya Mahajan wrote: > > On Sun, 12 Sep 2010, Reinhard Kotucha wrote: > > > >> On 12 September 2010 Khaled Hosny wrote: > >> > >> > It says \latexlua, though being half

Re: [Dev-luatex] Typo in functuonref.tex

2010-09-12 Thread Reinhard Kotucha
\stopLaTeX Regards, Reinhard -- ---- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kot

Re: [Dev-luatex] Compiling LuaTeX on Windows

2010-09-10 Thread Reinhard Kotucha
in most cases. Sure, one should be aware of it. If they removed the ln program from their distribution (should be documented somewhere), you can write your own one: #! /bin/sh cp -p "$@" Regards, Reinhard -- -------

Re: [Dev-luatex] os.spawn and AR crash mystery resolved

2010-04-22 Thread Reinhard Kotucha
ecause Akira couldn't reproduce the problem. Thanks again, Reinhard -- ---- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotu...@web.de

Re: [Dev-luatex] Cron /var/www/luatex.org/www/bin/luatex-svn

2010-03-06 Thread Reinhard Kotucha
ry again. Regards, Reinhard -- -------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotu...@web.de -

Re: [Dev-luatex] svn revision ids

2010-02-21 Thread Reinhard Kotucha
t them to international mailing lists. I'm grateful that Khaled Hosny doesn't post them in Arabic. :) Regards, Reinhard -- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover

Re: [Dev-luatex] dimension helper

2010-02-20 Thread Reinhard Kotucha
hat it doesn't make any difference on which list he asks. Regards, Reinhard -- -------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover

Re: [Dev-luatex] select()

2010-02-03 Thread Reinhard Kotucha
On 3 February 2010 Taco Hoekwater wrote: > Reinhard Kotucha wrote: > > This seems to be wrong. select (1, ) should only return the first > > argument, not both. I'm wondering why select (2, ) works as > > expected. I must admit that I couldn't find

[Dev-luatex] select()

2010-02-02 Thread Reinhard Kotucha
function select (n, ...) return arg[n] end print (select (1, string.gsub ('abc', 'b', 'X'))) print (select (2, string.gsub ('abc', 'b', 'X'))) -- --> aXc --&

Re: [Dev-luatex] md5.sum

2010-01-19 Thread Reinhard Kotucha
On 18 January 2010 Aditya Mahajan wrote: > On Mon, Jan 18, 2010 at 6:35 PM, Reinhard Kotucha > wrote: > > > > If I can evaluate, for instance, luatex.datestamp, I can enable MD5 > > checks in my script on sytems where it works. That would be nice. > >

Re: [Dev-luatex] md5.sum

2010-01-18 Thread Reinhard Kotucha
tex.license... :) If I can evaluate, for instance, luatex.datestamp, I can enable MD5 checks in my script on sytems where it works. That would be nice. Regards, Reinhard -- -------- Reinhard Kotucha

Re: [Dev-luatex] md5.sum

2009-12-22 Thread Reinhard Kotucha
Reinhard -- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotu.

[Dev-luatex] md5.sum

2009-12-21 Thread Reinhard Kotucha
provide different results is not what I expect. Any idea? Regards, Reinhard -- -------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr.

Re: [Dev-luatex] os.spawn and argv[1] with sapces

2009-11-23 Thread Reinhard Kotucha
[0]=args_unix[1] for i=1, #args_unix do args_win[i]='"'..args_unix[i]..'"' end return args_win else return args_unix end end Regards, Reinhard -- -------- Rein

Re: [Dev-luatex] kpse.find_file

2009-11-01 Thread Reinhard Kotucha
On 1 November 2009 Manuel Pégourié-Gonnard wrote: > Hi Reinhard, > > Reinhard Kotucha a écrit : > >kpse.set_program_name('ppower4') > > The problem is that kpse resolves symlinks before computing SELFAUTO* > (which is what you want in most ca

[Dev-luatex] kpse.find_file

2009-10-31 Thread Reinhard Kotucha
accordingly. Then everything works on all platforms. What do you think? Regards, Reinhard -- Reinhard Kotucha Phone: +49-511-337311

Re: [Dev-luatex] Q: Can LuaTeX produce xdv?

2009-01-05 Thread Reinhard Kotucha
ntend to create PDF at all. I assume that what Jonathan has in mind is something like http://www.mathtran.org/toys/jfine/editor2.html Yes, the PDF backend is extremely expensive in this case, for several reasons. Regards, Reinhard -- ---

Re: [Dev-luatex] LuaTeX and ANT (Ant is not TeX)

2008-12-26 Thread Reinhard Kotucha
ml, Lisp, Perl, INTERCAL, Whitespace...), but for casual TeX users there is nothing better than Lua. Regards, Reinhard -- -------- Reinhard Kotucha Phone: +49-511-33731

Re: [Dev-luatex] LuaTeX build error on sparc64/amd64 within TeX Live

2008-10-11 Thread Reinhard Kotucha
in we can rely on the same LuaTeX executable being > available there. Are you really unable to compile LuaTeX on OpenBSD? Maybe only the symlink texlua -> luatex is missing. Regards, Reinhard -- -------- Reinha