[NTG-context] Quotation dash issues with semantic markup

2019-12-29 Thread Sam May
Any of you able to help me get my quotation dashes into line when 
automatically inserted by the semantic commands?  I'm sure a number of you 
look at this style and cringe, but A. I'm not looking for grammatical input, 
and B. I'm intending this for a non-English language where the quotation dash 
(though still not most common) isn't as out of place.

See attachment for actual examples, but I'm looking for a dash at each side of 
the quotation, /except/ at the very end of a paragraph.  I additionally want 
dialogue tags (via \aside, and located within quotations) to not print their 
surrounding decoration if they're directly next to the larger dash of the 
quotation.  Unfortunately, the only way I can think of doing the first is by 
checking if the next token's \par, and that gets thrown off by the internal 
logic of \quotation; I'm not at all sure how to start going about the asides.

It would also be nice if a quote ending in a period carried the 'broad' 
spacing to the other side of the (ending) quote dash -- the dash before 'Also' 
in the examples would be packed on the left and broad on the right.  I know 
this might be a lot trickier to code, and only consider it a bonus.

An additional issue with \removeunwantedspaces only seems to affect the 
command forms.  When inserted directly, the spacing acts as desired in the PDF 
(as expected, the XML doesn't understand the order).  Also, the right |>| 
doesn't require either of the explicit spacing instructions (beyond being 
non-breaking) while the others do.

The quotation dash itself only /looks/ as I want it; when I highlight and copy 
the text or export it to the XML backend, it's still two dashes next to each 
other.  Instead, I'd like it to be the Unicode bar U+2015.  I'm not sure if 
TEX/LUATEX allows that difference between appearance and interaction (I do 
know PDF does), so if there's some way of adding a new glyph to the font -- 
one that mimics the other dashes even if the font changes -- I'd love to 
actually use the proper codepoint.  As is, that doesn't work in the standard 
font(s).

Thanks for the help!  I know it's quite a bit of an ask.

Sam


exmp-dialogue.tex
Description: TeX document


signature.asc
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Jeong Dal
Dear Wolfgang,

Now, I understand why the error messages “\texfont0 is undefined”, “ you used 
the started character from an undefined font family.” are appeared.

Thank you for your clear explanation.

Best regards,

Dalyoung


>> 3. removing \starttext, \stoptext, and functionstyle=“math”, it worked. 
>> However the caption 
>> “x=[…];  y=[….]” is overlapped.
> 
> ConTeXt doesn't preload fonts and only when no font was set untill \starttext 
> latin modern is used as fallback font at this point.
> 
> When you omit \starttext no font is loaded and when you use math mode (which 
> is the case when you use funtionstyle=math) the error message appears. 
> Another fallback in this case it to load a monospaced font in horizontal or 
> vertical boxes which is what you set in your example when you remove 
> \starttext.




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


Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Wolfgang Schuster

Jeong Dal schrieb am 29.12.2019 um 14:33:

Dear Hans,

I run the following code which is in page 24,25 luametafun.pdf.

1. adding \starttext and \stoptext, it works fine. No overlapping.
Also, functionstyle = “math” is working nicely.

2. removing \starttext and \stoptext, then functionstyle =“math” 
invoked an error.


3. removing \starttext, \stoptext, and functionstyle=“math”, it 
worked. However the caption

“x=[…]; y=[….]” is overlapped.


ConTeXt doesn't preload fonts and only when no font was set untill 
\starttext latin modern is used as fallback font at this point.


When you omit \starttext no font is loaded and when you use math mode 
(which is the case when you use funtionstyle=math) the error message 
appears. Another fallback in this case it to load a monospaced font in 
horizontal or vertical boxes which is what you set in your example when 
you remove \starttext.


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


Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Jeong Dal
Dear Hans,

I run the following code which is in page 24,25 luametafun.pdf.

1. adding \starttext and \stoptext, it works fine. No overlapping. 
Also, functionstyle = “math” is working nicely.

2. removing \starttext and \stoptext, then functionstyle =“math” invoked an 
error.

3. removing \starttext, \stoptext, and functionstyle=“math”, it worked. However 
the caption 
“x=[…]; y=[….]” is overlapped.

%\starttext
\startMPcode{doublefun} 
draw lmt_contour [
xmin = 0, xmax = 4*pi, xstep = .05,
ymin = -6, ymax = 6, ystep = .05,
levels = 7,
height = 5cm,
preamble = "local sin, cos = math.sin, math.cos",
function = "cos(x)+sin(y)",
%functionstyle = "math",
background = "bitmap",
foreground = "edge",
linewidth = 1/2,
cache = true,
]; 
\stopMPcode
%\stoptext


Thank you so much.

Best regards,

Dalyoung

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


Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Hans Hagen

On 12/28/2019 9:27 PM, Jeong Dal wrote:

Dear Hans,

Thank you for the fix.
Background color is OK now.

A new problem in the caption:
Since width of the figure is narrower than the width of the line
"x = [0,12.555]; y = [-6,6];”,
“y  =“ is written over 12.555.

Is there any option to suppress the caption x, y since there are numbers of x 
and y in the figure already?
btw, you can check mp-lmtx.mpxl for the code ... it's not that hard to 
follow and see what the options do (mostly user interfacing)


Hans

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


Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Hans Hagen

On 12/28/2019 9:27 PM, Jeong Dal wrote:

Dear Hans,

Thank you for the fix.
Background color is OK now.

A new problem in the caption:
Since width of the figure is narrower than the width of the line
"x = [0,12.555]; y = [-6,6];”,
“y  =“ is written over 12.555.

Is there any option to suppress the caption x, y since there are numbers of x 
and y in the figure already?

new MWE needed

Hans

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


Re: [NTG-context] Coding for new Unicode characters

2019-12-29 Thread Hans Hagen

On 12/29/2019 3:50 AM, Richard Mahoney | Indica et Buddhica wrote:

Just to say that I seem to have resolved this (& properly I hope).

I read these two pages:

https://www.contextgarden.net/Faking_characters

https://source.contextgarden.net/tex/context/base/mkiv/enco-ini.mkiv?search=textcedilla

and have included the following with my setups:

% Additional Characters
\definecharacter llowmacron {\buildtextmacron l}
\definecharacter Llowmacron {\buildtextmacron L}
\definecharacter nlowmacron {\buildtextmacron n}
\definecharacter Nlowmacron {\buildtextmacron N}
\definecharacter rlowmacron {\buildtextmacron r}
\definecharacter Rlowmacron {\buildtextmacron R}

\define\lLM{\llowmacron}
\define\LLM{\Llowmacron}
\define\nLM{\nlowmacron}
\define\NLM{\Nlowmacron}
\define\rLM{\rlowmacron}
\define\RLM{\Rlowmacron}



This seems to do it, although if there is a better way please feel
free to say.

\definefontfeature[default][default][compose=yes]

\starttext
ṉṈḻḺṟṞ
\stoptext

So now you have to wikify both methods ... (this is one of those wiki 
pages that still describes mkii i guess, but you can ask Pavneet about 
the best place).


Hans

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