-
Notifications
You must be signed in to change notification settings - Fork 3
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
WIP Initial draft of DocBook build instructions #7
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need some help from someone who can successfully build DocBook.
docbook/README.md
Outdated
### Prerequisites | ||
|
||
* [Java 8](https://www.java.com/en/download/) | ||
* [Saxon-PE](http://www.saxonica.com/download/java.xml) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DavidFatDavidF you've mentioned in #3 (comment):
So far we are using only preliminary, built-in oXygen transforms but Jano is working on modified stylesheets for HTML and PDF
Can you provide direct links to the missing prerequisites, please?
docbook/README.md
Outdated
### Prerequisites | ||
|
||
* [Java 8](https://www.java.com/en/download/) | ||
* [Saxon-PE](http://www.saxonica.com/download/java.xml) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What edition of Saxon do we use? Can we use a community edition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would go for HE.
docbook/README.md
Outdated
Run from the project root folder: | ||
``` | ||
java -jar saxon9pe.jar -xsl:./docbook/T1/WG3/XLIFF-EM-BP.xml_xslt -s:./docbook/T1/WG3/ -o:./docs/ | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The command with these parameters returns error:
Static error at fo:root on line 1 column 375 of XLIFF-EM-BP.xml_xslt:
XTSE0150: The supplied file does not appear to be a stylesheet
The supplied file does not appear to be a stylesheet
What commands and params are you using?
Hi @terales can u try and build with the xslt resources I committed? |
Thanks for resources! Let me check |
Running with either
|
sorry swamped, now will try to address this before I leave for vacation on Wed.. @JanHusarcik could you please look into the xsls and prehaps provide @terales with a working and self-contained set? |
If it works for you we can set up a quick call to address all issues in one try |
@terales could you pls try building using https://sourceforge.net/projects/docbook/? |
I won't manage to help here b4 I leave tomorrow.. Perhaps @rmraya can help? |
I can help if you tell me what the problem is.
This morning I started playing with the content uploaded to GitHub and it looked fine, except for a problem with fonts not being fully Unicode aware when creating a PDF (this is something I have to change in my local XEP configuration).
Rodolfo
…--
Rodolfo M. Raya [email protected]
Maxprograms https://www.maxprograms.com
From: dF <[email protected]>
Reply-To: GALAglobal/TAPICC <[email protected]>
Date: Tuesday, January 30, 2018 at 3:57 PM
To: GALAglobal/TAPICC <[email protected]>
Cc: "Rodolfo M. Raya" <[email protected]>, Mention <[email protected]>
Subject: Re: [GALAglobal/TAPICC] WIP Initial draft of DocBook build instructions (#7)
I won't manage to help here b4 I leave tomorrow.. Perhaps @rmraya can help?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@rmraya we can build HTML and pdf from Docbook locally with Oxygen with the framework xsl and FO resources. @terales is trying to determine a set of XSL that would allow for an automated HTML build on GitHub. We are now trying for HTML but eventually we would also like to automate the pdf build.. |
Hey guys,
Do you know about any problems or missing features with this approach? Please, find example output attached: example-output.zip It seems the same for me with current version in master except the title style |
Two details come to my mind:
You are using the default XSL stylesheets from Norman Walsh. Those are too generic and the ones from Oxygen that David uploaded to GitHub should look better
PDF from Fop does not look as good as PDF from XEP or Antenna House (AH). You can use Fop for testing but for real publishing, we should use XEP or AH.
Regards,
Rodolfo
…--
Rodolfo M. Raya [email protected]
Maxprograms https://www.maxprograms.com
From: Alexander <[email protected]>
Reply-To: GALAglobal/TAPICC <[email protected]>
Date: Tuesday, January 30, 2018 at 4:30 PM
To: GALAglobal/TAPICC <[email protected]>
Cc: "Rodolfo M. Raya" <[email protected]>, Mention <[email protected]>
Subject: Re: [GALAglobal/TAPICC] WIP Initial draft of DocBook build instructions (#7)
Hey guys,
I don't any experienced with DocBook but if I follow this guide than all things are working fine on Ubuntu:
sudo apt-get install default-jre fop xsltproc docbook docbook-xsl docbook-dsssl
xsltproc -o ./docs/T1/WG3/XLIFF-EM-BP-ED.html /usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl ./docbook/T1/WG3/XLIFF-EM-BP.xml
fop -xsl /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl -xml ./docbook/T1/WG3/XLIFF-EM-BP.xml -pdf ./docs/T1/WG3/XLIFF-EM-BP-ED.pdf
Do you know about any problems or missing features with this approach?
It's enough to have an automated environment
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Thanks for the feedback!
I'll try it tomorrow.
I suggest to split our efforts:
@rmraya what do you think? |
I can build PDF using XEP as often as needed.
XEP and AH are commercial products, I don’t think we can use our licenses in a GitHub build process.
Regards,
Rodolfo
…--
Rodolfo M. Raya [email protected]
Maxprograms https://www.maxprograms.com
From: Alexander <[email protected]>
Reply-To: GALAglobal/TAPICC <[email protected]>
Date: Tuesday, January 30, 2018 at 5:37 PM
To: GALAglobal/TAPICC <[email protected]>
Cc: "Rodolfo M. Raya" <[email protected]>, Mention <[email protected]>
Subject: Re: [GALAglobal/TAPICC] WIP Initial draft of DocBook build instructions (#7)
Thanks for the feedback!
You are using the default XSL stylesheets from Norman Walsh. Those are too generic and the ones from Oxygen that David uploaded to GitHub should look better
I'll try it tomorrow.
PDF from Fop does not look as good as PDF from XEP or Antenna House (AH). You can use Fop for testing but for real publishing, we should use XEP or AH.
I suggest to split our efforts:
I'll prepare basic Travis CI config and installation of all dependencies which are required to prepare an HTML,
you will continue from there to build a PDF,
I will set up automated commits to the gh-pages branch
@rmraya what do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Great! So I'll configure only HTML version this week. Thanks a lot for your input |
Hello all, I've just pushed initial Travis CI configuration for automated HTML builds which would be deployed into It's not ready for merging because I have trouble with special character encodings: Can you suggest how to fix it, please? |
Hi @terales <xsl:output method="html" encoding="ISO-8859-1" indent="no"/> This should be ideally changed to Jan PS. could you please @ me, to make sure I get notified :) |
Thanks, @JanHusarcik ! As I found we have to change encoding in Here is a result:
I hope there is the last difference (custom on the left, automated on right): Do you have any idea why |
@JanHusarcik do you have any idea about the fix? Or it's better to start using it as it is and fix later? |
Hi @terales there is something seriously wrong with my GH notifications. Looking into this. J. |
@terales It would seem that automated build does not resolve entities stored in J |
Hi, how is the process on this task? |
Hi @simonech , |
@JanHusarcik can you help me with loading external entities, please? I'm having a hard time loading external entities. Your manually published document has a line:
Automatically generated and published document miss entities:
|
Thanks to Jan, we're able to automatically build the DocBook! Here is a result from the test repo: If it seems OK, we could safely merge this PR.
|
There are still minor issues with the results of the automated build, trying to identify the cause. Re "change the versioning scheme", it's related to #15; still working on it. |
I wasn't able to replicate settings from paid publishing software within scripting open-source environment. |
Closes #5
Here is a suggested workflow for this PR:
WIP
prefix at PR meanswork in progress, do not merge
).WIP
suffix and ask to verify the instruction inside this PR.