Skip to content
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

Improve output format in XML, PDF and EPUB #6

Open
arojascastro opened this issue Aug 31, 2021 · 8 comments
Open

Improve output format in XML, PDF and EPUB #6

arojascastro opened this issue Aug 31, 2021 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@arojascastro
Copy link
Collaborator

arojascastro commented Aug 31, 2021

I have tested a sample of those on the server with the aim of generating files in various formats using the Download option.

Preliminary analysis

    1. PDF (LaTeX version) does not work in any case.
    1. Tex source code works in all cases, but the file has no metadata
    1. PDF (fo version) works in some cases (in letters), but the file has no metadata and the diplomatic transcription is provided.
    1. fo source code works in all cases, does not appear to be malformed.
    1. EPUB works in all cases, but the generated documents do not have metadata and the diplomatic transcription is provided.
    1. XML does not work in any case

Question: is this an ODD problem? @tuurma

If so, can you help me to identify errors and fix them? This could be part of our workshop as well if requires longer time and bigger effort...

@arojascastro arojascastro added the enhancement New feature or request label Aug 31, 2021
@tuurma
Copy link
Collaborator

tuurma commented Sep 10, 2021

For PDF generation you need to configure LaTeX on the server and point to a relevant path in modules/config.xqm

{
  "details" : null,
  "description" : "Cannot run program \"/usr/local/bin/pdflatex\" (in directory \"/tmp\"): error=2, No such file or directory. An IO error occurred while executing the process /usr/local/bin/pdflatex: Cannot run program \"/usr/local/bin/pdflatex\" (in directory \"/tmp\"): error=2, No such file or directory [at line 179 of unknown]"
}

@arojascastro
Copy link
Collaborator Author

Thank you! I have contacted Markus and shared the information.

@tuurma
Copy link
Collaborator

tuurma commented Oct 1, 2021

We'd need more concrete specifications for what is expected, ideally a screenshot of what is with a mockup for what should be, perhaps starting with FO (or LaTeX if you get the setup on the server right)

@arojascastro
Copy link
Collaborator Author

True. Basically, a first improvement would be to include some of the metadata in the output document that allows to identify the edition, source, and editor. I will prepare something before the workshop.

@arojascastro
Copy link
Collaborator Author

arojascastro commented Oct 13, 2021

I have attached a mockup done by hand here

mockup

Basically, we want to keep it simple:

  1. one list of items that allow us to identify the document (citation, source, licence)
  2. a line that separates the metadata from the text
  3. the title in bigger and/or bold
  4. the text, preferably in diplomatic transrciption with page breaks
  5. notes if any

The citation should collapse information from some elements from the header and follow this pattern:

Author. "Title of the edition". Dossier Digital: Alexander von Humboldt y Cuba (1800-1830), Editor (ed.), Berlin-Brandenburgische Akademie der Wissenschaften y Oficina del Historiador de la Ciudad de la Habana, Year of publication.

For example:

Arango y Parreño, Francisco de. "Observaciones sobre el Ensayo politico con relacion a la Isla de Cuba que ha escrito el Señor Baron de Humboldt". Dossier Digital: Alexander von Humboldt y Cuba (1800-1830), Kathrin Kraller (ed.), Berlin-Brandenburgische Akademie der Wissenschaften y Oficina del Historiador de la Ciudad de la Habana, 2021.

What do you all think @trafikante @tuurma @vylop ? Can we see this together on 22 October -- perhaps as an exercise? Otherwise, we can work on it after the workshop online, it is not a priority right now.

@trafikante
Copy link
Contributor

Looks good. Is it possible to include a URL/PURL in the citation?

Arango y Parreño, Francisco de. "Observaciones sobre el Ensayo politico con relacion a la Isla de Cuba que ha escrito el Señor Baron de Humboldt". Dossier Digital: Alexander von Humboldt y Cuba (1800-1830), Kathrin Kraller (ed.), Berlin-Brandenburgische Akademie der Wissenschaften y Oficina del Historiador de la Ciudad de la Habana, 2021. URL: https://xmldev.bbaw.de/prohd/apps/ProHD/prohd0015.xml

One more thing: Is it possible to decide on the fonts we use for pdf output?
Would be great to take use our ProHD fonts!

  • Montserrat (Family)
  • Roboto Slab

Examples from our designer included
Tipografia Institucional.pdf
Tipografia Complementaria.pdf

@arojascastro
Copy link
Collaborator Author

arojascastro commented Oct 14, 2021

Looks good. Is it possible to include a URL/PURL in the citation?

Arango y Parreño, Francisco de. "Observaciones sobre el Ensayo politico con relacion a la Isla de Cuba que ha escrito el Señor Baron de Humboldt". Dossier Digital: Alexander von Humboldt y Cuba (1800-1830), Kathrin Kraller (ed.), Berlin-Brandenburgische Akademie der Wissenschaften y Oficina del Historiador de la Ciudad de la Habana, 2021. URL: https://xmldev.bbaw.de/prohd/apps/ProHD/prohd0015.xml

We can @trafikante but we do not have a stable URL yet... This can be added after deciding where to host the web application (in Cuba or in Germany?) and getting/buying a web domain... I think...

@trafikante
Copy link
Contributor

ok, important point. Please @arojascastro put this (hosting of TEIPublisher) on the agenda for the workshop. Implementation has to in Cuba, otherwise we get responsibility issues. They have to be in charge but it should work so that we all have accese (like it is the case with the DSpace Repo),

@tuurma tuurma mentioned this issue Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants