Re: Placing Copyright notice on SigPlan without using float?

2014-02-11 Thread Pascal Sancho
Hi,

Internal FOP unit is millipoint, AKA mpt
To compute the right value, you just need to convert the desired one to mpt:

1pt = 1000mpt
1in = 72000mpt
1mm = 2835mpt (72000/25.4 rounded to integer)

2014-02-11 4:33 GMT+01:00 Aaron W. Hsu arcf...@sacrideo.us:
 Pascal Sancho psancho@gmail.com writes:

 If your requirement is to change the only 1st page/1st column height,
 the only solution I can imagine is:
  - add a space before to the 1st fo:block,
  - and tweak the FOP intermediate format (see [1]) to move up the 1st
 column area.

 I am now all but certain that this will work. I'm a bit confused about
 how the integers in the g elements of the intermediate value translate
 to actual units on the page. For instance, if I make sure there is 1in
 of space for the notice that I want to put in the bottom, what is the
 amount I have to reduce the Y axis of the transform attribute? I can get
 pretty close by trial and error, but I couldn't find the units
 documented in the Intermediate File format specification. I'd like to
 avoid trial and error so that this value does not need tweaking across
 multiple documents, fonts, and so forth.

 --
 Aaron W. Hsu | arcf...@sacrideo.us | http://www.sacrideo.us
 לֵ֤ב חֲכָמִים֙ בְּבֵ֣ית אֵ֔בֶל וְלֵ֥ב כְּסִילִ֖ים בְּבֵ֥ית שִׂמְחָֽה׃


 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




-- 
pascal

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Placing Copyright notice on SigPlan without using float?

2014-02-11 Thread Aaron W. Hsu
Pascal Sancho psancho@gmail.com writes:

 Internal FOP unit is millipoint, AKA mpt
 To compute the right value, you just need to convert the desired one to mpt:

 1pt = 1000mpt
 1in = 72000mpt
 1mm = 2835mpt (72000/25.4 rounded to integer)

Ah, that's perfect. Thanks a lot.

-- 
Aaron W. Hsu | arcf...@sacrideo.us | http://www.sacrideo.us
לֵ֤ב חֲכָמִים֙ בְּבֵ֣ית אֵ֔בֶל וְלֵ֥ב כְּסִילִ֖ים בְּבֵ֥ית שִׂמְחָֽה׃


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Placing Copyright notice on SigPlan without using float?

2014-02-10 Thread Aaron W. Hsu
Pascal Sancho psancho@gmail.com writes:

 If your requirement is to change the only 1st page/1st column height,
 the only solution I can imagine is:
  - add a space before to the 1st fo:block,
  - and tweak the FOP intermediate format (see [1]) to move up the 1st
 column area.

I am now all but certain that this will work. I'm a bit confused about
how the integers in the g elements of the intermediate value translate
to actual units on the page. For instance, if I make sure there is 1in
of space for the notice that I want to put in the bottom, what is the
amount I have to reduce the Y axis of the transform attribute? I can get
pretty close by trial and error, but I couldn't find the units
documented in the Intermediate File format specification. I'd like to
avoid trial and error so that this value does not need tweaking across
multiple documents, fonts, and so forth.

-- 
Aaron W. Hsu | arcf...@sacrideo.us | http://www.sacrideo.us
לֵ֤ב חֲכָמִים֙ בְּבֵ֣ית אֵ֔בֶל וְלֵ֥ב כְּסִילִ֖ים בְּבֵ֥ית שִׂמְחָֽה׃


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Placing Copyright notice on SigPlan without using float?

2014-02-06 Thread Pascal Sancho
Hi,

For such questions, you should ask on DocBook List (follow [1]).

[1] http://www.docbook.org/help

2014-02-06 Aaron W. Hsu arcf...@sacrideo.us:
 I'm not an FO expert, and I've only tweaked a few
 things in the DocBook XSL to do things like put the authors in a table
 instead of listing them one after another. I'd appreciate help in
 understanding how to do this, since I'm a total FO noob.


-- 
pascal

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Placing Copyright notice on SigPlan without using float?

2014-02-06 Thread Aaron W. Hsu
Pascal Sancho psancho@gmail.com writes:

 For such questions, you should ask on DocBook List (follow [1]).

 [1] http://www.docbook.org/help

Thanks, I'm on that list, but I was under the impression that this list
might provide better solutions to actually getting the desired behavior
in FOP. I'm sure once I understand a fundamental FO approach that I will
be able to implement it in DocBook.

-- 
Aaron W. Hsu | arcf...@sacrideo.us | http://www.sacrideo.us
לֵ֤ב חֲכָמִים֙ בְּבֵ֣ית אֵ֔בֶל וְלֵ֥ב כְּסִילִ֖ים בְּבֵ֥ית שִׂמְחָֽה׃


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Placing Copyright notice on SigPlan without using float?

2014-02-06 Thread Luis Bernardo


I think Pascal suggestion of using intermediate format is your best bet.

Goes like this:
fop -fo test.fo -if application/pdf test.if.xml

edit the test.if.xml and then
fop -ifin test-modified.if.xml -pdf test.pdf

attached is an example. you can do it better and add the copyright to a 
static region and add a blank space at the beginning. then the only 
thing you need to do is to apply a vertical translation to the first 
column and you can write a script to do it.


On 2/6/14, 4:08 PM, Aaron W. Hsu wrote:

Pascal Sancho psancho@gmail.com writes:


For such questions, you should ask on DocBook List (follow [1]).

[1] http://www.docbook.org/help

Thanks, I'm on that list, but I was under the impression that this list
might provide better solutions to actually getting the desired behavior
in FOP. I'm sure once I understand a fundamental FO approach that I will
be able to implement it in DocBook.



?xml version=1.0 encoding=UTF-8?
document xmlns=http://xmlgraphics.apache.org/fop/intermediate; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:nav=http://xmlgraphics.apache.org/fop/intermediate/document-navigation; xmlns:foi=http://xmlgraphics.apache.org/fop/internal; version=2.0
header
x:xmpmeta xmlns:x=adobe:ns:meta/
rdf:RDF xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
rdf:Description xmlns:xmp=http://ns.adobe.com/xap/1.0/; rdf:about=
xmp:CreateDate2014-02-06T23:39:15Z/xmp:CreateDate
xmp:CreatorToolApache FOP Version svn-trunk/xmp:CreatorTool
xmp:MetadataDate2014-02-06T23:39:15Z/xmp:MetadataDate
/rdf:Description
/rdf:RDF
/x:xmpmeta
/header
page-sequence xml:space=preserve
page index=0 name=1 page-master-name=A4-portrait width=595275 height=841889
page-header/
content
viewport transform=translate(56692,56692) width=481891 height=728505
g transform=translate(0,-10266)
font family=sans-serif style=normal weight=400 variant=normal size=12000 color=#00/
text x=0 y=24666The 1952 Winter Olympics, officially known/text
text x=0 y=39066as the VI Olympic Winter Games, took/text
text x=0 y=53466place in Oslo, Norway, from 14 to 25/text
text x=0 y=67866February. Discussions about Oslo hosting/text
text x=0 y=82266the Winter Olympic Games began as/text
text x=0 y=9early as 1935; the city wanted to host the/text
text x=0 y=1110661948 Games, but World War II made that/text
text x=0 y=125466impossible. Instead, Oslo won the right/text
text x=0 y=139866to host the 1952 Games in a contest that/text
text x=0 y=154266included Cortina d'Ampezzo in Italy and/text
text x=0 y=168666Lake Placid in the United States. All of/text
text x=0 y=183066the venues were in Oslo's metropolitan/text
text x=0 y=197466area except for the alpine skiing events,/text
text x=0 y=211866which were held at Norefjell, 113 km (70/text
text x=0 y=226266mi) from the capital. A new hotel was built/text
text x=0 y=240666for the press and dignitaries, along with/text
text x=0 y=255066three dormitories to house athletes and/text
text x=0 y=269466coaches, creating the first modern athlete's/text
text x=0 y=283866village. The city of Oslo bore the financial/text
text x=0 y=298266burden of hosting the Games in return for/text
text x=0 y=312666the revenue they generated. The Games/text
text x=0 y=327066attracted 694 athletes representing 30/text
text x=0 y=341466countries, who participated in four sports/text
text x=0 y=355866and 22 events.[1] Japan and Germany/text
text x=0 y=370266made their returns to winter Olympic/text
text x=0 y=384666competition, after being forced to miss the/text
text x=0 y=3990661948 Games in the aftermath of World/text
text x=0 y=413466War II. Germany was represented solely/text
text x=0 y=427866by West German athletes because East/text
text x=0 y=442266Germany declined to compete as a unified/text
text x=0 y=45team. Portugal and New Zealand made/text
text x=0 y=471066their Winter Olympic debuts, and for the/text
text x=0 y=485466first time women were allowed to compete/text
text x=0 y=499866in cross-country skiing. Norwegian truck/text
text x=0 y=514266driver Hjalmar Andersen won three out/text
text x=0 y=528666of four speed skating events to become/text
text x=0 y=543066the most decorated athlete at the Games./text
text x=0 y=557466Germany resumed its former prominence/text
text x=0 y=571866in bobsleigh, with wins in the four- and/text
text x=0 y=586266two-man events. Dick Button of the United/text
text x=0 y=600666States performed the first triple jump/text
text x=0 y=615066in international competition to claim his/text
text x=0 y=629466second consecutive men's figure skating/text
text x=0 y=643866Olympic title. The 1952 Games featured/text
text x=0 y=658266one demonstration sport, bandy, but only/text
text x=0 y=672666three Nordic countries competed in the/text
text x=0 y=687066tournament. Norway dominated the overall/text
text x=0 y=701466medal count with 16 medals, seven of/text
text x=0 y=715866them gold. The Games closed with the/text
text x=0 y=726132(c) my copyright notice 2014/text
/g
g 

Re: Placing Copyright notice on SigPlan without using float?

2014-02-05 Thread Pascal Sancho
Hi,

IIUC, you want to have the copyright block only at the bottom of the
1st column of the 1st page.
AFAIK, there is no FO solution for that; in one page, all columns will
have same height (at least regarding XSL-FO REC 1.1).
That said, you can easily change the 1st page body, , and put your
copyright cartouche in a static region of the 1st page (in absolute
position, if you want).

If your requirement is to change the only 1st page/1st column height,
the only solution I can imagine is:
 - add a space before to the 1st fo:block,
 - and tweak the FOP intermediate format (see [1]) to move up the 1st
column area.

Note that there is an open issue when using footnote in multicolumn (see [2]).

[1] http://xmlgraphics.apache.org/fop/trunk/intermediate.html
[2] https://issues.apache.org/jira/browse/FOP-1943


2014-02-05 Aaron W. Hsu arcf...@sacrideo.us:
 I have a nearly complete template for the Sigplan article format
 converting Docbook into FO using the Docbook XSL. So far, I've been able
 to figure out each element and have it working, so that I get something
 that's nearly ideal. Unfortunately, there is one problem which I cannot
 seem to solve.

 For reference, this work can be found here:

   https://github.com/arcfide/DocBook-Sigplan

 This includes the adjustments to the stylesheet and the like. It also
 includes a PDF showing the document as it is now. At the moment, I'm
 missing a small copyright notice that gets put as a block of text in the
 lower left hand corner, taking up part of the first column's text space
 on the first page. This brings the height of the first column up a bit,
 and leaves the bottom of the text of the copyright notice flush with the
 bottom of the second column of the title page.

 Because this is meant for academic use in research publications, I'm
 hoping to make it work with an open source FO processor. However, I
 cannot figure out the right way to put that block of text right there. I
 could use an absolute positioning, but that seems to be a bit of a
 problem, because it would cause overlap with the first column. I can't
 use a float because it would be rendered as a footnote if I floated it
 to the bottom, and that would span both columns. The only solution I
 can think of right now is if there were some way to lift up the first
 column bottom edge so that I could manually ensure that the overlap
 didn't happen.

 I would really appreciate any suggestions and solutions anyone could
 provide that would give me the look I'm going for. It feels like this
 shouldn't be something out of my reach, and it would be quite depressing
 if it were technically impossible, because academic publishers need a
 good alternative to LaTeX. :-)

 --
 Aaron W. Hsu | arcf...@sacrideo.us | http://www.sacrideo.us
 לֵ֤ב חֲכָמִים֙ בְּבֵ֣ית אֵ֔בֶל וְלֵ֥ב כְּסִילִ֖ים בְּבֵ֥ית שִׂמְחָֽה׃


 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




-- 
pascal

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Placing Copyright notice on SigPlan without using float?

2014-02-05 Thread Aaron W. Hsu
Pascal Sancho psancho@gmail.com writes:

 IIUC, you want to have the copyright block only at the bottom of the
 1st column of the 1st page.
 AFAIK, there is no FO solution for that; in one page, all columns will
 have same height (at least regarding XSL-FO REC 1.1).
 That said, you can easily change the 1st page body, , and put your
 copyright cartouche in a static region of the 1st page (in absolute
 position, if you want).

Basically, I have a two column document where I want to put the
copyright at the bottom of the 1st column of the 1st page as you
say. I'm okay with any method of achieving this in the current version
of FOP. If I need to make some changes to the way the columns are done
with the first page, I'm okay with that, as long as the solution works
well and looks right. I'm not an FO expert, and I've only tweaked a few
things in the DocBook XSL to do things like put the authors in a table
instead of listing them one after another. I'd appreciate help in
understanding how to do this, since I'm a total FO noob.

-- 
Aaron W. Hsu | arcf...@sacrideo.us | http://www.sacrideo.us
לֵ֤ב חֲכָמִים֙ בְּבֵ֣ית אֵ֔בֶל וְלֵ֥ב כְּסִילִ֖ים בְּבֵ֥ית שִׂמְחָֽה׃


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org