liblouis icon indicating copy to clipboard operation
liblouis copied to clipboard

Special handling of the new `#+unicode-range` metadata field

Open bertfrees opened this issue 1 year ago • 6 comments

  • Default value in tables is ucs2
  • Default value in queries is determined by CHARSIZE
  • ucs2 in table also matches ucs4 in query

see https://github.com/liblouis/liblouis/issues/1521

bertfrees avatar May 22 '24 14:05 bertfrees

And I've added this to the Wiki page:

  • #+unicode-range: whether the characters used in this table all fall inside the 0-U+FFFF Unicide range (ucs2), or whether some characters are in the > U+10000-U+10FFFF range (ucs4). This metadata field exists because the latter category of tables will not work with versions of Liblouis compiled for 16-bit.

bertfrees avatar May 22 '24 14:05 bertfrees

@egli Can you check what's wrong with the de-blista-dictionary.yaml test?

bertfrees avatar May 22 '24 17:05 bertfrees

@egli Can you check what's wrong with the de-blista-dictionary.yaml test?

Are you referring to a PR? I don't understand: is this somehow related to this PR?

egli avatar May 23 '24 08:05 egli

Ah, I see what you are talking about:

FAIL: braille-specs/de-blista-dictionary
========================================

0050:err:explorer:initialize_display_settings Failed to query current display settings for L"\\\\.\\DISPLAY1".
Tables have not been indexed yet. Indexing LOUIS_TABLEPATH.
Best match: /home/runner/work/liblouis/liblouis/tables/de-g2.ctb (26)
lou_checkyaml.exe:./braille-specs/de-blista-dictionary.yaml:221: found unexpected ':'
FAIL braille-specs/de-blista-dictionary.yaml (exit status: 1)

egli avatar May 23 '24 08:05 egli

Ah, I see the problem.

- [Autor:innen, ⠡⠞⠢⠠⠒⠔⠝⠉, {xfail: true}] # 16-2345-26-6-25-35-1345-14
- [Autor*innen, ⠡⠞⠢⠠⠔⠊⠝⠝⠉, {xfail: true}] # 16-2345-26-6-35-24-1345-1345-14

I'll create a PR

egli avatar May 23 '24 08:05 egli

see #1572

egli avatar May 23 '24 08:05 egli