Re: [t2t] Re : non-breaking spaces in a table ?

2009-12-08 Thread storm 9C1
In a previous message, Forgeot Eric wrote:
>
> What about:
>
> %!postproc: '@sp@' ' '
>
> ?
>

Yes, this appears to work.  I actually tried this last night before you
replied but I used a tab instead.  I may also try assigning the macro
to a string of spaces and see if that works rather than listing out @sp@
a bunch of times.  That's a good solution for now.


> I've tried on opensolaris 2009.6, it seems the spaces are present, but I
> can't make your escape sequence to work on the first line so I can't see
> the table.

Are you using '\" te as the very first line, like in this nroff code
snip:

'\" et
..TH "blah" 1 "08 Dec 2009" "SCFWdevtools"

..SH NAME
..PP
blah \- do nothing quite effectively

..SH SYNOPSIS
..PP
\fBblah\fR \fI\-x \-y \-z [file ...]\fR




OpenSolaris is not the same as "corporate" Solaris 10.  And there is
no inidication that they will ever cross at this point.  I only work
with Solaris 10.  I'll look and see if I can get on an OpenSolaris
box to make sure '\" et works.

Thanks...

-- Tom




--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list


Re: [t2t] Re : non-breaking spaces in a table ?

2009-12-08 Thread Forgeot Eric
> Any idea how to do
> this in txt2tags
> man/nroff?  The non-blanking space solution may work
> great for HTML,
> but no idea how to do the same for man/nroff at the
> moment.

What about:

%!postproc: '@sp@' ' ' 

?

It's not very elegant, anyway it's working for me on Linux, but I can't tell 
for other unix:

|| Table Heading | Table Heading |
|  Table | align |
|  test space |  @sp@ @sp@ @sp@ @sp@ @sp@ @sp@ @sp@ @sp@ @sp@ @sp@ 
@sp@ @sp@ @sp@ @sp@ @sp@ @sp@ @sp@ @sp@ @sp@ @sp@ @sp@ @sp@ @sp@ @sp@ @sp@ @sp@ 
@sp@   |
|  with cell | nice! |

I've tried on opensolaris 2009.6, it seems the spaces are present, but I can't 
make your escape sequence to work on the first line so I can't see the table.



  

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list


Re: [t2t] Re : non-breaking spaces in a table ?

2009-12-07 Thread storm 9C1
In a previous message, Forgeot Eric wrote:
> I remember your problem but it was a bit complicated for me because I've
> never generated a man page from txt2tags.
>
> If you just want to add '\" et to the first line of your man page, you
> may try:
>
> %!postproc(man): ".TH" '\" et\n.TH
>

Thanks Eric.  I solved that already.  What I haven't solved yet is
similar to what the other person was asking...inserting whitespace into
a table -- but for man/nroff instead of HTML.  What I want to do is
force the borders out further.  Any idea how to do this in txt2tags
man/nroff?  The non-blanking space solution may work great for HTML,
but no idea how to do the same for man/nroff at the moment.

By the way, for the record, I will be submitting patches soon for
txt2tags if you guys want to implement them.  One patch will address
the '\" et issue for Solaris (it won't break any other platforms
because it will be seen as a comment on all others).  And the other
patch will be for .nf/.fi blocks on HP-UX.  Apparently HP-UX nroff
requires a .PP after .fi or else the entire rest of the document is
hosed.  This is why my tables were not working there, but it had
nothing to do with the tables.  It took me a while to find out that
everything after the nroff .fi (in t2t, using  ```) was broken.
My solution was just to change the ".fi" to ".fi\n.PP\n" in the
Python code for the man module.  Again, it works fine on all other
Unix platforms.  Do you folks see any problem with me submitting these
patches to you for review?

Thanks...

-- Tom



>
> Hope this can help.
>
> Regards
>
>   Eric
>
>
>
> --- En date de : Lun 7.12.09, storm 9C1  a
> écrit :
>
>> Is there a similar solution with man/*roff?
>>
>
>
>
>
>
> --
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> ___
> txt2tags-list mailing list
> https://lists.sourceforge.net/lists/listinfo/txt2tags-list




--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list


Re: [t2t] Re : non-breaking spaces in a table ?

2009-12-07 Thread Forgeot Eric
I remember your problem but it was a bit complicated for me because I've never 
generated a man page from txt2tags.

If you just want to add '\" et to the first line of your man page, you may try:

%!postproc(man): ".TH" '\" et\n.TH


Hope this can help.

Regards

  Eric



--- En date de : Lun 7.12.09, storm 9C1  a écrit :

> Is there a similar solution with man/*roff?
> 



  

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list


Re: [t2t] Re : non-breaking spaces in a table ?

2009-12-07 Thread storm 9C1

Is there a similar solution with man/*roff?

-- Tom


In a previous message, Forgeot Eric wrote:
> Hello,
>
> Maybe it's not the perfect solution, but here is a little trick which
> could solve your problem:
>
> Add this in the headers:
>
> %!postproc(xhtml): "WHITESPACE" ' '
>
> (you can replace WHITESPACE by what you wish, @@SPACE@@ for example)
> (you can also use it for xhtml or html)
>
>
> Then create your table like this:
>
> || Table Heading | Table Heading |
> |  Table | align |
> |  lines |  is   |
> | WHITESPACE  |WHITESPACE |
> |  with cell | nice! |
>
> Then the postproc directive will replace WHITESPACE with   in the
> final html document.
>
>
> And welcome to our new happy user of txt2tags ! :)
>
>
>
> --- En date de : Lun 7.12.09, Frédéric Lieutaud  a
> écrit :
>
>> Hello,
>>
>> I'm a new user to txt2tags and I'm struggling with
>> tables. I'd like to have empty cells shown (at least in
>> the html output) so I'd like to embed some kinds of
>> non-breaking spaces. If I write :
>
>
>
>
>
> --
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> ___
> txt2tags-list mailing list
> https://lists.sourceforge.net/lists/listinfo/txt2tags-list




--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list


[t2t] Re : non-breaking spaces in a table ?

2009-12-07 Thread Forgeot Eric
Hello,

Maybe it's not the perfect solution, but here is a little trick which could 
solve your problem:

Add this in the headers:

%!postproc(xhtml): "WHITESPACE" ' '

(you can replace WHITESPACE by what you wish, @@SPACE@@ for example)
(you can also use it for xhtml or html)


Then create your table like this:

|| Table Heading | Table Heading |
|  Table | align |
|  lines |  is   |
| WHITESPACE  |WHITESPACE |
|  with cell | nice! |

Then the postproc directive will replace WHITESPACE with   in the final 
html document.


And welcome to our new happy user of txt2tags ! :)



--- En date de : Lun 7.12.09, Frédéric Lieutaud  a écrit :

> Hello,
> 
> I'm a new user to txt2tags and I'm struggling with
> tables. I'd like to have empty cells shown (at least in
> the html output) so I'd like to embed some kinds of
> non-breaking spaces. If I write :



  

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list