Integrate regular and "bidi" German tables#1100
Conversation
These tests are really weird and will probably never occur in real life text
This table can be used to lowercase all chars before liblouis performs any translation.
This is basically the first step to merge them. I just copied the bidi table ontop of the g0-core table. Thanks to the latinLowercase table all the tests involving caps should still work. I made one small change, namely enable the downgrade emphclass which wasn't in the bidi table.
|
So I replaced the g0-core table with the bidi table. Most tests pass with some exceptions:
|
And the comment says that the line can be removed once #717 has been fixed which it has.
|
OK, the problem with ck in g2 is gone. There are still some weird |
|
@egli Already did a round of reviewing. I know it's still a draft, but still, my remarks could be useful. |
I checked with @mixa72
This essentially merges the g0 bidi core with the g0 core. To achieve that I had to do the following: - expand the detailed accents table. The include (and overwrite) mechanism didn't work as desired. Presumably the base opcode cannot handle overwrites. - Reduce the many context rules that handle single capital letter to just a few. Also I changed the sign that I insert as I had problems with the ck contraction if I use the 45-65 combination. So I use @12345678 instead
|
So I managed to get rid of There are still some problems remaining:
|
This is probably a workaround around a bug in the base opcode where base doesn't seem to trigger when the lowercase char is preceded with a noback
|
|
Hi @BueVest why does Æ need to be indicated with 46 whereas all the other single capital letters are indicated with 45? Is that test case really correct? See https://github.com/liblouis/liblouis/blob/bidi-merge/tests/braille-specs/de-g0-bidi-specs.yaml#L258 |
and also move to the pass2 rules to the associated context rules
This is a cheap hack I know. It's for explorative purposes only. What baffles me is that some stuff is contracted but there is no contraction of 'st' and oddly enough in g2 it contracts the 'te' of 'stel' instead of the 'st' and the 'el'
| @@ -1,6 +1,7 @@ | |||
| # liblouis: German grade 0 braille | |||
| # liblouis: German grade 0 braille (bidirectional) | |||
There was a problem hiding this comment.
"bidirectional" -> "with indication of capitals"
There was a problem hiding this comment.
Would "detailed" be OK? Because it is with capitals and with detailed accents
[ and ] are translated with a leading dot 6. So after a number we need a double dot 6 unless it will be read as a plain )
| #-index-name: German, uncontracted, detailed | ||
| #-display-name: German uncontracted braille (detailed) |
There was a problem hiding this comment.
"Detailed" is maybe a bit cryptic for a display name. I'd have called it something like "German uncontracted braille with indication of capitals" (similar to ru-litbrl-detailed.utb). More precise would be "German uncontracted braille with indication of capitals and detailed representation of accented letters", but that may be a bit too long.
There was a problem hiding this comment.
But "detailed" might be fine too, dunno.
|
@bertfrees any idea why |
Just run |
make
go get golang.org/x/text/language/display
go: downloading golang.org/x/text v0.3.7
go build -buildmode=c-archive displayLanguage.go
displayLanguage.go:5:2: no required module provides package golang.org/x/text/language: go.mod file not found in current directory or any parent directory; see 'go help modules'
displayLanguage.go:6:2: no required module provides package golang.org/x/text/language/display: go.mod file not found in current directory or any parent directory; see 'go help modules'
make: *** [Makefile:19: displayLanguage.h] Error 1
|
|
Related to #911