Re: [docbook-apps] row's height

2014-01-28 Thread Matteo Regazzo

Thank you Mr. Bob,

if I suppose correctly, the command you've suggested me is a forcing 
of the single row's height, that's exactly what I need.
Maybe I don't know how to make it work... I've added the instruction in 
my code, as it is in your example, in this way


tbody
  row?dbfo row-height=2cm ?
entry align=centerpara1/para/entry

entry align=center morerows=2 
valign=middleparainformalfigure

  mediaobject
imageobject role=html
  imagedata align=center 
fileref=figure/Table_BrakeResistor.png/

/imageobject

imageobject role=fo
  imagedata align=center 
fileref=figure/Table_BrakeResistor.svg scale=70/

/imageobject
  /mediaobject
/informalfigure/para/entry
  /row

  row?dbfo row-height=2cm ?
entry align=centerpara2/para/entry
  /row

  row?dbfo row-height=2cm ?
entry align=centerpara3/para/entry
  /row
/tbody

but it doesn't work...
I've attached 2 files to show you my problem, hope that you can 
understand it better:
- in the HTML version (file /NoProblemHTML.png/) it auto-resize the 
rows without any instruction, see the 5 and 6 rows;
- in the PDF version (file /MyProblemPDF.png/) the rows don't resize, 
even with /row-height/ setting. Maybe the problem is on the compiler? We 
use FOP.


Thank you,
Matteo


Il 27/01/2014 18:05, Bob Stayton ha scritto:
I'm not completely clear on what you need here, but there are 
processing instructions that can be used to specify a table row 
height.  The HTML version is described here:


  http://www.sagehill.net/docbookxsl/RowHeight.html

And since that was written, an FO version was added as well:

row?dbfo row-height=2cm ?
  entry.../entry
  entry.../entry
/row

Setting a row height can only set a minimum height and will not alter 
the image size, though.  To do that, you would need to scale the image 
as needed.


Bob Stayton
Sagehill Enterprises
b...@sagehill.net

On 1/24/2014 8:40 AM, Matteo Regazzo wrote:

Hi everybody,

I have a question that I hope is simple for many expert users (of
course, I'm a beginner...)
I have a table with 2 columns:
- in the tbody of the first column there are 3 rows,
- in the tbody of the second column there is a figure that takes the
entire place of the three rows;

in this way:


informaltable
tgroup cols=3
  colspec colname=c1 colwidth=15*/
  colspec colname=c2 colwidth=70*/
  thead
 row
entry align=centerparaPIN/para/entry
entry align=centerparaScheme/para/entry
  /row
  /thead
  tbody
  row
 entry align=centerpara1/para/entry
 entry align=center morerows=2
valign=middleparainformalfigure
  mediaobject
imageobject role=fo
  imagedata align=center
fileref=figure/Table_BrakeResistor.svg scale=70/
/imageobject
/mediaobject/informalfigure/para
 /entry
   /row
   row
  entry align=centerpara2/para/entry
   /row
   row
   entry align=centerpara3/para/entry
   /row
/tbody
 /tgroup
/informaltable


The problem is that the picture's height is greater than the total
height of the 3 rows.
I've not found any property of the table, row, colspec, entry, or other
elements that can help me to define the height of the columns or that
can set an auto-resize of the row's height to be equals.

Can you help me?

thank you since now,
Matteo

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org






-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org




attachment: NoProblemHTML.pngattachment: MyProblemPDF.png
-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org

Re: [docbook-apps] row's height

2014-01-28 Thread Bob Stayton

Hi Matteo,
Yes, you are using it correctly.  I copied and pasted your sample and it 
works for me.  In the FO output file, there are row elements that look 
like this:


fo:table-row block-progression-dimension=2cm

The block-progression-dimension property in XSL-FO is the same as 
height for Western writing modes.  This shows that the processing 
instruction is working.


What version of the stylesheets are you using, and what tools are you 
using to process it?


Bob Stayton
Sagehill Enterprises
b...@sagehill.net

On 1/28/2014 1:10 AM, Matteo Regazzo wrote:

Thank you Mr. Bob,

if I suppose correctly, the command you've suggested me is a forcing
of the single row's height, that's exactly what I need.
Maybe I don't know how to make it work... I've added the instruction in
my code, as it is in your example, in this way

tbody
   row?dbfo row-height=2cm ?
 entry align=centerpara1/para/entry

 entry align=center morerows=2
valign=middleparainformalfigure
   mediaobject
 imageobject role=html
   imagedata align=center
fileref=figure/Table_BrakeResistor.png/
 /imageobject

 imageobject role=fo
   imagedata align=center
fileref=figure/Table_BrakeResistor.svg scale=70/
 /imageobject
   /mediaobject
 /informalfigure/para/entry
   /row

   row?dbfo row-height=2cm ?
 entry align=centerpara2/para/entry
   /row

   row?dbfo row-height=2cm ?
 entry align=centerpara3/para/entry
   /row
/tbody

but it doesn't work...
I've attached 2 files to show you my problem, hope that you can
understand it better:
- in the HTML version (file /NoProblemHTML.png/) it auto-resize the
rows without any instruction, see the 5 and 6 rows;
- in the PDF version (file /MyProblemPDF.png/) the rows don't resize,
even with /row-height/ setting. Maybe the problem is on the compiler? We
use FOP.

Thank you,
Matteo


Il 27/01/2014 18:05, Bob Stayton ha scritto:

I'm not completely clear on what you need here, but there are
processing instructions that can be used to specify a table row
height.  The HTML version is described here:

  http://www.sagehill.net/docbookxsl/RowHeight.html

And since that was written, an FO version was added as well:

row?dbfo row-height=2cm ?
  entry.../entry
  entry.../entry
/row

Setting a row height can only set a minimum height and will not alter
the image size, though.  To do that, you would need to scale the image
as needed.

Bob Stayton
Sagehill Enterprises
b...@sagehill.net

On 1/24/2014 8:40 AM, Matteo Regazzo wrote:

Hi everybody,

I have a question that I hope is simple for many expert users (of
course, I'm a beginner...)
I have a table with 2 columns:
- in the tbody of the first column there are 3 rows,
- in the tbody of the second column there is a figure that takes the
entire place of the three rows;

in this way:


informaltable
tgroup cols=3
  colspec colname=c1 colwidth=15*/
  colspec colname=c2 colwidth=70*/
  thead
 row
entry align=centerparaPIN/para/entry
entry align=centerparaScheme/para/entry
  /row
  /thead
  tbody
  row
 entry align=centerpara1/para/entry
 entry align=center morerows=2
valign=middleparainformalfigure
  mediaobject
imageobject role=fo
  imagedata align=center
fileref=figure/Table_BrakeResistor.svg scale=70/
/imageobject
/mediaobject/informalfigure/para
 /entry
   /row
   row
  entry align=centerpara2/para/entry
   /row
   row
   entry align=centerpara3/para/entry
   /row
/tbody
 /tgroup
/informaltable


The problem is that the picture's height is greater than the total
height of the 3 rows.
I've not found any property of the table, row, colspec, entry, or other
elements that can help me to define the height of the columns or that
can set an auto-resize of the row's height to be equals.

Can you help me?

thank you since now,
Matteo

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org






-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org








-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org