-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for landscape pages in PDF #476
Comments
Why is the PI necessary? Isn't adding (I happen to have added the CSS landscape page when tinkering with the PDF of the Guide. I think it makes sense to put that in the "main" CSS.) |
Because the Of course, we could use the role attribute with multiple values, like the HTML |
Processing instructions have their own drawbacks though. It isn't possible to control their placement or content with the schema, so they can go anywhere. (That's generally a feature of processing instructions, but a bug in this sort of situation.) In addition, the semantics are harder to pin down. If
makes the article landscape, what does this do?
It's probably an attempt to make the "p1" paragraph landscape. Maybe that could be supported, but the author could equally write:
Which is borderline incoherent. I see your point about taking user choice away by assigning values to the Except, of course, that in real-world publishing, sometimes you just need to say "rotate this because it doesn't fit". |
Well, I understand why you prefer attributes to PIs. It would be good if we could use a common attribute
Considering all this, I would vote for an extension attribute, say By the way, my use case is the "rotate because it doesn' t fit" case. We have lots of documents with class or sequence diagrams that are best presented in landscape orientation because of their size, while other diagrams of the same type will be in portrait. I will be on vacation for the next two weeks. I assume that I will rarely be at the computer. Greetings, Frank |
You can put attributes from a different namespace on any element, so that's all I meant: Enjoy your vacation! |
I think the possibility to put attributes from a different namespace on any element is a new feature of DocBook version 5.2. Therefore, we should not pursue the idea of a specialized attribute in its own namespace. It never came to my mind that the I just made a PR #478 which supports landscape orientation via the Greetings, Frank |
I have a document with a CALS table with
@orient='land'
. Adiv
element withclass='landscape'
is produced, but without effect in the PDF that i get when HTML is processed with Antenna House. Support for landscape pages would include:To add a
@page
rule for landscape in docbook-paged.css. This is already implemented in the CSS for the xslTNG Guide.A processing instruction for elements that can be part of a flow with landscape orientation. The PI could be
<?db orient='Iandscape' ?>
or<?landscape ?>
. I would suggest the following elements:@orient
attribute as alternative, because I would prefer a uniform solution for all elements);For migration from XSLT 1.0 Stylesheets, a legacy PI
<? landscapeFigure ?>
as in Landscape images from the Definitive Guide should also be supported forfigure
andinformalfigure
.Documentation for this feature in the Reference Guide.
Greetings, Frank
The text was updated successfully, but these errors were encountered: