Re: config: interaction between font substitutions and embed-url

2014-07-16 Thread Jason Harrop
t setup may be just happening once > and then reused. > > > On Wed, Jul 16, 2014 at 4:12 AM, Jason Harrop wrote: >> >> Hi all, I'm seeing something which seems a little strange to me.. >> >> With the fop config below, the first time it is set (via >> fo

config: interaction between font substitutions and embed-url

2014-07-15 Thread Jason Harrop
Hi all, I'm seeing something which seems a little strange to me.. With the fop config below, the first time it is set (via fop.apps.FopConfParser, using March 19 2014 code) , it seems unable to use the destination fonts:- ERROR org.apache.fop.fonts.substitute.FontSubstitutions .adjustFontInfo lin

Re: preserving a trailing space in inline

2014-05-20 Thread Jason Harrop
; snippet (the one I've extended from yours is OK) plus PDF output. > > Fortunately, I've found a workaround: > Just add a character AFTER the PNCL element other than a regular white space. > The ZWSP (Zero Width SPace, AKA ​) will do the trick (see > attached snippet). >

Re: preserving a trailing space in inline

2014-05-19 Thread Jason Harrop
able to clearly say where the 'space is lost'. > > Manuel > > -Original Message- > From: Jason Harrop [mailto:jhar...@gmail.com] > Sent: Tuesday, 20 May 2014 11:04 AM > To: fop-users@xmlgraphics.apache.org > Subject: Re: preserving a trailing space in inl

Re: preserving a trailing space in inline

2014-05-19 Thread Jason Harrop
Hi Terence, thanks, it's good to know the simple FO works fine! Its non trivial for me to get rid of the inline elements, although I could get rid of the nested ones if it is these which are causing the problem. I'll look into that, but it would still be useful to get confirmation as to which of

preserving a trailing space in inline

2014-05-19 Thread Jason Harrop
Hi, in the following FO, I'm losing the space between the word "page" and page-number-citation-last. Page No: of

Re: replace commons logging with slf4j

2014-05-18 Thread Jason Harrop
Hi Chris SLF4J is a widely used logging facade, which allows you - the FOP user - to use your preferred concrete logging framework (ie the one you use in the rest of your application), as opposed to having to grapple with the logging framework that at some point in time long ago seemed best to the

replace commons logging with slf4j

2014-04-23 Thread Jason Harrop
Any chance for FOP 2.0 of replacing commons-logging with slf4j? Would also need to be done in xmlgraphics commons. In the meantime, using jcl-over-slf4j instead of commons-logging works; see http://www.slf4j.org/legacy.html But it be nice not to need even that. thanks .. Jason On Tue, Jun 4

Re: right align arabic in table-cell

2014-03-23 Thread Jason Harrop
, Glenn Adams wrote: > > On Thu, Mar 20, 2014 at 2:03 PM, Jason Harrop wrote: >> >> Its a Word document I'm converting to FO, and in it, bidi is a >> paragraph level property: >> >> http://webapp.docx4java.org/OnlineDemo/ecma376/WordML/bidi_1.html

Re: right align arabic in table-cell

2014-03-20 Thread Jason Harrop
s are right aligned by the bidi property). On Fri, Mar 21, 2014 at 1:26 AM, Glenn Adams wrote: > > > > On Wed, Mar 19, 2014 at 10:22 PM, Jason Harrop wrote: >> >> Bummer. I guess I could nest a table in the table-cell. Any reason >> that wouldn't work? >

Re: right align arabic in table-cell

2014-03-20 Thread Jason Harrop
L/Format"; > blah It does work when @writing-mode is on a table which isn't nested; is there some logic by which nested tables work differently? On Thu, Mar 20, 2014 at 3:22 PM, Jason Harrop wrote: > Bummer

Re: right align arabic in table-cell

2014-03-19 Thread Jason Harrop
Bummer. I guess I could nest a table in the table-cell. Any reason that wouldn't work? On Thu, Mar 20, 2014 at 2:33 PM, Glenn Adams wrote: > > > On Wed, Mar 19, 2014 at 5:44 PM, Jason Harrop wrote: >> >> Hi Glenn >> >> Thanks very much for that. >&g

Re: right align arabic in table-cell

2014-03-19 Thread Jason Harrop
hing higher up the tree. Note that specifying a RTL WM on fo:table > causes columns to be numbered from right to left, i.e., the first column > will be right-most. > > [1] http://www.w3.org/TR/2006/REC-xsl11-20061205/#prapply > > > > > On Wed, Mar 19, 2014 at 12:12 AM, Jason Ha

right align arabic in table-cell

2014-03-18 Thread Jason Harrop
Hi, What's the correct way to write align a block of arabic in an individual table-cell? I found that with writing-mode="rl-tb", it was also necessary to add text-align="end" المدينة thanks .. Jason ---

symbol font, versus symbolMT

2014-02-18 Thread Jason Harrop
With this FOP config: true : I'd like to render: µ But FOP (1.1) says: WARN org.apache.fop.apps.FOUserAgent .processEvent line 94 - Glyph "µ" (0xb5, mu) not available in font "SymbolMT". Is it getting confused because symbol is a Ba

Re: post 1.1 config changes

2013-04-19 Thread Jason Harrop
pe that helps, > > Mehdi > > > On 8 November 2012 09:53, Jason Harrop wrote: > >> Hi Mehdi >> >> Thanks for your reply. I'm happy I can write configuration code for >> current SVN head. But my question is whether anyone has produced/shared >&

Re: using FOP to convert RTF to FO

2013-02-20 Thread Jason Harrop
Another solution would be to use LibreOffice/OpenOffice via JODConverter to convert binary .doc or rtf to docx, and then use docx4j or POI. That way, you avoid the need for MS Word at run-time. On Mon, Dec 10, 2012 at 5:15 PM, sareth wrote: > hello everyone, thank you very much for your replies

Re: post 1.1 config changes

2012-11-08 Thread Jason Harrop
pache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ > [2] http://wiki.apache.org/xmlgraphics-fop/FopFactoryConfiguration > > > On 8 November 2012 01:54, Jason Harrop wrote: > >> I maintain the docx4j project >> >> I reported https://issues.apa

post 1.1 config changes

2012-11-07 Thread Jason Harrop
I maintain the docx4j project I reported https://issues.apache.org/bugzilla/show_bug.cgi?id=54094 which was apparently fixed in July, but didn't make it into FOP 1.1 (just released). So, I thought I'd test a FOP nightly (20121107) to verify it has been fixed. But config seems to have changed ext

Re: [ANN] Apache XML Graphics Commons 1.4 Released

2010-07-14 Thread Jason Harrop
That's great news, thanks. Are steps underway to produce a maven artifact as per http://wiki.apache.org/xmlgraphics/Maven cheers Jason On Sun, Jul 11, 2010 at 12:21 AM, Simon Pepping wrote: > The Apache XML Graphics team is pleased to announce a new re

Re: Does FOP support HTML output?

2010-03-28 Thread Jason Harrop
See https://xhtmlrenderer.dev.java.net/ and https://pdf-renderer.dev.java.net/ On Mon, Mar 29, 2010 at 11:42 AM, wrote: > > Use Xalan and a stylesheet to convert xml to html.  I use this to convert > our xml to csv. > > > David Hoffer wrote on 03/27/2010 12:20:41 PM: > >> I'm looking for a too

Re: Looking for help, including consulting, with font selection

2010-01-03 Thread Jason Harrop
I don't have a font called "MS Gothic" on my XP / Word 2007 PC, so i've used "Century Gothic" instead, but subject to that, and assuming the relevant fonts are available, isn't this just: A =E3=81=82 with a config such as: true

Re: Font registration

2009-04-05 Thread Jason Harrop
For what its worth, here is how I do (1) and (2): (1) http://dev.plutext.org/trac/docx4j/browser/trunk/docx4j/src/main/java/org/docx4j/fonts/PhysicalFonts.java (2) http://dev.plutext.org/trac/docx4j/browser/trunk/docx4j/src/main/java/org/docx4j/convert/out/pdf/viaXSLFO/Conversion.java Feel f

Re: Font registration

2009-03-24 Thread Jason Harrop
This wasn't my thread, and I don't mean to take it over, but when I was trying to do this last Friday I saw that PrintRenderer has addFontList(List fontList), and thought that all I needed was to access PrintRenderer. But that I couldn't do (unless I set up my own from scratch?). So I do more or

Re: Font registration

2009-03-24 Thread Jason Harrop
> It's a known issue that programmatic font configuration is not ideal at > the moment. I see two possible routes short of doing the full > refactoring of the font subsystem that would be the ideal solution but > take a lot of effort: If the font subsytem were to be refactored, it would be great i

Re: ArrayIndexOutOfBoundsException in StaticPropertyList.get

2009-03-23 Thread Jason Harrop
n > sometimes when updating the working copy after some changes in FOP's > source code. I've had that a number of times. > > On 21.03.2009 14:16:24 Jason Harrop wrote: >> Hi >> >> With the simple document below, on Windows I'm getting the stacktrace >>

ArrayIndexOutOfBoundsException in StaticPropertyList.get

2009-03-21 Thread Jason Harrop
Hi With the simple document below, on Windows I'm getting the stacktrace which follows it. What is strange is that the document works fine on a Linux box running the same fop jar, built using SVN head from yesterday (r756434) The Arial Unicode MS font is present on both platforms. Any idea what

Patch to read Panose info from a truetype font

2008-03-08 Thread Jason Harrop
Hi Here is a little patch which reads Panose info from the OS2 table in TTFFile for anyone who may need it. http://dev.plutext.org/trac/docx4j/browser/trunk/docx4j/src/main/resources/fop-patch-panose.patch This is useful if you are trying to find a similar font to substitute for one which is mis