Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Default character for unrecognized characters #6

Closed
josteinaj opened this issue Sep 14, 2015 · 3 comments
Closed

Default character for unrecognized characters #6

josteinaj opened this issue Sep 14, 2015 · 3 comments
Assignees

Comments

@josteinaj
Copy link
Member

When liblouis encounters an unrecognized character, it seems to generate a long braille pattern based maybe on the unicode value. This can be quite confusing for the end-user, and it would probably be better to have a default character for these cases. It could for instance default to a question mark, a space character, or something else.

@bertfrees is this possible with an opcode or should it be part of preprocessing?

@bertfrees
Copy link
Contributor

This is already supported in liblouis. See Miscellaneous Opcodes:

undefined dots

If this opcode is used in a table any characters which have not been defined in the table but are encountered in the text will be replaced by the dot pattern. If this opcode is not used, any undefined characters are replaced by '\xhhhh', where the h’s are hexadecimal digits.

Another possibility is to return an error or alert the user when encountering undefined input characters (snaekobbi/liblouis#11, snaekobbi/pipeline-mod-braille#54).

@josteinaj
Copy link
Member Author

Interesting, thanks! We'll try adding that opcode to the norwegian table then.

@josteinaj josteinaj assigned usama49 and unassigned bertfrees Sep 14, 2015
@usama49
Copy link
Contributor

usama49 commented Sep 16, 2015

fixed. undefined character are treated as "?" sign. I have up dated table.

@usama49 usama49 closed this as completed Sep 16, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants