Re: [Groff] PDF_IMAGE and MOM

2014-11-04 Thread Peter Schaffter
On Mon, Nov 03, 2014, Dale Snell wrote: > On Mon, 03 Nov 2014 16:36:04 + > Ralph Corderoy wrote: > > > BTW, your mombog.mom had a blank line at the start and the comments > > were lines starting `\#' rather than `.\#'. One or the other might > > have an affect on your attempt at A3 in mom, I

Re: [Groff] PDF_IMAGE and MOM

2014-11-04 Thread Peter Schaffter
On Mon, Nov 03, 2014, Dale Snell wrote: > BTW, out of my 'satiable curiosity, is mom being used by other > *roffs, or is it strictly Groff? Strictly groff since it relies the GNU extensions. It could probably be adapted for other roffs, but I haven't had the time to explore the situation. -- Pe

Re: [Groff] PDF_IMAGE and MOM

2014-11-03 Thread Dale Snell
On Tue, 4 Nov 2014 01:32:09 +0100 Ingo Schwarze wrote: > Hi Dale, > > Dale Snell wrote on Mon, Nov 03, 2014 at 02:21:09PM -0800: > > On Mon, 03 Nov 2014 21:23:32 + Keith Marshall wrote: > >> On 03/11/14 20:16, Dale Snell wrote: > >>> On Mon, 03 Nov 2014 16:36:04 + Ralph Corderoy wrote: >

Re: [Groff] PDF_IMAGE and MOM

2014-11-03 Thread Ingo Schwarze
Hi Dale, Dale Snell wrote on Mon, Nov 03, 2014 at 02:21:09PM -0800: > On Mon, 03 Nov 2014 21:23:32 + Keith Marshall wrote: >> On 03/11/14 20:16, Dale Snell wrote: >>> On Mon, 03 Nov 2014 16:36:04 + Ralph Corderoy wrote: BTW, your mombog.mom had a blank line at the start and the comme

Re: [Groff] PDF_IMAGE and MOM

2014-11-03 Thread Dale Snell
On Mon, 03 Nov 2014 21:23:32 + Keith Marshall wrote: > On 03/11/14 20:16, Dale Snell wrote: > > On Mon, 03 Nov 2014 16:36:04 + > > Ralph Corderoy wrote: > >> BTW, your mombog.mom had a blank line at the start and the comments > >> were lines starting `\#' rather than `.\#'. One or the ot

Re: [Groff] PDF_IMAGE and MOM

2014-11-03 Thread Keith Marshall
On 03/11/14 20:16, Dale Snell wrote: > On Mon, 03 Nov 2014 16:36:04 + > Ralph Corderoy wrote: >> BTW, your mombog.mom had a blank line at the start and the comments >> were lines starting `\#' rather than `.\#'. One or the other might >> have an affect on your attempt at A3 in mom, I don't kno

Re: [Groff] PDF_IMAGE and MOM

2014-11-03 Thread Dale Snell
On Mon, 03 Nov 2014 16:36:04 + Ralph Corderoy wrote: > BTW, your mombog.mom had a blank line at the start and the comments > were lines starting `\#' rather than `.\#'. One or the other might > have an affect on your attempt at A3 in mom, I don't know. "\#" is a _groff_ comment, not mom's.

Re: [Groff] PDF_IMAGE and MOM

2014-11-03 Thread mikkel meinike
Ralph wrote: > lines starting `\#' rather than `.\#'. One or the other might have an :-) ah okay so I misunderstood how to "out-comment" a line. Funny. I will change that. Thanks for your tips, it is all very inspiring. Thanks for taking that closer look on my mombog.mom code. Mikkel

Re: [Groff] PDF_IMAGE and MOM

2014-11-03 Thread Ralph Corderoy
Hi Mikkel, > I use sam2p to convert PNM image to PDF (I can highly recommend the > small program sam2p). When I later try to find the image bounding box > using this command > > gs -q -dBATCH -dNOPAUSE -sDEVICE=bbox .pdf 2>&1 \ | grep > "%%BoundingBox" | cut -d " " -f4,5 > > Could I see the imag

Re: [Groff] PDF_IMAGE and MOM

2014-11-02 Thread Ingo Schwarze
Hi Mikkel, mikkel meinike wrote on Sun, Nov 02, 2014 at 08:31:08PM +0100: > Ulrich Lauther wrote: >> rose=${1%.pnm} > Thank you ulrich. That is a good tip. Yes bash can do a lot of things > by it self. I tend to always use the external commands. Note that in portable software (and for build

Re: [Groff] PDF_IMAGE and MOM

2014-11-02 Thread mikkel meinike
> rose=${1%.pnm} Thank you ulrich. That is a good tip. Yes bash can do a lot of things by it self. I tend to always use the external commands. Mikkel

Re: [Groff] PDF_IMAGE and MOM

2014-11-02 Thread Ulrich Lauther
On Sun, Nov 02, 2014 at 11:45:48AM +0100, mikkel meinike wrote: > > #Removes the file extension so I only have the base name > > rose=`echo "$1" |sed 's/.pnm//'` > A simpler way: rose=${1%.pnm} Cheers, ulrich