Re: [NTG-context] zint module on LMTX

2022-09-03 Thread Ivan Pešić via ntg-context

Hi Pablo,
I'm resurrecting this thread, as I've just managed to get some progress 
on Windows with zint in LMTX.
The thing is that you need 64-bit DLL, because LuaMetaTex is built for 
64-bit architecture on Windows.
As it is not available, I built 64-bit zint.dll (and zlib + libpng) from 
the latest git sources (2.11.1.9 (dev)),
renamed it to libzint.dll and placed in appropriate place, as per the 
instructions.


But there are still some problems... here is the excerpt from the log:

modules > using user prefixed file 'libs-imp-zint'
modules > 'zint' is loaded
open source > level 2, order 3, name 
'c:/Data/context/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl'
resolvers   > lua > loading file 
'c:/Data/context/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.lmt' succeeded
close source> level 2, order 3, name 
'c:/Data/context/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl'
optional> using library 
'c:/Data/context/tex/texmf-win64/bin/lib/luametatex/zint/libzint.dll'
zint> something went wrong: invalid result vector
zint> something went wrong: invalid result vector
backend > xmp > using file 
'c:/Data/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1, subpage 1
zint> something went wrong: invalid result vector
zint> something went wrong: invalid result vector
zint> something went wrong: invalid result vector
zint> something went wrong: invalid result vector
zint> something went wrong: invalid result vector
zint> something went wrong: invalid result vector

I tested the library with the generated CLI tool, and I get the barcode 
images created.
Although, png format is not working, I get file with length 0 and no 
error whatsoever.
It could be that there is something wrong with the build, I'll try to 
figure out.


Best regards,
Ivan



Дана 17.03.2022. у 1:32, ntg-context-requ...@ntg.nl пише:

On 3/16/22 18:05, Hans Hagen via ntg-context wrote:

On 3/16/2022 5:37 PM, Pablo Rodriguez via ntg-context wrote:

Dear list,

using latest LMTX and following the steps from
https://wiki.contextgarden.net/Barcodes#Zint_module, I’m afraid I don’t
get any barcode either in Linux or Windows.

Minimal sample:

\starttext
\usemodule[zint]
\barcode[alternative=isbnx, text=9783865419026, width=4cm]
\stoptext
[...]

Are you sure that you have the latest zint? (from sourceforge)

Many thanks for your reply, Hans.

I have version 2.9.2 on Linux and version 2.10 on Windows.

I’ll try to install the new version on Linux and report results here.

Many thanks for your help,

Pablo

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

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


[NTG-context] Quick way to proofread / check index entries?

2022-09-03 Thread Bruce Horrocks via ntg-context
My own fault for not thinking head :-) but I have a largeish text with a lot of 
\index{...} entries. To make life easier for the proofreader I would like to 
temporarily redefine \index to wrap it or replace it with something that will 
highlight indexed items in the text where they occur, e.g. change their colour.

I could do this with a global find and replace (across many files) to replace 
\index with \MyIndex, say, and then define a \MyIndex that understands the 
various parameter options but this is a hassle. Before I do this, is there 
anything already pre-built?

The ultimate aim is to enable a proofreader to see each indexed term where it 
appears in order to judge whether the term deserves to be in the index at all. 
(Working backwards from the index itself is possible but clicking a page 
number, trying to find the term on the page, then reading the context to make a 
decision is quite hard work - much easier to read through and deal with the 
terms as they appear.)

—
Bruce Horrocks
Hampshire, UK

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

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


Re: [NTG-context] Issue with setupMPvariables

2022-09-03 Thread Alexandre Christe via ntg-context
Thanks Hans!

For sake of completeness a MWE is attached, in case someone needs it one
day.

Le sam. 3 sept. 2022 à 20:10, Hans Hagen via ntg-context 
a écrit :

> On 9/3/2022 6:48 PM, Alexandre Christe via ntg-context wrote:
> > Dear all,
> >
> > I'm trying to reuse some MP code for several custom enumeration.
> >
> > However I can't make the overall setup work, needless to say different
> > border colors for each enumeration though setupMPvariables. What am I
> > missing?\startuseMPgraphic{mp:textFrame}
> begingroup;
> path p ;
> for i = 1 upto nofmultipars :
> p := (ulcorner multipars[i]) -- (llcorner multipars[i]) --
> (llcorner
> multipars[i] xshifted .25cm) -- (ulcorner multipars[i] xshifted .25cm)
> -- cycle ;
> fill p withcolor boxfillcolor ;
> draw p withcolor boxlinecolor ;
> endfor;
> endgroup;
> \stopuseMPgraphic
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>


testColorParagraphs.tex
Description: TeX document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Issue with setupMPvariables

2022-09-03 Thread Hans Hagen via ntg-context

On 9/3/2022 6:48 PM, Alexandre Christe via ntg-context wrote:

Dear all,

I'm trying to reuse some MP code for several custom enumeration.

However I can't make the overall setup work, needless to say different 
border colors for each enumeration though setupMPvariables. What am I 
missing?\startuseMPgraphic{mp:textFrame}

begingroup;
path p ;
for i = 1 upto nofmultipars :
		p := (ulcorner multipars[i]) -- (llcorner multipars[i]) -- (llcorner 
multipars[i] xshifted .25cm) -- (ulcorner multipars[i] xshifted .25cm) 
-- cycle ;

fill p withcolor boxfillcolor ;
draw p withcolor boxlinecolor ;
endfor;
endgroup;
\stopuseMPgraphic


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Issue with setupMPvariables

2022-09-03 Thread Alexandre Christe via ntg-context
Dear all,

I'm trying to reuse some MP code for several custom enumeration.

However I can't make the overall setup work, needless to say different
border colors for each enumeration though setupMPvariables. What am I
missing?

MWE: see attachment


testColorParagraphs.tex
Description: TeX document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Question about text backgrounds

2022-09-03 Thread Alexandre Christe via ntg-context
Hmmm it seems the trick lies in adding

\setupfloats
[freeregion=no]
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Question about text backgrounds

2022-09-03 Thread Alexandre Christe via ntg-context
Hi,

I just came across nofmultipars (which is great for splitting frames across
pages, unlike a simple framed). Is there an equivalent for floats?

The MWE would contain

\startuseMPgraphic{mp:textFrame}
begingroup;
path p ;
for i = 1 upto nofmultipars :
p := (ulcorner multipars[i]) -- (llcorner multipars[i]) -- (llcorner
multipars[i] xshifted .25cm) -- (ulcorner multipars[i] xshifted .25cm) --
cycle ;
fill p withcolor "darkgreen" ;
endfor;
endgroup;
\stopuseMPgraphic

together with

\definetextbackground
[exampleFrame]
[
mp=mp:textFrame,
location=paragraph,
]

Assuming I have between \starttextbackground[exampleFrame] and
\starttextbackground[exampleFrame] also a figure in addition to text
paragraphs. Would it be possible to also draw a rule next to it?

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

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


Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-09-03 Thread 黄复雄 via ntg-context
> I noticed an issue with multiple glyphs but am not sure why ... (so we
> need very small examples to figure it out).

I have observed a phenomenon that
when the base text contains glues/spaces, an error occurs,
as in the following example. Coincidentally, when using \setscript[hanzi],
the macro will inject glue between Chinese, and I will get the same error.

%%%begin example
\starttext
\ruby{a a}{b}
\stoptext
%%%end example

Best Regards,
  黄复雄(Huang Fuysong)
 
___
 If your question is of interest to others as well, please add an
entry to the Wiki!

 maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
 archive  : https://bitbucket.org/phg/context-mirror/commits/
 wiki : https://contextgarden.net
 
___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Can't no break between a close punctuation and a open punctuation

2022-09-03 Thread 黄复雄 via ntg-context
> you can try this in scrp-cjk.lua (remake the format)
>
> local chinese_8 = {
>  jami_initial = nobreak_shrink_break_stretch,
>  korean   = nobreak_autoshrink_break_stretch,
>  chinese  = stretch_break, -- nobreak_autoshrink_break_stretch,
>  hiragana = stretch_break, -- nobreak_autoshrink_break_stretch,
>  katakana = stretch_break, -- nobreak_autoshrink_break_stretch,
>  half_width_open  = nobreak_autoshrink_break_stretch_nobreak_autoshrink,
> half_width_open  = stretch_break,
>  half_width_close = nobreak_autoshrink_nobreak_stretch,
>  full_width_open  = nobreak_autoshrink_break_stretch_nobreak_shrink,
>  full_width_close = nobreak_autoshrink_nobreak_stretch,
>  full_width_punct = nobreak_autoshrink_nobreak_stretch,
>  hyphen   = nobreak_autoshrink_break_stretch,
>  non_starter  = nobreak_autoshrink_break_stretch,
>  other= nobreak_autoshrink_break_stretch,
> }

Dear Hans,

I have modified these two files, scrp-cjk.lua and char-scr.lua.
In the modified lines, some comments were made, but not all of these
places were commented. If you need to mark all the places, please let me know
and I'll mark all the changes.

As I've said last time, what I've done may be a bit reckless, please
check and correct it.

Though I've done some testing, but obviously it is not very comprehensive.

With best regards,

黄复雄(Huang Fusyong)

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

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


scrp-cjk.lua
Description: Binary data


char-scr.lua
Description: Binary data


watch_sys_actions_to_punctuation.lmtx
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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