Re: font-family and font names list

2002-04-01 Thread Togan Muftuoglu
* Oleg Tkachenko; [EMAIL PROTECTED] on 01 Apr, 2002 wrote:
Wayne Elliott wrote:
[ERROR]: unknown font sans-serif, Arial, Helvetica, Geneva,italic,normal 
so defaulted font to any

then try
... font-family= sans-serif 
no error, it works.
Well, it seems to me Mr. J.Pietschmann is right, fop gets it as string 
so font list is unsupported feature.

Sorry I may have missed the thread but if you use a onfiguration file
and define the fonts and their names in it you can use these fonts,
currently I am using truetype fonts by this method here is 
--
Togan Muftuoglu

snipped from userconfig.xml
!--

 Add fonts here

--
font metrics-file=ttfarial.xml kerning=yes embed-file=arial.ttf
   font-triplet name=Arial style=normal weight=normal/
   font-triplet name=ArialMT style=normal weight=normal/
/font
font metrics-file=ttfarialbd.xml kerning=yes embed-file=arialbd.ttf
   font-triplet name=Arial style=normal weight=bold/
   font-triplet name=ArialMT style=normal weight=bold/
/font
font metrics-file=ttfariali.xml kerning=yes embed-file=ariali.ttf
   font-triplet name=Arial style=italic weight=normal/
   font-triplet name=ArialMT style=italic weight=normal/
/font
font metrics-file=ttfarialbi.xml kerning=yes embed-file=arialbi.ttf
   font-triplet name=Arial style=italic weight=bold/
   font-triplet name=ArialMT style=italic weight=bold/
/font
font metrics-file=times.xml kerning=yes embed-file=times.ttf
font-triplet name=TimesNewRoman style=normal weight=normal/
font-triplet name=Times Roman  style=normal weight=normal/
/font
font metrics-file=timesi.xml kerning=yes embed-file=timesi.ttf
font-triplet name=TimesNewRoman style=italic weight=normal/
font-triplet name=Times Roman  style=italic weight=normal/
/font
font metrics-file=timesbd.xml kerning=yes embed-file=timesbd.ttf
font-triplet name=TimesNewRoman style=normal weight=bold/
font-triplet name=Times Roman  style=normal weight=bold/
/font
font metrics-file=timesbi.xml kerning=yes embed-file=timesbi.ttf
font-triplet name=TimesNewRoman style=italic weight=bold/
font-triplet name=Times Roman  style=italic weight=bold/
/font
/configuration


--



Re: FOP 25RC: Double Sided Layout

2003-01-11 Thread Togan Muftuoglu
* Jeremias Maerki; [EMAIL PROTECTED] on 10 Jan, 2003 wrote:
On 10.01.2003 18:25:54 Stephan Wiesner wrote:
I use DocBook XSL styles, latest version 1.58.1. The PDF generation with 
the default style works. I set two parameters, one to turn on double 
sided layout (this alone works) and the genaration of the boomarks 
(displayed in the Acrobat Reader on the left). The second option 
terminates the transformation with a 'null'.
do you mean fop.extensions=1 if so you need to say also use.extensions=1
Ok, still too little information. Are you sure that FOP and not the XSLT
processor shows the error message? Could you try to enable debugging? I
don't know how FOP is called in your environment. For the FOP command
line this is -d.  When embedded the logger must be set to DEBUG level.
Could you then post the full error message together with the stacktrace
and maybe some XML/XSL files nicely zipped up?
Maybe someone with DocBook experience could check if this problem can be
reproduced?
No it works for me both using 0.20.4 and 0.20.5rc from the CVS
--
Togan Muftuoglu
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Generating DocBook table to PDF

2003-02-06 Thread Togan Muftuoglu
* J.Pietschmann; [EMAIL PROTECTED] on 06 Feb, 2003 wrote:
Jeremy Roedde wrote:
I am having major problems using FOP to generate docbook tables into 
PDF. It conforms to the DTD and using the latest docbook xsl.  I am 
getting the follwing error and terminates fop when attempting:
 
[ERROR] org.apache.fop.apps.FOPException: Flow 'xsl-region-body' does 
not map to the region-body in page-master 'blank'
 
Any ideas?
This indicates a mismatch between the region name declared on the
flow and the actual page master's body region. This is most probably
a bug in the DocBook XSL, ask there.
This is probably version 1.60.0 Upgrade to 1.60.1  is highly recommened
as FOP produces less warnings now 

--
Togan Muftuoglu
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: docbook, xmlto, FOP and hyuphenation

2003-04-14 Thread Togan Muftuoglu
* Robert P. J. Day; [EMAIL PROTECTED] on 13 Apr, 2003 wrote:
with a single stylesheet fragment.  but there's no parameter
which specifies hyphenation *country* as far as i can see.
so, at the moment, i don't see how to use this technique
to specify that i want my hyphenation country to be en_GB
using this technique.
use of the following parameter in your customization
xsl:param name=l10n.gentext.default.language select='en_GB'/
will do the trick 
--

Togan Muftuoglu
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Orderedlists nesting variablelists

2003-05-07 Thread Togan Muftuoglu
Hi,
I hope I have found a correct subject describing what I am trying to achieve.
When I have an orderedlist which includes variablelists then with FOP
0.20.5rc3 (built from CVS) the outcome is
1.
First Term
This is the first para of first term which is the first list item of the
ordered list
2.
Second Term
this is the par of second term
This is a normal paragraph and now the following list will continue from
the numbereing where it was left
Second nested orderedlist
Where as, if I use XEP the outcome is correct
1. First Term
This is the first para of first term which is the first list item of the
ordered list
2. Second Term
this is the par of second term
This is a normal paragraph and now the following list will continue from
the numbereing where it was left
Second nested orderedlist
So the question is what can it be done to fix the FOP output in the
aspect of customizing the stylesheet as I do not see this as a bug for
the stylesheet and yet a missing (unimplemented ) feature in FOyet a
missing (unimplemented ) feature in FOP
Attached are sample document and the stylesheet ideas are welcomed
--
Togan Muftuoglu
?xml version=1.0 encoding=utf-8?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
   xmlns:fo=http://www.w3.org/1999/XSL/Format;
   version=1.0
xsl:import
href=http://docbook.sourceforge.net/release/xsl/snapshot/fo/docbook.xsl/
!-- used for debugging purposes --
xsl:output method=xml indent=yes/
!-- load fop extension support --
xsl:param name=fop.extensions select=1/
xsl:param name=xep.extensions select=0/
 !--  
  This is common for all stylesheets so this should be imported before
  anything else. 
  * --
xsl:param name=use.extensions select='1'/
xsl:param name=saxon.extensions select='0'/
xsl:param name=xalan.extensions select='1'/
xsl:param name=tablecolumns.extension select='1'/
xsl:param name=callout.unicode select=1/
xsl:param name=callout.graphics select='0'/
xsl:param name=hyphenatetrue/xsl:param
xsl:param name=section.autolabel select=1/
xsl:param name=section.label.includes.component.label select=1/
xsl:param name=qanda.inherit.numeration select=0/
xsl:param name=footer.rule select=0/
xsl:param name=headers.on.blank.pages select=0/
xsl:param name=footers.on.blank.pages select=0/
!-- Paper type and double side --
!-- xsl:param name=paper.type select='A4'/ --
xsl:param name=double.sided select='1'/
xsl:param name=appendix.autolabel select=1/	   
xsl:param name=admon.graphics select=0/
xsl:param name=graphic.default.extensionpng/xsl:param

xsl:param name=ulink.footnotes select=1/
xsl:param name=shade.verbatim select=1/
!-- Fixing section title going left --
xsl:param name=title.margin.left select='-0.1in' /
xsl:param name=formal.title.placement
figure after
example before
equation after
table before
procedure before
/xsl:param
xsl:param name=variablelist.as.blocks  select=1/
xsl:attribute-set name=shade.verbatim.style
 xsl:attribute name=background-color#E0E0E0/xsl:attribute
/xsl:attribute-set
xsl:param name=show.comments0/xsl:param
xsl:template match=term
  xsl:call-template name=inline.boldseq/
/xsl:template
xsl:attribute-set name=figure.properties
   use-attribute-sets=formal.object.properties
   xsl:attribute name=border-colorblack/xsl:attribute
  xsl:attribute name=border-stylesolid/xsl:attribute
/xsl:attribute-set

   !-- chapter toc creates TOC for chapters --
xsl:param name=generate.toc
appendix  nop
article   toc,title
book  toc,title,figure,table,example,equation
chapter   nop
part  nop
preface   nop
qandadiv  nop
qandaset  nop
reference toc,title
section   nop
set   toc
/xsl:param
/xsl:stylesheet



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Orderedlists nesting variablelists

2003-05-07 Thread Togan Muftuoglu
* Victor Mote; [EMAIL PROTECTED] on 07 May, 2003 wrote:
Togan Muftuoglu wrote:
Attached are sample document and the stylesheet ideas are welcomed
The document you included is a stylesheet, and doesn't provide enough information to help us figure out what the problem is. Please resubmit the question with the smallest possible XSL-FO code that demonstrates the problem. Here is some doc to help with that task:
Sorry looks like I have ommited the XML part of it anyway attached ypu
will find the fo file so you can play with it.
On the other hand I have raised the same question on the docbook-apps
mailing list and here is the answer I have received from Bob Stayton
quote
FOP uses the space-before attributes 
in all cases, even when they are within a list-item-body.
I'm not sure that actually violates the XSL spec,
since spaces are considered discardable only at
the top of a reference area, and a list-item-body is
not a reference area.

/quote

PS. Could you trim your line length to something like 72  as in current
settings it is screen wide Thanks 
--

Togan Muftuoglu
?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; line-height=normal 
text-align=justify font-size=10pt font-family=serif language=en
fo:layout-master-set
fo:simple-page-master margin-right=1.25in margin-left=0.75in 
margin-bottom=0.5in margin-top=0.5in page-height=11in page-width=8.5in 
master-name=blank
fo:region-body margin-top=0.5in margin-bottom=0.5in 
display-align=center/
fo:region-before display-align=before extent=0.4in 
region-name=xsl-region-before-blank/
fo:region-after display-align=after extent=0.4in 
region-name=xsl-region-after-blank/
/fo:simple-page-master
fo:simple-page-master margin-right=0.75in margin-left=1.25in 
margin-bottom=0.5in margin-top=0.5in page-height=11in page-width=8.5in 
master-name=titlepage-first
fo:region-body column-count=1 margin-top=0.5in margin-bottom=0.5in/
fo:region-before display-align=before extent=0.4in 
region-name=xsl-region-before-first/
fo:region-after display-align=after extent=0.4in 
region-name=xsl-region-after-first/
/fo:simple-page-master
fo:simple-page-master margin-right=0.75in margin-left=1.25in 
margin-bottom=0.5in margin-top=0.5in page-height=11in page-width=8.5in 
master-name=titlepage-odd
fo:region-body column-count=1 margin-top=0.5in margin-bottom=0.5in/
fo:region-before display-align=before extent=0.4in 
region-name=xsl-region-before-odd/
fo:region-after display-align=after extent=0.4in 
region-name=xsl-region-after-odd/
/fo:simple-page-master
fo:simple-page-master margin-left=0.75in margin-right=1.25in 
margin-bottom=0.5in margin-top=0.5in page-height=11in page-width=8.5in 
master-name=titlepage-even
fo:region-body column-count=1 margin-top=0.5in margin-bottom=0.5in/
fo:region-before display-align=before extent=0.4in 
region-name=xsl-region-before-even/
fo:region-after display-align=after extent=0.4in 
region-name=xsl-region-after-even/
/fo:simple-page-master
fo:simple-page-master margin-right=0.75in margin-left=1.25in 
margin-bottom=0.5in margin-top=0.5in page-height=11in page-width=8.5in 
master-name=lot-first
fo:region-body column-count=1 margin-top=0.5in margin-bottom=0.5in/
fo:region-before display-align=before extent=0.4in 
region-name=xsl-region-before-first/
fo:region-after display-align=after extent=0.4in 
region-name=xsl-region-after-first/
/fo:simple-page-master
fo:simple-page-master margin-right=0.75in margin-left=1.25in 
margin-bottom=0.5in margin-top=0.5in page-height=11in page-width=8.5in 
master-name=lot-odd
fo:region-body column-count=1 margin-top=0.5in margin-bottom=0.5in/
fo:region-before display-align=before extent=0.4in 
region-name=xsl-region-before-odd/
fo:region-after display-align=after extent=0.4in 
region-name=xsl-region-after-odd/
/fo:simple-page-master
fo:simple-page-master margin-left=0.75in margin-right=1.25in 
margin-bottom=0.5in margin-top=0.5in page-height=11in page-width=8.5in 
master-name=lot-even
fo:region-body column-count=1 margin-top=0.5in margin-bottom=0.5in/
fo:region-before display-align=before extent=0.4in 
region-name=xsl-region-before-even/
fo:region-after display-align=after extent=0.4in 
region-name=xsl-region-after-even/
/fo:simple-page-master
fo:simple-page-master margin-right=0.75in margin-left=1.25in 
margin-bottom=0.5in margin-top=0.5in page-height=11in page-width=8.5in 
master-name=front-first
fo:region-body column-count=1 margin-top=0.5in margin-bottom=0.5in/
fo:region-before display-align=before extent=0.4in 
region-name=xsl-region-before-first/
fo:region-after display-align=after extent=0.4in 
region-name=xsl-region-after-first/
/fo:simple-page-master
fo:simple-page-master margin-right=0.75in margin-left=1.25in 
margin-bottom=0.5in margin-top=0.5in page-height=11in page-width=8.5in 
master-name=front-odd
fo:region-body column-count=1 margin-top=0.5in margin-bottom=0.5in/
fo:region-before display-align=before extent=0.4in 
region-name=xsl-region-before-odd/
fo:region-after display-align=after

Re: Orderedlists nesting variablelists

2003-05-07 Thread Togan Muftuoglu
* Victor Mote; [EMAIL PROTECTED] on 07 May, 2003 wrote:
I'm sorry -- I don't even undestand the question. I thought there was a
problem with the list numbering, which doesn't seem to have anything to do
with the above response. Please reformulate the question.
The question is as follows. I have a document as follows 

?xml version=1.0 encoding=utf-8 standalone=no?
!DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.2//EN
  /usr/share/sgml/db42xml/docbookx.dtd
  
article
 titleSample Nested Ordered List/title
 paraThis sample ordered list renders properly with Renderx XEP, nut not
   with FOP/para
 orderedlist
   titleNested Orderedlist/title
   listitem
 variablelist role=ozel
?dbfo list-presentation=list?
varlistentry
  termFirst Term/term
  listitem
paraThis is the first para of emphasis role=boldfirst
term/emphasis which is the first list item of the emphasis
role=boldordered list/emphasis/para
  /listitem
/varlistentry
 /variablelist
   /listitem
   listitem
 variablelist role=ozel
?dbfo list-presentation=list?
varlistentry
  termSecond Term/term
  listitem
parathis is the par of emphasis role=boldsecond 
term/emphasis/para
  /listitem
/varlistentry
 /variablelist
   /listitem
 /orderedlist
 paraThis is a normal paragraph and now the following list will continue
   from the numbereing where it was left/para
 orderedlist continuation=continues
   titleSecond nested orderedlist/title
   listitem
?dbfo list-presentation=list?
 variablelist role=ozel
varlistentry
  termThird term/term
  listitem
paraThis is the para of emphasis role=boldthird
term/emphasis which is a continuation of the previous 
orderedlist/para
  /listitem
/varlistentry
 /variablelist
   /listitem
   listitem
 itemizedlist
listitem
  parathis is an itemized list /para
/listitem
listitem
  paraanother para of itemized list/para
/listitem
 /itemizedlist
   /listitem
 /orderedlist
/article
The ending PDF when I use XEP is correct meaning
1. First Term bla ba
2. Second Term bla bla
However the PDF created via FOP 0.20.5rc3 (CVS build of yesterday) is as
follows
1.
  First Term bla bla
2.
  Second Term bla bla

So there is something wrong with how FOP understands the nested lists
compared to XEP . Hope this time the communication is established :-)
  


PS. Could you trim your line length to something like 72  as in current
settings it is screen wide Thanks
Well, it is set at 76, but my email client doesn't seem to know what to with
your Unicode data. I have converted the encoding to ASCII, so hopefully it
will wrap correctly on this one.
This one is correct thanks 

--
Togan Muftuoglu
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


PDF encryption and unreadable bookmarks

2003-06-03 Thread Togan Muftuoglu
Hi,
With a build of today's CVS of FOP 0.25rc3 I have a strange problem.
First of all sorry I can not send neither a pdf nor fo source as 80 % of
the Internet connection in Turkey is down and getting and sending emails
is extremely difficult.
I have tested using docbook-test documents [1] using
docbook-xsl-stylesheets 1.61.2 [2] For the sake of simplicity I used the
book.001.xml test file with the  following stylesheet using Saxon 6.5.2 

?xml version=1.0?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
   version=1.0
xsl:import 
href=http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl/
xsl:output method=xml indent=yes/
xsl:param name=use.extensions select='1'/
xsl:param name=saxon.extensions select='1'/
xsl:param name=double.sided select='1'/
xsl:param name=fop.extensions select='1'/
/xsl:stylesheet
[EMAIL PROTECTED]:~/projects/sfnet/suse/articles java -version
java version 1.3.1_04
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_04-b02)
Java HotSpot(TM) Client VM (build 1.3.1_04-b02, mixed mode)
When I lookto the generated fo file everything is correct
fox:outline xmlns:fox=http://xml.apache.org/fop/extensions;
internal-destination=book
 fox:labelUnit Test: book.001/fox:label
  /fox:outline
  fox:outline xmlns:fox=http://xml.apache.org/fop/extensions;
internal-destination=forward
 fox:labelForeword/fox:label
  /fox:outline
  fox:outline xmlns:fox=http://xml.apache.org/fop/extensions;
internal-destination=preface
 fox:labelPreface/fox:label
  /fox:outline
  fox:outline xmlns:fox=http://xml.apache.org/fop/extensions;
internal-destination=partI
 fox:labelPartI.Part One Title/fox:label
 fox:outline internal-destination=pIpis1
fox:labelPartIntro Section/fox:label
 /fox:outline
I have used fop with the default config
fop.sh -d -o 123 book.fo book.pdf
The generated pdf has garbage characters for the bookmarks yet everythig
is else correct. If I don't use the encryption then bookmarks are again
displayed properly. 

Any ideas what is going wrong, what to check or is this a feature   

--
Togan Muftuoglu
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]