Bug 2681 - BRF encoding (braille)
Summary: BRF encoding (braille)
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: unspecified
: P2 enhancement
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-21 21:47 UTC by Samuel Thibault
Modified: 2019-04-10 07:17 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
libc/localedata/charmaps/BRF (1.26 KB, text/plain)
2006-05-21 21:48 UTC, Samuel Thibault
Details
libc/iconvdata/brf.c (633 bytes, text/plain)
2006-05-21 21:49 UTC, Samuel Thibault
Details
libc/iconvdata/testdata/BRF (145 bytes, text/plain)
2006-05-21 21:50 UTC, Samuel Thibault
Details
libc/iconvdata/testdata/BRF..UTF8 (155 bytes, text/plain; charset=utf-8)
2006-05-21 21:51 UTC, Samuel Thibault
Details
libc/localedata/charmaps/BRF (1.14 KB, text/plain)
2006-05-23 22:47 UTC, Samuel Thibault
Details
libc/iconvdata/testdata/BRF (98 bytes, text/plain)
2006-05-23 22:48 UTC, Samuel Thibault
Details
libc/iconvdata/testdata/BRF..UTF8 (139 bytes, text/plain; charset=utf-8)
2006-05-23 22:49 UTC, Samuel Thibault
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Thibault 2006-05-21 21:47:32 UTC
BRF (Braille Format), aka ASCII Braille, is a usual way of encoding formated braille texts, ready to submit to a braille embosser.  One can find a lot of .brf file on internet, so it would be very helpful to have this encoding in iconv.  Attached is a simple table-based implementation (not tested, but generated from brltty tools) with a test-case (written by hand and tested with brltty tools).
Comment 1 Samuel Thibault 2006-05-21 21:48:40 UTC
Created attachment 1037 [details]
libc/localedata/charmaps/BRF
Comment 2 Samuel Thibault 2006-05-21 21:49:10 UTC
Created attachment 1038 [details]
libc/iconvdata/brf.c
Comment 3 Samuel Thibault 2006-05-21 21:50:54 UTC
Created attachment 1039 [details]
libc/iconvdata/testdata/BRF

Testcase for usual BRF range (0x20-0x5f)
Comment 4 Samuel Thibault 2006-05-21 21:51:40 UTC
Created attachment 1040 [details]
libc/iconvdata/testdata/BRF..UTF8

Result of conversion of the previously-attached testcase into UTF-8
Comment 5 Samuel Thibault 2006-05-21 21:59:20 UTC
Note: there are duplicates.

Strict BRF only defines 0x00-0x5f: 0x00-0x1f for usual ascii commands,
and 0x20-05f is bijective with 6-dots patterns.

In addition to that, a-z{}|~` are usually defined as I described
in the table because it often happens that .brf files (erroneously)
include some of them.
Comment 6 Samuel Thibault 2006-05-23 22:46:02 UTC
Mmm, thanks to a debian snapshot, I could realize that duplicates pose problem. Here are files without duplicates, which actually got tested. 
Comment 7 Samuel Thibault 2006-05-23 22:47:23 UTC
Created attachment 1043 [details]
libc/localedata/charmaps/BRF
Comment 8 Samuel Thibault 2006-05-23 22:48:03 UTC
Created attachment 1044 [details]
libc/iconvdata/testdata/BRF
Comment 9 Samuel Thibault 2006-05-23 22:49:01 UTC
Created attachment 1045 [details]
libc/iconvdata/testdata/BRF..UTF8
Comment 10 Samuel Thibault 2006-12-08 02:41:00 UTC
Any remaining problem on this?  This charset just got registered by IANA. 
Comment 11 Ulrich Drepper 2007-01-20 00:24:08 UTC
I've added the files and the required infrastructure changes upstream.