snaekobbi / pipeline-mod-braille

ARCHIVED. Please don't make any new issues or pull requests in this repo.
0 stars 0 forks source link

Support (Swiss) German braille code #37

Open bertfrees opened 9 years ago

bertfrees commented 9 years ago

To do:

Depends on:

bertfrees commented 9 years ago

@egli I suggest that we somehow extract the translation stuff from dtbook2sbsform and make that into a DTBook specific CSSBlockTransform (see CSSBlockTransform.java). Next we convert that into an EPUB3 specific CSSBlockTransform.

With this approach you'll end up with something close to your current solution. Not sure if that's desirable or not though.

An alternative is to convert the DTBook/EPUB3 specific semantics into more generic data attached to the text nodes (e.g. with CSS) and to pipe that into a common translation step.

Independent of the question above about more/less generic code, there is the question of XSLT vs. Java. Your current solution is almost entirely XSLT. The new systems allows for more things to happen in Java.

Something to consider in all this is that it's probably desirable to have similar code for all languages.

bertfrees commented 9 years ago

The liblouis tables live in sbsdev/sbs-braille-tables (branch pipeline2). The libhyphen tables live in sbsdev/sbs-hyphenation-tables. Both are dependencies of snaekobbi/pipeline-mod-sbs.

A stub for a custom CSSBlockTransform has been created: see https://github.com/snaekobbi/pipeline-mod-sbs/commit/511bf7857610e729bf7ab60b3a0cf7b942ce6785. sbsdev/dtbook2sbsform should be ported to this stub.