Re: Braille format support
Samuel Thibault <[email protected]> Mon, 3 Mar 2008 09:58:43 +0000
| Newsgroups | gmane.comp.video.image-magick.devel |
|---|---|
| Message-ID | <20080303095843.GA22530@implementation> |
Hello, [email protected], le Fri 29 Feb 2008 21:06:12 -0800, a écrit : > > This adds support for braille format output > > Thanks for contributing the braille coder. We'll add it to ImageMagick > 6.3.9-2 Beta within a day or two. Mario Lang (Cc-ed) proposed to use .ubrl instead of .txtbrl (shorter, and expresses through 'u' that it is unicode/utf-8), here is a patch. Samuel _______________________________________________ Magick-developers mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-developers
patch
(text/plain, 1.1 KB)
Index: ImageMagick/coders/braille.c
===================================================================
--- ImageMagick/coders/braille.c (r�vision 10124)
+++ ImageMagick/coders/braille.c (copie de travail)
@@ -98,7 +98,7 @@
entry->description=AcquireString("BRF ASCII Braille format");
entry->module=AcquireString("BRAILLE");
(void) RegisterMagickInfo(entry);
- entry=SetMagickInfo("TXTBRL");
+ entry=SetMagickInfo("UBRL");
entry->encoder=(EncodeImageHandler *) WriteBRAILLEImage;
entry->adjoin=MagickFalse;
entry->description=AcquireString("Unicode Text format");
@@ -135,7 +135,7 @@
ModuleExport void UnregisterBRAILLEImage(void)
{
(void) UnregisterMagickInfo("BRF");
- (void) UnregisterMagickInfo("TXTBRL");
+ (void) UnregisterMagickInfo("UBRL");
(void) UnregisterMagickInfo("ISOBRL");
}
@@ -201,7 +201,7 @@
assert(image != (Image *) NULL);
assert(image->signature == MagickSignature);
- if (LocaleCompare(image_info->magick, "TXTBRL") == 0)
+ if (LocaleCompare(image_info->magick, "UBRL") == 0)
unicode = 1;
else
if (LocaleCompare(image_info->magick, "ISOBRL") == 0)