Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

underlined sentences troubles when converting to man pages #20

Open
GoogleCodeExporter opened this issue Apr 18, 2015 · 4 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. edit your manpage http://txt2tags.sourceforge.net/manpage.t2t
2. add something (at least 2 words) you want to underline __plop plip__
3. convert and see

What is the expected output? What do you see instead?
I expect to see all words and the spaces between them underlined but
nothing is underlined.

What version of the product are you using? On what operating system?
txt2tags-2.5, python-2.6.2, slackware package : http://txt2tags.javila.net/
on  slackware-13.0 and salix OS.

++ fredg


Original issue reported on code.google.com by fred.galusik@gmail.com on 13 Dec 2009 at 2:52

@GoogleCodeExporter
Copy link
Author

The last time I've checked, the man page format (nroff/groff) didn't have a 
specific tag 
for underlined text, that's why underline doesn't work in man.

If that has changed and now man has an underline tag, please let me know.

Original comment by aureliojargas@gmail.com on 14 Dec 2009 at 11:52

@GoogleCodeExporter
Copy link
Author

Here is what I can find in the Nroff/Troff User's manual
(http://heirloom.sourceforge.net/doctools/troff.pdf)(p.40) :

----------
Request Form: .ul N
Initial value: off
If no argument: N=1

Explanations: Underline in nroff (italicize in troff) the next N input text 
lines.
Actually, switch to underline font, saving the current font for later 
restoration;
other font changes within the span of a ul will take effect,
but the restoration will undo the last change.
Output generated by tl (§14) is affected by the font change,
but does not decrement N. If N>1, there is the risk that a
trap interpolated macro may provide text lines within the span;
environment switching can prevent this.
----------------

Hope this help.

++ fredg

Original comment by fred.galusik@gmail.com on 15 Dec 2009 at 5:38

@GoogleCodeExporter
Copy link
Author

I've looked at this, the problem is .UL seems to be for paragraphs (or lines), 
so while we can write \fBbold\fR for bold, I don't find a specific syntax for 
underline.
.ULunderline.RE. is not workink, and not \fULunderline\fR either.

Btw, 
.UL
underlined ?
RE.

doesn't underline the text, and \fIitalic\fR is underlined in the man pages, 
but italic in the postscript output.


Original comment by eforg...@gmail.com on 7 Aug 2012 at 11:57

@GoogleCodeExporter
Copy link
Author

As there's is no italic font, man pages use underline to mark the emphasis. If 
you test html output with some text browsers, you will have sometimes the same 
behavior.

Original comment by fgalla...@gmail.com on 8 Aug 2012 at 2:31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant