Re: text-decoration

2003-01-08 Thread Jeremias Maerki
Hi Oleg Wait a minute! I'm just about to commit a huge bunch of changes which includes TextInfo/FontState stuff. Not that I changed a lot. I've just got rid of stuff that wasn't used and I don't want you to have to change a lot again after my commit. On your question, I can't answer right away,

Re: FOP Style Guide (update)

2003-01-08 Thread Christian Geisert
Peter B. West wrote: Jeremias Maerki wrote: Since I've made the checkstyle.cfg file an integral part of our style guide I have to bring this up before changing: I'd like to add a line checkstyle.ignore.braces = yes. This enables one line ifs like the following: [..] if (isEnabled)

Re: text-decoration

2003-01-08 Thread Oleg Tkachenko
Jeremias Maerki wrote: Wait a minute! I'm just about to commit a huge bunch of changes which includes TextInfo/FontState stuff. Not that I changed a lot. I've just got rid of stuff that wasn't used and I don't want you to have to change a lot again after my commit. That's fine. -- Oleg

Re: FOP Style Guide (update)

2003-01-08 Thread Peter B. West
Christian Geisert wrote: Peter B. West wrote: Jeremias Maerki wrote: Since I've made the checkstyle.cfg file an integral part of our style guide I have to bring this up before changing: I'd like to add a line checkstyle.ignore.braces = yes. This enables one line ifs like the following:

DO NOT REPLY [Bug 15887] New: - blank pages, strange page-numbers

2003-01-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15887. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.

Re: FOP Style Guide (update)

2003-01-08 Thread Jeremias Maerki
I've got the same problem with that. I've found more than a few occurences of that last example in FOP. It would be nice to restrict that rule to one line ifs/fors/whiles. Having more than one line in total should mean having to use braces. Unfortunately, checkstyle doesn't support that. Maybe

Re: text-decoration

2003-01-08 Thread Keiron Liddle
Hello! How are we going to process underline/overline etc stuff? It's a little bit confusing - we've got unused TextState class along with TextInfo that includes text-decoration info already. Lets get rid of TextState ? And what about rendering, does pdf support text-decoration directly or

Re: FOP Style Guide (update)

2003-01-08 Thread Peter B. West
Jeremias Maerki wrote: Or if checkstyle could also check indentation... *That* would be extremely useful, and would solve the problem. Maybe a Python preprocessor Joke, folk. Peter -- Peter B. West [EMAIL PROTECTED] http://www.powerup.com.au/~pbwest/ Lord, to whom shall we go?

cvs commit: xml-fop/src/org/apache/fop/area/inline UnresolvedPageNumber.java

2003-01-08 Thread jeremias
jeremias2003/01/08 05:51:11 Modified:src/org/apache/fop/area/inline UnresolvedPageNumber.java Log: Removed dead code Revision ChangesPath 1.6 +3 -8 xml-fop/src/org/apache/fop/area/inline/UnresolvedPageNumber.java Index: UnresolvedPageNumber.java

cvs commit: xml-fop/src/org/apache/fop/fonts/truetype - New directory

2003-01-08 Thread jeremias
jeremias2003/01/08 05:52:12 xml-fop/src/org/apache/fop/fonts/truetype - New directory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

cvs commit: xml-fop/src/org/apache/fop/image ImageFactory.java

2003-01-08 Thread jeremias
jeremias2003/01/08 05:55:01 Modified:src/org/apache/fop/image ImageFactory.java Log: Lots of Javadocs Fixed Checkstyle errors Revision ChangesPath 1.13 +110 -104 xml-fop/src/org/apache/fop/image/ImageFactory.java Index: ImageFactory.java

cvs commit: xml-fop/src/org/apache/fop/layout FontInfo.java FontState.java FontDescriptor.java FontMetric.java

2003-01-08 Thread jeremias
jeremias2003/01/08 05:56:37 Modified:src/org/apache/fop/layout FontInfo.java FontState.java Removed: src/org/apache/fop/layout FontDescriptor.java FontMetric.java Log: Adjustments for the font refactoring Removal/commenting out of some dead code

cvs commit: xml-fop/src/org/apache/fop/pdf PDFCIDFont.java PDFDocument.java PDFFont.java PDFFontDescriptor.java PDFFontNonBase14.java PDFFontTrueType.java PDFFontType0.java PDFFontType1.java PDFFontType3.java PDFGState.java PDFICCStream.java PDFStream.java PDFT1Stream.java PDFTTFStream.java PDFWArray.java

2003-01-08 Thread jeremias
jeremias2003/01/08 05:57:24 Modified:src/org/apache/fop/pdf PDFCIDFont.java PDFDocument.java PDFFont.java PDFFontDescriptor.java PDFFontNonBase14.java PDFFontTrueType.java PDFFontType0.java PDFFontType1.java

cvs commit: xml-fop/src/org/apache/fop/render/awt AWTFontMetrics.java FontMetricsMapper.java FontSetup.java

2003-01-08 Thread jeremias
jeremias2003/01/08 05:58:25 Modified:src/org/apache/fop/render/awt AWTFontMetrics.java FontMetricsMapper.java FontSetup.java Log: Adjustments for the font refactoring Lots of Javadocs Fixed Checkstyle errors Revision ChangesPath 1.5 +27

cvs commit: xml-fop/src/org/apache/fop/render/pdf/fonts BFEntry.java LazyFont.java MultiByteFont.java SingleByteFont.java package.html

2003-01-08 Thread jeremias
jeremias2003/01/08 06:02:48 Modified:src/org/apache/fop/render/pdf EmbedFontInfo.java FontReader.java FontSetup.java PDFRenderer.java Removed: src/org/apache/fop/render/pdf CIDFont.java CMap.java Font.java

cvs commit: xml-fop/src/org/apache/fop/render/ps PSGraphics2D.java PSRenderer.java

2003-01-08 Thread jeremias
jeremias2003/01/08 06:03:35 Modified:src/org/apache/fop/render/ps PSGraphics2D.java PSRenderer.java Log: Adjustments for font refactoring Lots of Javadocs Fixed Checkstyle errors Revision ChangesPath 1.7 +125 -52

cvs commit: xml-fop/src/org/apache/fop/svg PDFTextPainter.java PDFGraphics2D.java

2003-01-08 Thread jeremias
jeremias2003/01/08 06:03:55 Modified:src/org/apache/fop/svg PDFTextPainter.java PDFGraphics2D.java Log: Adjustments for font refactoring Lots of Javadocs Fixed Checkstyle errors Revision ChangesPath 1.15 +17 -15

cvs commit: xml-fop/src/org/apache/fop/tools AreaTreeBuilder.java

2003-01-08 Thread jeremias
jeremias2003/01/08 06:04:29 Modified:src/org/apache/fop/tools AreaTreeBuilder.java Log: Adjustments for font refactoring Lots of Javadocs Fixed Checkstyle errors Revision ChangesPath 1.15 +101 -55 xml-fop/src/org/apache/fop/tools/AreaTreeBuilder.java

cvs commit: xml-fop build.xml

2003-01-08 Thread jeremias
jeremias2003/01/08 06:08:03 Modified:.build.xml Log: Base 14 fonts are now generated to org.apache.fop.fonts.base14 CodePointMapping is now generated to org.apache.fop.fonts Revision ChangesPath 1.70 +27 -38xml-fop/build.xml Index: build.xml

cvs commit: xml-fop checkstyle.header

2003-01-08 Thread jeremias
jeremias2003/01/08 06:08:46 Modified:.checkstyle.header Log: Update checkstyle.header for 2003 Revision ChangesPath 1.2 +1 -1 xml-fop/checkstyle.header Index: checkstyle.header ===

cvs commit: xml-fop/src/org/apache/fop/fo FOUserAgent.java PropertyManager.java

2003-01-08 Thread jeremias
jeremias2003/01/08 06:10:38 Modified:src/org/apache/fop/fo FOUserAgent.java PropertyManager.java Log: Adjustments for font refactoring Lots of Javadocs Fixed Checkstyle errors Revision ChangesPath 1.12 +74 -26xml-fop/src/org/apache/fop/fo/FOUserAgent.java

cvs commit: xml-fop/src/codegen font-file.xsl code-point-mapping.xsl

2003-01-08 Thread jeremias
jeremias2003/01/08 06:11:29 Modified:src/codegen font-file.xsl code-point-mapping.xsl Log: Adjustments for font refactoring Revision ChangesPath 1.12 +29 -15xml-fop/src/codegen/font-file.xsl Index: font-file.xsl

DO NOT REPLY [Bug 15855] - can't size the svg image in fo:external-graphic

2003-01-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15855. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.

Font refactoring

2003-01-08 Thread Jeremias Maerki
Hi there I've finally finished a multiday block of refactoring. Well, the refactoring alone didn't take so long. Javadocs and checkstyle took me two days. But we're down to a little bit under 4500 errors. :-) What did I do? - Moved the TrueType parsing classes to a subpackage

cvs commit: xml-fop/src/org/apache/fop/fo FOUserAgent.java

2003-01-08 Thread jeremias
jeremias2003/01/08 06:43:34 Modified:src/org/apache/fop/fo FOUserAgent.java Log: Revert a change that caused problems with images. Revision ChangesPath 1.13 +2 -2 xml-fop/src/org/apache/fop/fo/FOUserAgent.java Index: FOUserAgent.java

cvs commit: xml-fop status.xml

2003-01-08 Thread jeremias
jeremias2003/01/08 06:44:54 Modified:.status.xml Log: Add changes Revision ChangesPath 1.21 +11 -0 xml-fop/status.xml Index: status.xml === RCS file: /home/cvs/xml-fop/status.xml,v

cvs commit: xml-fop build.xml

2003-01-08 Thread jeremias
jeremias2003/01/08 06:45:12 Modified:.build.xml Log: Update for 2003 Revision ChangesPath 1.71 +1 -1 xml-fop/build.xml Index: build.xml === RCS file: /home/cvs/xml-fop/build.xml,v

cvs commit: xml-fop/src/org/apache/fop/fonts/truetype package.html

2003-01-08 Thread jeremias
jeremias2003/01/08 07:01:43 Modified:src/org/apache/fop/fonts LazyFont.java Added: src/org/apache/fop/fonts/truetype package.html Log: Javadoc fix package html for new truetype subpackage Revision ChangesPath 1.2 +2 -2

cvs commit: xml-fop/src/org/apache/fop/render/awt FontMetricsMapper.java

2003-01-08 Thread jeremias
jeremias2003/01/08 07:02:54 Modified:src/org/apache/fop/render/awt FontMetricsMapper.java Log: Javadoc fix (references were wrong) Revision ChangesPath 1.7 +11 -11xml-fop/src/org/apache/fop/render/awt/FontMetricsMapper.java Index: FontMetricsMapper.java

cvs commit: xml-fop/src/org/apache/fop/fonts/base14 - New directory

2003-01-08 Thread jeremias
jeremias2003/01/08 07:03:09 xml-fop/src/org/apache/fop/fonts/base14 - New directory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

cvs commit: xml-fop/src/org/apache/fop/fonts/base14 package.html

2003-01-08 Thread jeremias
jeremias2003/01/08 07:03:53 Added: src/org/apache/fop/fonts/base14 package.html Log: Package html for base14 subpackage Revision ChangesPath 1.1 xml-fop/src/org/apache/fop/fonts/base14/package.html Index: package.html

Re: FOP Style Guide (update)

2003-01-08 Thread J.Pietschmann
Peter B. West wrote: if (isEnabled()) { return true; } is absurd. Not necessarily. I it *much* easier to add a System.out.println() to this than to either if (isEnabled())return true; or if (isEnabled()) return true; If you are debugging code written by someone else, this

Re: FOP Style Guide (update)

2003-01-08 Thread J.Pietschmann
Jeremias Maerki wrote: I've got the same problem with that. I've found more than a few occurences of that last example in FOP. It would be nice to restrict that rule to one line ifs/fors/whiles. Having more than one line in total should mean having to use braces. I don't understand this: It has

Re: text-decoration

2003-01-08 Thread Jeremias Maerki
Hi Oleg On 08.01.2003 13:11:34 Oleg Tkachenko wrote: How are we going to process underline/overline etc stuff? It's a little bit confusing - we've got unused TextState class along with TextInfo that includes text-decoration info already. Lets get rid of TextState ? And what about rendering,

Re: FOP Style Guide (update)

2003-01-08 Thread Jeremias Maerki
Good point. On 08.01.2003 16:28:21 J.Pietschmann wrote: Peter B. West wrote: if (isEnabled()) { return true; } is absurd. Not necessarily. I it *much* easier to add a System.out.println() to this than to either if (isEnabled())return true; or if (isEnabled())

DO NOT REPLY [Bug 15887] - blank pages, strange page-numbers

2003-01-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15887. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.

Re: FOP Style Guide (update)

2003-01-08 Thread Peter B. West
J.Pietschmann wrote: Peter B. West wrote: if (isEnabled()) { return true; } is absurd. Not necessarily. I it *much* easier to add a System.out.println() to this than to either if (isEnabled())return true; or if (isEnabled()) return true; Agreed. If you are debugging

Re: FOP Style Guide (update)

2003-01-08 Thread Peter B. West
J.Pietschmann wrote: On 08.01.2003 14:23:36 Peter B. West wrote: And it adds just a spice of danger. I can live well without this. Spoilsport. Peter -- Peter B. West [EMAIL PROTECTED] http://www.powerup.com.au/~pbwest/ Lord, to whom shall we go?

Re: FOP Style Guide (update)

2003-01-08 Thread J.Pietschmann
Jeremias Maerki wrote: If only everybody would run the formatter...We're facing reality here. I do. We could add a Jalopy task to build.xml. We could refuse checkins which hadn't run checkstyle and source formatting. :) J.Pietschmann

Re: FOP Style Guide (update)

2003-01-08 Thread Arnd Beißner
Jeremias Maerki wrote: The following should (sorry, could) be ok: for (int i = 0; i 5; i++) { doSomething(); if (amIRight()) cool(); doSomethingElse(); } One point here: If it's not amIRight() but if (amIRight() || ( more stuff follows .) cool();

Re: FOP Style Guide (update)

2003-01-08 Thread Peter B. West
Arnd Beißner wrote: Jeremias Maerki wrote: The following should (sorry, could) be ok: for (int i = 0; i 5; i++) { doSomething(); if (amIRight()) cool(); doSomethingElse(); } One point here: If it's not amIRight() but if (amIRight() || ( more stuff follows

Antwort: Re: FOP Style Guide (update)

2003-01-08 Thread Arnd Beißner
Peter B. West wrote: This man must be one of them there anarchists. 8-) No, I once had to moderate a team of 15 programmers trying to agree on formatting. I learned you have to work with the Carrot-and-stick methodology. Meaning, in this context, force the few guidelines that really hurt if

File size improvements for PS renderer

2003-01-08 Thread Arnd Beißner
A question for 0.20.5: The PS renderer currently emits lots of redundant moveto instructions. By changing the current position logic in the renderer, I reduced file size to 50% (for my test files, contating few small images and lots of text in tables). I don't have a diff at hand, because I

RE: text-decoration

2003-01-08 Thread Victor Mote
Jeremias Maerki wrote: TextInfo looks better but could IMO be merged with FontState which only hold the font name and size and a link to the FontMetrics. Anyway, I think this merged class will be a candidate for the Flyweight pattern so we don't generate so many TextInfo/FontState objects

cvs commit: xml-fop/docs/examples/svg external.fo

2003-01-08 Thread chrisg
chrisg 2003/01/08 17:10:48 Modified:docs/examples/fo Tag: fop-0_20_2-maintain images.fo list.fo docs/examples/svg Tag: fop-0_20_2-maintain external.fo Log: corrected relative urls for external-graphic in examples Revision ChangesPath No

cvs commit: xml-fop/src/org/apache/fop/render/pdf PDFRenderer.java

2003-01-08 Thread chrisg
chrisg 2003/01/08 17:25:41 Modified:src/org/apache/fop/render/pdf Tag: fop-0_20_2-maintain PDFRenderer.java Log: (possible) fix for linux alpha jre (bug #13586) Revision ChangesPath No revision No

Encryption

2003-01-08 Thread Patrick C. Lankswert
To all, I tried to determine the reason from the archives with clarity... but why isn't PDF encryption in the core? Pat Lankswert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]

Re: Encryption

2003-01-08 Thread Jeremias Maerki
Hi Patrick Because still noone has started working on it? :-) It's one of the most requested features. On the other side, iText seems to work for those who want to add encryption. Would you like to help? We can use all the help we can get. On 09.01.2003 07:34:09 Patrick C. Lankswert wrote: I

Re: File size improvements for PS renderer

2003-01-08 Thread Jeremias Maerki
Hi Arnd I think so. Just file a patch to BugZilla as soon as possible. Just keep in mind that the FOP maintenance branch is (from our POV) in bugfixing-only mode. Additions from developers will probably get included but it'll be a dead end. We're looking for manpower to get the redesign to a