ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 'overprint' swallows leading number
@ 2017-01-06 14:49 Peter Rolf
  2017-01-06 19:01 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Rolf @ 2017-01-06 14:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

title says it all.

(ConTeXt 2016.12.28 17:55)

minimal example:
------------
\starttext
\startluacode
local bCI,eCI = context.startcolorintent, context.stopcolorintent

bCI({"overprint"})context("1.2345\\crlf")eCI() -- also no 'overprint'
for that text part in the PDF
bCI({"overprint"})context("First number is missing.\\crlf")eCI()

\stopluacode
\stoptext
-------------

I also get an overflow exception with one of my tables, but I could
'fix' that with '\setupalign[nothyphenated]'. The table is complex (lua
generated), so no minimal example at hand. Anyhow, here the error
message (space-ali.mkiv).

-------------
tex error       > tex error on line 13283 in file
g:/mydocs/TeX/dokumente/test/lua/titanfall2/titanfall2-weapons.mkiv: !
Arithmetic overflow


\setraggedness ...hsize /\dimexpr #1\relax \relax
                                                  \fi
\spac_align_set_horizontal_center ...dness_middle
                                                  \raggedstatus \plustwo
\at...
\raggedcommand ...pac_align_set_horizontal_center
                                                  \relax
\spac_align_set_ver...
\next ...th \pack_framed_do_setups \raggedcommand
                                                  \pack_framed_do_top
\bgrou...
\tabl_ntb_cell_process_b_c ...raltablelocalframed
                                                  {\tabl_ntb_cell_start
#5\t...
<inserted text> ...ass 1 34 \tabl_ntb_skip {6}\tabl_ntb_pass 1 40
                                                  \tabl_ntb_plus
\tabl_ntb_p...
...
l.249 ...x\vbox{\ctxlua{userdata.printweaponTABLE()}
                                                  }%
-------------

Maybe related to the prior bug (also overprinting numbers in the TABLE),
will check again later.


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 'overprint' swallows leading number
  2017-01-06 14:49 'overprint' swallows leading number Peter Rolf
@ 2017-01-06 19:01 ` Hans Hagen
  2017-01-06 20:19   ` Peter Rolf
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2017-01-06 19:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 1/6/2017 3:49 PM, Peter Rolf wrote:
> Hi,
>
> title says it all.

\unexpanded\def\registercolorintent#1#2% \relax is needed !
 
{\setevalue{\??colorintent#1}{\attribute\colorintentattribute\clf_registercolorintent{#2}\relax}}


> (ConTeXt 2016.12.28 17:55)
>
> minimal example:
> ------------
> \starttext
> \startluacode
> local bCI,eCI = context.startcolorintent, context.stopcolorintent
>
> bCI({"overprint"})context("1.2345\\crlf")eCI() -- also no 'overprint'
> for that text part in the PDF
> bCI({"overprint"})context("First number is missing.\\crlf")eCI()
>
> \stopluacode
> \stoptext
> -------------
>
> I also get an overflow exception with one of my tables, but I could
> 'fix' that with '\setupalign[nothyphenated]'. The table is complex (lua
> generated), so no minimal example at hand. Anyhow, here the error
> message (space-ali.mkiv).
>
> -------------
> tex error       > tex error on line 13283 in file
> g:/mydocs/TeX/dokumente/test/lua/titanfall2/titanfall2-weapons.mkiv: !
> Arithmetic overflow
>
>
> \setraggedness ...hsize /\dimexpr #1\relax \relax
>                                                   \fi
> \spac_align_set_horizontal_center ...dness_middle
>                                                   \raggedstatus \plustwo
> \at...
> \raggedcommand ...pac_align_set_horizontal_center
>                                                   \relax
> \spac_align_set_ver...
> \next ...th \pack_framed_do_setups \raggedcommand
>                                                   \pack_framed_do_top
> \bgrou...
> \tabl_ntb_cell_process_b_c ...raltablelocalframed
>                                                   {\tabl_ntb_cell_start
> #5\t...
> <inserted text> ...ass 1 34 \tabl_ntb_skip {6}\tabl_ntb_pass 1 40
>                                                   \tabl_ntb_plus
> \tabl_ntb_p...
> ...
> l.249 ...x\vbox{\ctxlua{userdata.printweaponTABLE()}
>                                                   }%
> -------------
>
> Maybe related to the prior bug (also overprinting numbers in the TABLE),
> will check again later.
>
>
> Best wishes,  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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>


-- 

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 'overprint' swallows leading number
  2017-01-06 19:01 ` Hans Hagen
@ 2017-01-06 20:19   ` Peter Rolf
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Rolf @ 2017-01-06 20:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 06.01.2017 um 20:01 schrieb Hans Hagen:
> On 1/6/2017 3:49 PM, Peter Rolf wrote:
>> Hi,
>>
>> title says it all.
> 
> \unexpanded\def\registercolorintent#1#2% \relax is needed !
> 
> {\setevalue{\??colorintent#1}{\attribute\colorintentattribute\clf_registercolorintent{#2}\relax}}
> 
>

Thanks, that fixed it. The overflow still occurs, will look deeper into it.

> 
>> (ConTeXt 2016.12.28 17:55)
>>
>> minimal example:
>> ------------
>> \starttext
>> \startluacode
>> local bCI,eCI = context.startcolorintent, context.stopcolorintent
>>
>> bCI({"overprint"})context("1.2345\\crlf")eCI() -- also no 'overprint'
>> for that text part in the PDF
>> bCI({"overprint"})context("First number is missing.\\crlf")eCI()
>>
>> \stopluacode
>> \stoptext
>> -------------
>>
>> I also get an overflow exception with one of my tables, but I could
>> 'fix' that with '\setupalign[nothyphenated]'. The table is complex (lua
>> generated), so no minimal example at hand. Anyhow, here the error
>> message (space-ali.mkiv).
>>
>> -------------
>> tex error       > tex error on line 13283 in file
>> g:/mydocs/TeX/dokumente/test/lua/titanfall2/titanfall2-weapons.mkiv: !
>> Arithmetic overflow
>>
>>
>> \setraggedness ...hsize /\dimexpr #1\relax \relax
>>                                                   \fi
>> \spac_align_set_horizontal_center ...dness_middle
>>                                                   \raggedstatus \plustwo
>> \at...
>> \raggedcommand ...pac_align_set_horizontal_center
>>                                                   \relax
>> \spac_align_set_ver...
>> \next ...th \pack_framed_do_setups \raggedcommand
>>                                                   \pack_framed_do_top
>> \bgrou...
>> \tabl_ntb_cell_process_b_c ...raltablelocalframed
>>                                                   {\tabl_ntb_cell_start
>> #5\t...
>> <inserted text> ...ass 1 34 \tabl_ntb_skip {6}\tabl_ntb_pass 1 40
>>                                                   \tabl_ntb_plus
>> \tabl_ntb_p...
>> ...
>> l.249 ...x\vbox{\ctxlua{userdata.printweaponTABLE()}
>>                                                   }%
>> -------------
>>
>> Maybe related to the prior bug (also overprinting numbers in the TABLE),
>> will check again later.
>>
>>
>> Best wishes,  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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki     : http://contextgarden.net
>> ___________________________________________________________________________________
>>
>>
> 
> 

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-06 20:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-06 14:49 'overprint' swallows leading number Peter Rolf
2017-01-06 19:01 ` Hans Hagen
2017-01-06 20:19   ` Peter Rolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).