Complete table list for braille embosser support
Hello,
Here is an update for the table list.
I have contacted the liblouis project for them to include the descriptions in liblouis itself. For now we can code these here.
Samuel
=== modified file 'Makefile.am'
Makefile.am +7 -2
@@ -289,7 +289,12 @@ GENERATED_LIBLOUIS = \ filter/braille/filters/liblouis2.defs \ filter/braille/filters/liblouis3.defs \ filter/braille/filters/liblouis4.defs -GENERATED_DEFS=$(GENERATED_LIBLOUIS) +GENERATED_DEFS= \ + filter/braille/filters/liblouis1.defs \ + $(GENERATED_LIBLOUIS) + +filter/braille/filters/liblouis1.defs: filter/braille/filters/liblouis1.defs.gen + $< > $@ $(GENERATED_LIBLOUIS): filter/braille/filters/liblouis%.defs: filter/braille/filters/liblouis1.defs sed -e "s/Braille transcription/Additional Braille transcription ($*)/" -e s/LibLouis/LibLouis$*/ < $< > $@
@@ -299,7 +304,7 @@ pkgppdc_DATA += \ filter/braille/drivers/index/index.defs \ filter/braille/filters/braille.defs \ filter/braille/filters/imagemagick.defs \ - filter/braille/filters/liblouis1.defs \ + filter/braille/filters/liblouis1.defs.gen.in \ filter/braille/filters/liblouis.defs \ filter/braille/drivers/common/fr-braille.po nodist_pkgppdc_DATA = \
=== modified file 'configure.ac'
configure.ac +4 -0
@@ -817,8 +817,12 @@ AC_CONFIG_FILES([ filter/braille/filters/cups-braille.sh filter/braille/filters/imagetobrf filter/braille/filters/texttobrf + filter/braille/filters/liblouis1.defs.gen mime/cupsfilters.convs ]) +AC_CONFIG_COMMANDS([executable-scripts], [ + chmod +x filter/braille/filters/liblouis1.defs.gen +]) AC_OUTPUT # ==============================================
=== removed file 'filter/braille/filters/liblouis1.defs'
braille/filters/liblouis1.defs +0 -58
58 lines not on this page · raw message
=== added file 'filter/braille/filters/liblouis1.defs.gen.in'
braille/filters/liblouis1.defs.gen.in +260 -0
260 lines not on this page · raw message
Quoted 3 lines · Samuel Thibault, on dim. 26 févr. 2017 19:57:12 +0100, wrote:
Here is an update for the table list.
I have contacted the liblouis project for them to include the descriptions in liblouis itself. For now we can code these here.
And here is a patch to be applied on top of it, that automatically selects a table according to the current locale.
Samuel
filter/braille/filters/liblouis1.defs.gen.in +6 -1
@@ -28,7 +28,12 @@ TABLESDIR=@TABLESDIR@ echo 'Group "Braille/Braille transcription"' echo 'Option "LibLouis/Braille transcription" PickOne AnySetup 10' -echo ' *Choice "None/None" ""' +echo ' Choice "None/None" ""' +echo ' *Choice "Locale/Default for language" ""' +echo ' Choice "Locale-g0/Default for language grade 0" ""' +echo ' Choice "Locale-g1/Default for language grade 1" ""' +echo ' Choice "Locale-g2/Default for language grade 2" ""' +echo ' Choice "Locale-g3/Default for language grade 3" ""' ( for i in $TABLESDIR/*.utb $TABLESDIR/*.ctb
Makefile.am +5 -1
@@ -297,7 +297,11 @@ filter/braille/filters/liblouis1.defs: f $< > $@ $(GENERATED_LIBLOUIS): filter/braille/filters/liblouis%.defs: filter/braille/filters/liblouis1.defs - sed -e "s/Braille transcription/Additional Braille transcription ($*)/" -e s/LibLouis/LibLouis$*/ < $< > $@ + sed -e "s/Braille transcription/Additional Braille transcription ($*)/" \ + -e "s/^ \\*Choice / Choice /" \ + -e "s/^ Choice \"None\// *Choice \"None\//" \ + -e s/LibLouis/LibLouis$*/ \ + < $< > $@ pkgppdc_DATA += \ filter/braille/drivers/common/media-braille.defs \
filter/braille/filters/cups-braille.sh.in +44 -10
63 lines not on this page · raw message
Thank you for the last two patches. I have applied them now.
Till
Quoted 9 lines · Samuel Thibault
Quoted 3 lines · Samuel Thibault, on dim. 26 févr. 2017 19:57:12 +0100, wrote:
Here is an update for the table list.
I have contacted the liblouis project for them to include the descriptions in liblouis itself. For now we can code these here.And here is a patch to be applied on top of it, that automatically selects a table according to the current locale.
Samuel
Hello,
It seems the encoding of the patch wasn't correct (unfortunately I had set my mailer to use latin1 whenever that's enough, I have now disabled that).
The attached patch fixes the encoding of
filter/braille/filters/liblouis1.defs.gen.in
Samuel
=== modified file 'filter/braille/filters/liblouis1.defs.gen.in'
braille/filters/liblouis1.defs.gen.in +4 -4
@@ -110,9 +110,9 @@ echo ' Choice "Locale-g3/Default for la "fi-fi-8dot") LANGUAGE=Finnish DESC="8dot" ;; "fi-fi") LANGUAGE=Finnish DESC="6dot" ;; "fr-2007") LANGUAGE=French DESC="2007" ;; - "fr-bfu-comp6") LANGUAGE=French DESC="Braille Fran�ais Unifi� computer 6 dots" ;; - "fr-bfu-comp8") LANGUAGE=French DESC="Braille Fran�ais Unifi� computer 8 dots" ;; - "fr-bfu-g2") LANGUAGE=French DESC="Braille Fran�ais Unifi� grade 2" ;; + "fr-bfu-comp6") LANGUAGE=French DESC="Braille Français Unifié computer 6 dots" ;; + "fr-bfu-comp8") LANGUAGE=French DESC="Braille Français Unifié computer 8 dots" ;; + "fr-bfu-g2") LANGUAGE=French DESC="Braille Français Unifié grade 2" ;; "fr-ca-g1") LANGUAGE=French LOCATION=Canada DESC="grade 1" ;; "Fr-Ca-g2") LANGUAGE=French LOCATION=Canada DESC="grade 2" ;; "fr-fr-g1") LANGUAGE=French LOCATION=France DESC="grade 1" ;;
@@ -236,7 +236,7 @@ echo ' Choice "Locale-g3/Default for la fr_FR) LANGUAGE=French ;; hu_HU) LANGUAGE=Hungarian ;; it_IT) LANGUAGE=Italian ;; - nb_NO) LANGUAGE="Norwegian Bokm�l" ;; + nb_NO) LANGUAGE="Norwegian Bokmål" ;; nl_NL) LANGUAGE=Dutch ;; nn_NO) LANGUAGE="Norwegian Nynorsk" ;; pl_PL) LANGUAGE=Polish ;;
Till Kamppeter
AppliedQuoted 8 lines · Samuel Thibault
Hello,
It seems the encoding of the patch wasn't correct (unfortunately I had set my mailer to use latin1 whenever that's enough, I have now disabled that).
The attached patch fixes the encoding of
filter/braille/filters/liblouis1.defs.gen.in
I have applied the correction, thank you very much.
Till