Coder Social home page Coder Social logo

epubtools's People

Contributors

arualmeyer avatar aschmalfuss avatar fr4nze avatar gimsieke avatar haendwic avatar mkraetke avatar pglatza avatar pmarkwart avatar polypunkt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

epubtools's Issues

toc wrong order in opf spine

There is a typo preventing having the toc after the cover in opf spine.

Change line 1262 in epubtools/modules/html-splitter/xsl/html-splitter.xsl line
from
<meta name="sequence" content="($epub-config/types/@nav-spine-pos, 1.5)[1]"/>
to
<meta name="sequence" content="{($epub-config/types/@nav-spine-pos, 1.5)[1]}"/>
i.e. missing {} in @content.

missing html prefix in page-list

Hi,
in the generated nav list the li/@href is missing the html-prefix resulting in invalid epubs.

Patch:
in epubtools/modules/html-splitter/xsl/html-splitter.xsl, line 1318 use the following corrected template

<xsl:template name="page-list-nav-inner"> <nav epub:type="page-list" id="page-list-navigation" hidden="hidden"> <ol> <xsl:for-each select="$pgl/html:page[normalize-space(@name)]"> <li> <!-- GB patch: added $html-prefix --> <a href="{concat($html-prefix, @href)}" srcpath="pgl_{generate-id()}"> <xsl:value-of select="@name"/> </a> </li> </xsl:for-each> </ol> </nav> </xsl:template>

css-handling="unchanged" behaviour

Currently the css-handling parameter trigger the css handling even when its value is "unchanged" and therefore the epub generation fails in case of css parsing errors.

Would it be possible to completely skip the css parsing when css-handling="unchanged" and copy over in the generated epub whatever css files are in the sources (ideally inserting also the relevant manifest entries) ?

This would help also with valid but complex css as the css parsing is quite slow.

Where to specify `generated-frontmatter-title`

In heading-conf.rnc:

    ## If there is content before the first splitting point,
    ##           it will be referred to by the toc as 'Frontmatter' or, if present, the
    ##           value of generated-frontmatter-title. If generated-frontmatter-title 
    ##           is the empty string (or whitespace-only), the toc entry will be left out.

Where can I specify this generated-frontmatter-title?
In epub-config.xml?

BTW, ‘Frontmatter’ is not an ideal default, according to my dictionary the spelling is ‘Front matter’.

Since in this case it will be most likely will be used in title case, I would go for the default: ‘Front Matter’. I would have made a pull request, but I’ve seen this value used in various places and was afraid to break things…

Cheers,

Splitter problem with conditional-split elements

In my example there are some h1 elements that are splitted at. Additionally two paragraphs containing the class »TOC1« contain contents that shall be displayed in NCX. I wanted to allow a conditional split on those. If I use the conditional-split element in the heading-conf.xml, the hierarchy level in NCX becomes lower than if I use the unconditional-split element.
At first I thought there was a problem with concurrent classes because another class (»abgesenkt«) that is defined as conditional-split also occurs on the mentioned paras. But that didn't seem to be the problem.

https://subversion.le-tex.de/customers/hanser/bel/content/hanser/CHV/26009/tei

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.