ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Natural tables introduces spaces in \type
@ 2014-11-07 13:44 Christoph Reller
  2014-11-10  7:18 ` Keith Schultz
  0 siblings, 1 reply; 12+ messages in thread
From: Christoph Reller @ 2014-11-07 13:44 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 391 bytes --]

On Fri, 7 Nov 2014 09:11:09 +0100
Alan Braslau <alan.braslau@cea.fr> wrote
> On Thu, 6 Nov 2014 16:15:36 +0100
> Christoph Reller <christoph.reller@gmail.com> wrote:
>
> > Of the above characters the following are disallowed on NTFS
>
> Not everyone uses NTFS.

Another reason for not making a "file-name cleaner" as such, but rather
restricting the characters to ascii.

Regards,
Christoph

[-- Attachment #1.2: Type: text/html, Size: 688 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Natural tables introduces spaces in \type
@ 2014-11-19 21:43 Christoph Reller
  0 siblings, 0 replies; 12+ messages in thread
From: Christoph Reller @ 2014-11-19 21:43 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1317 bytes --]

On 11/5/2014 21:50 PM, Christoph Reller wrote:
> On 11/5/2014 10:28 AM, Hans Hagen wrote:
> > On 11/5/2014 8:09 AM, Christoph Reller wrote:
> > > Thank you very much Hans!
> > >
> > > Maybe you could tell me why the following still produces a space in
> > > front of the full stop:
> > >
> > > \definetype[ctype][compact=absolute]
> > > \starttext
> > > \bTABLE
> > >    \bTR \bTD \ctype{\test.txt} \eTD \eTR
> > > \eTABLE
> > > \stoptext
> >
> > because the absolute cleaner only deals with \foo { and \foo [
> >
> > > If this issue is resolved I will be glad to wikify.
> >
> > i'll add the . to the filter criteria
>
> Thank you for the explanation.  I am not sure if it is a wise idea to add
> only "." (the full stop).  I tried the following characters, and they all
> are preceded by a space:
>
>   . - _ # % , ; @ !
>
> Basically, what I want is to write a file system path name such as
> C:\Path_to-my\file.ext.  The above characters are all valid file system
> characters.  Is there a better solution?  Or are you willing to add all
the
> above (maybe except for # and %) to the absolute cleaner?

For anybody interested in this: I have decided to resort to
\hyphenatedurl{...}. This means that I have to escape \ as \\, # as \# and
% as \letterpercent. Let me know if you have a better solution.

Christoph

[-- Attachment #1.2: Type: text/html, Size: 7221 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Natural tables introduces spaces in \type
@ 2014-11-06 15:15 Christoph Reller
  2014-11-07  8:11 ` Alan BRASLAU
  0 siblings, 1 reply; 12+ messages in thread
From: Christoph Reller @ 2014-11-06 15:15 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 991 bytes --]

On 11/6/2014 9:58 AM, Hans Hagen wrote:
> we could have a specific filename cleaner but of course there will be
> users who have paths that have spaces after the \ ... okay, we could
> just not support evil paths like that
>
> Hans

A rigorous filename cleaner would have to treat a huge number of possible
Unicodes. This is overkill. I believe the best would be to have a cleaner
for all ascii "symbols". That would fit most purposes of writing file names
and URIs:

  !#"$%&'*()+,-./:;<=>?@[\]^_`{|}~

Of the above characters the following are disallowed on NTFS:

  "*/:<>?|

Still I think they should be included in the cleaner. If % or # pose
problems then they may be omitted.

With the current "absolute"-cleaner, a space after \ is preserved
correctly, so I don't understand your comment:

\definetype[ctype][compact=absolute]\starttext
\bTABLE\bTR\bTD \ctype{\a\ b} \eTD\eTR\eTABLE\stoptext

I would be glad if you could implement such a "ascii-symbol"-cleaner.

Thanks,

Christoph

[-- Attachment #1.2: Type: text/html, Size: 1424 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Natural tables introduces spaces in \type
@ 2014-11-05 20:50 Christoph Reller
  2014-11-06  8:58 ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: Christoph Reller @ 2014-11-05 20:50 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1050 bytes --]

On 11/5/2014 10:28 AM, Hans Hagen wrote:
> On 11/5/2014 8:09 AM, Christoph Reller wrote:
> > Thank you very much Hans!
> >
> > Maybe you could tell me why the following still produces a space in
> > front of the full stop:
> >
> > \definetype[ctype][compact=absolute]
> > \starttext
> > \bTABLE
> >    \bTR \bTD \ctype{\test.txt} \eTD \eTR
> > \eTABLE
> > \stoptext
>
> because the absolute cleaner only deals with \foo { and \foo [
>
> > If this issue is resolved I will be glad to wikify.
>
> i'll add the . to the filter criteria

Thank you for the explanation.  I am not sure if it is a wise idea to add
only "." (the full stop).  I tried the following characters, and they all
are preceded by a space:

  . - _ # % , ; @ !

Basically, what I want is to write a file system path name such as
C:\Path_to-my\file.ext.  The above characters are all valid file system
characters.  Is there a better solution?  Or are you willing to add all the
above (maybe except for # and %) to the absolute cleaner?

Thank you in advance for your help.

Christoph

[-- Attachment #1.2: Type: text/html, Size: 1501 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Natural tables introduces spaces in \type
@ 2014-11-05  7:09 Christoph Reller
  2014-11-05  9:28 ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: Christoph Reller @ 2014-11-05  7:09 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 820 bytes --]

> On 11/2/2014 2:27 PM, Christoph Reller wrote:
> > Hi,
> >
> > Why does \type{...} introduce spaces when used inside natural tables?
> >
> > MWE:
> >
> > \starttext
> > \type{\test\test} %<- no space introduced
> > \bTABLE
> > \bTR \bTD \typ{\test\test} \eTD \eTR %<- space introduced
> > \eTABLE
> > \stoptext
>
> it's the way tex works (when passing arguments) .. you can use this (and
> wikify it):
>
> \definetype[ctype][compact=absolute]
>
> \bTABLE
>      \bTR \bTD \ctype{\test\test} \eTD \eTR
> \eTABLE

Thank you very much Hans!

Maybe you could tell me why the following still produces a space in front
of the full stop:

\definetype[ctype][compact=absolute]
\starttext
\bTABLE
  \bTR \bTD \ctype{\test.txt} \eTD \eTR
\eTABLE
\stoptext

If this issue is resolved I will be glad to wikify.

Regards,
Christoph

[-- Attachment #1.2: Type: text/html, Size: 1363 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Natural tables introduces spaces in \type
@ 2014-11-03 12:47 Christoph Reller
  0 siblings, 0 replies; 12+ messages in thread
From: Christoph Reller @ 2014-11-03 12:47 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 833 bytes --]

On 11/2/2014 2:54 PM, Hans Hagen wrote:
> On 11/2/2014 2:27 PM, Christoph Reller wrote:
> > Hi,
> >
> > Why does \type{...} introduce spaces when used inside natural tables?
> >
> > MWE:
> >
> > \starttext
> > \type{\test\test} %<- no space introduced
> > \bTABLE
> > \bTR \bTD \typ{\test\test} \eTD \eTR %<- space introduced
> > \eTABLE
> > \stoptext
>
> it's the way tex works (when passing arguments) .. you can use this (and
> wikify it):
>
> \definetype[ctype][compact=absolute]
>
> \bTABLE
>      \bTR \bTD \ctype{\test\test} \eTD \eTR
> \eTABLE

Thank you very much Hans!

Maybe you could tell me why the following still produces a space in front
of the full stop:

\definetype[ctype][compact=absolute]
\starttext
\bTABLE
  \bTR \bTD \ctype{\test.txt} \eTD \eTR
\eTABLE
\stoptext

Any feedback is welcome.

Regards,
Christoph

[-- Attachment #1.2: Type: text/html, Size: 1401 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Natural tables introduces spaces in \type
@ 2014-11-02 13:27 Christoph Reller
  2014-11-02 13:54 ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: Christoph Reller @ 2014-11-02 13:27 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 244 bytes --]

Hi,

Why does \type{...} introduce spaces when used inside natural tables?

MWE:

\starttext
\type{\test\test} %<- no space introduced
\bTABLE
\bTR \bTD \typ{\test\test} \eTD \eTR %<- space introduced
\eTABLE
\stoptext

Kind Regards,
Christoph

[-- Attachment #1.2: Type: text/html, Size: 428 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

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

end of thread, other threads:[~2014-11-19 21:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-07 13:44 Natural tables introduces spaces in \type Christoph Reller
2014-11-10  7:18 ` Keith Schultz
  -- strict thread matches above, loose matches on Subject: below --
2014-11-19 21:43 Christoph Reller
2014-11-06 15:15 Christoph Reller
2014-11-07  8:11 ` Alan BRASLAU
2014-11-05 20:50 Christoph Reller
2014-11-06  8:58 ` Hans Hagen
2014-11-05  7:09 Christoph Reller
2014-11-05  9:28 ` Hans Hagen
2014-11-03 12:47 Christoph Reller
2014-11-02 13:27 Christoph Reller
2014-11-02 13:54 ` Hans Hagen

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).