Re: [Groff] How to add chinese font for groff?

2007-03-13 Thread Werner LEMBERG
> > Try this: > > > > .ds SUNEXT SUNEXT00 \ > > SUNEXT01 \ > > ... \ > > SUNEXTff > > > > .special \*[SUNEXT] > > > > > > Werner > > It works, though it takes longer time to finish than the assigned > one. Of course it is slower due to the seque

Re: [Groff] How to add chinese font for groff?

2007-03-13 Thread Jeff Zhang
On 3/14/07, Werner LEMBERG <[EMAIL PROTECTED]> wrote: > Using fontforge to find which chinese glyphs in the pfa file (like > sunex9a.pfa), then just input some of those glyphs will give a > correct ps file. If it can use groff's fallback mechanism, it > should work, however, I don't know how to

Re: [Groff] Vim/formatting question (WordPerfect files)

2007-03-13 Thread Tadziu Hoffmann
> Words are separated by a single character that displays > in vim as a (blue) couple of characters: ( ~@ ) and there > are other characters showing up as ( ^U, ^^, ^@, ) etc. > I know how to do regular expression search and replace for > control characters like ^U, but this ~@ stuff is something

Re: [Groff] Vim/formatting question (WordPerfect files)

2007-03-13 Thread Zvezdan Petkovic
On Tue, Mar 13, 2007 at 03:04:21PM -0700, Nick Stoughton wrote: > Try using tr ... The character '^@' is a null byte (for tr, this is > '\000'). You can strip out all control chars by: He asked about ~@, not [EMAIL PROTECTED] The easiest way to find what it represents is saving it in another file

Re: [Groff] Vim/formatting question (WordPerfect files)

2007-03-13 Thread Zvezdan Petkovic
On Tue, Mar 13, 2007 at 03:15:08PM -0600, Clarke Echols wrote: > Words are separated by a single character that displays in vim as > a (blue) couple of characters: ( ~@ ) and there are other characters > showing up as ( ^U, ^^, ^@, ) etc.I know how to do regular > expression search and replace

Re: [Groff] Vim/formatting question (WordPerfect files)

2007-03-13 Thread Nick Stoughton
Try using tr ... The character '^@' is a null byte (for tr, this is '\000'). You can strip out all control chars by: tr -d '[:cntrl:]' < xxx.wpd > xxx.txt (or, in vim: gg!Gtr -d '[:cntrl:]') This won't strip out chars with the top bit set, but read the man page! On Tue, 2007-03-13 at 15:15 -0

Re: [Groff] How to add chinese font for groff?

2007-03-13 Thread Werner LEMBERG
> Using fontforge to find which chinese glyphs in the pfa file (like > sunex9a.pfa), then just input some of those glyphs will give a > correct ps file. If it can use groff's fallback mechanism, it > should work, however, I don't know how to do it. :) Try this: .ds SUNEXT SUNEXT00 \

Re: [Groff] Vim/formatting question (WordPerfect files)

2007-03-13 Thread Gunnar Ritter
Clarke Echols <[EMAIL PROTECTED]> wrote: > I have been asked to evaluate a book project with the possibility > that I will be producing it for publication. The author sent me > a WordPerfect file (.wpd suffix) that my Microsoft stuff won't read. OpenOffice has a WordPerfect input filter, and fro

[Groff] Vim/formatting question (WordPerfect files)

2007-03-13 Thread Clarke Echols
This is only partly on/off topic, but I need help with a messy little problem. I have been asked to evaluate a book project with the possibility that I will be producing it for publication. The author sent me a WordPerfect file (.wpd suffix) that my Microsoft stuff won't read. Like Word, it's a

[Groff] Fw: savannah status

2007-03-13 Thread Werner LEMBERG
Savannah is down for two days or so... Werner --- Begin Message --- In case this is news to anyone: The server for savannah.gnu.org has experienced a complex hardware failure. Replacement parts are being shipped next-day air and should be installed the afternoon (EDT) of 14 Mar

Re: [Groff] groff html output, eqn and journals

2007-03-13 Thread Werner LEMBERG
> but for the dummies like me who are not using cvs regularly: the > home page states that one can download a development snapshot > (i.e. bypassing direct `cvs' use). I tried this but ended up with an > empty tar archive (not surprisingly,looking at the stated size in > `.../groff/devel'). quest

Re: [Groff] groff html output, eqn and journals

2007-03-13 Thread Frank Jahnke
> I wonder, though, about the divide-by-zero errors. It sounds to me > like something important isn't right. Can you recompile the > CVS version of groff and work with it? I can recompile, as long as the code is not too specific for Linux. I use FreeBSD. I think your observation that somethin

Re: [Groff] groff html output, eqn and journals

2007-03-13 Thread Frank Jahnke
On Mon, 2007-03-12 at 11:16 -0400, Eric S. Raymond wrote: > The good news is that there is probably a solution for you. > > The bad news is that it requires two pieces of software not yet released. > > If you run the development version of my doclifter program with CVS groff, > you should be ab

Re: [Groff] groff html output, eqn and journals

2007-03-13 Thread Joerg van den Hoff
On Mon, Mar 12, 2007 at 12:43:59PM +0100, Werner LEMBERG wrote: > > > Groff can produce decent HTML, but you have to work with it. > > You might try Eric's DocLifter for that. Since it works on the > high-level side (this is, parsing the input file and not the > intermediate output) and can hand

Re: [Groff] groff html output, eqn and journals

2007-03-13 Thread David A. Case
On Sun, Mar 11, 2007, Frank Jahnke wrote: > I have a paper set in groff, and I wish to submit it to a journal for > publication. Their standard line is to submit in DOC or RTF formats; It might be worth your time to explore alternatives to the "standard line". See if you can talk to someone at t

Re: [Groff] groff html output, eqn and journals

2007-03-13 Thread Eric S. Raymond
Joerg van den Hoff <[EMAIL PROTECTED]>: > > If you run the development version of my doclifter program with CVS groff, > > you should be able to generate DocBook-XML with embedded MathML. A program > > like xmlto might then be able to map it to RDF. > excluding the equations, I presume? Includin

Re: [Groff] How to add chinese font for groff?

2007-03-13 Thread Gunnar Ritter
Werner LEMBERG <[EMAIL PROTECTED]> wrote: > Whatever you do please bear in mind that the original groff doesn't > have real CJK typography support; contrary to LaTeX it's not possible > to implement inter-character stretching and breaking on the macro > level. > > Perhaps heirloom troff is better

Re: [Groff] How to add chinese font for groff?

2007-03-13 Thread Jeff Zhang
On 3/13/07, Jeff Zhang <[EMAIL PROTECTED]> wrote: On 3/13/07, Werner LEMBERG <[EMAIL PROTECTED]> wrote: > > > May I use the chinese pfb files converted by subfonts.pe from CJK > > package? > > Yes. However, I have never tried it actually. The idea would be to > use groff's fallback mechanism t

Re: [Groff] groff html output, eqn and journals

2007-03-13 Thread Joerg van den Hoff
On Mon, Mar 12, 2007 at 11:16:55AM -0400, Eric S. Raymond wrote: > Frank Jahnke <[EMAIL PROTECTED]>: > > I have a paper set in groff, and I wish to submit it to a journal for > > publication. Their standard line is to submit in DOC or RTF formats; > > needless to say, that is not helpful, particul

Re: [Groff] How to add chinese font for groff?

2007-03-13 Thread Jeff Zhang
On 3/13/07, Werner LEMBERG <[EMAIL PROTECTED]> wrote: > May I use the chinese pfb files converted by subfonts.pe from CJK > package? Yes. However, I have never tried it actually. The idea would be to use groff's fallback mechanism to make it automatically select the subfonts -- this is simila

Re: [Groff] How to add chinese font for groff?

2007-03-13 Thread Werner LEMBERG
> The document of grops gives a font installation guide, is it suite > for chines font and is it possible to embed chinese font into ps > file with grops? This is possible. However, since grops doesn't do font subsetting, it is advisable to do PS -> PDF -> PS to reduce the size (usually from