Re: Hiding Glyphs

2009-06-20 Thread Keith Blount
Hi, Sorry for being over a week late to this thread, but I'm the guy who was trying to get hidden text to work before, in the thread mentioned earlier (Martin kindly pointed me in this direction). I'm not sure why the test code archives on my site weren't decompressing, but they probably just

Re: Hiding Glyphs

2009-06-12 Thread Philip White
On Jun 5, 2009, at 5:12 PM, Douglas Davidson wrote: As I understand it, what you want to do is not to affect layout at all, but simply to cause certain glyphs not to be displayed. In general this can be problematic, because without knowledge of the font involved one can't necessarily g

Re: Hiding Glyphs

2009-06-05 Thread Philip White
Thank you very much, I think my situation makes some of the potential problems you mentioned probably not too problematic. None of the markings I want to suppress are precomposed, I believe. Also, the text shouldn't have any other decorations such as you mentioned and the text won't be us

Re: Hiding Glyphs

2009-06-05 Thread glenn andreas
On Jun 5, 2009, at 6:45 PM, Martin Wierschin wrote: The link for source code still seems to be working. You know, that's the post I found a few months ago. Something is wrong with the linked file, of three compression program, one was able to decompress it but the result contained no sour

Re: Hiding Glyphs

2009-06-05 Thread Martin Wierschin
The link for source code still seems to be working. You know, that's the post I found a few months ago. Something is wrong with the linked file, of three compression program, one was able to decompress it but the result contained no source code. Hrm, I can't decompress it either. You might

Re: Hiding Glyphs

2009-06-05 Thread Douglas Davidson
On Jun 5, 2009, at 8:36 AM, Philip White wrote: Is there any easy way, maybe using NSGlyphInfoAttributeName, to have a glyph not be drawn at all? Like maybe replacing it with some kind of empty glyph? You can't seem to get glyphs for invisible characters, so I don't really know how to go

Re: Hiding Glyphs

2009-06-05 Thread Philip White
On Jun 5, 2009, at 4:58 PM, Martin Wierschin wrote: Is there any easy way, maybe using NSGlyphInfoAttributeName, to have a glyph not be drawn at all? Like maybe replacing it with some kind of empty glyph? You might read this post (and Aki's followup): http://www.cocoabuilder.com/a

Re: Hiding Glyphs

2009-06-05 Thread Martin Wierschin
Is there any easy way, maybe using NSGlyphInfoAttributeName, to have a glyph not be drawn at all? Like maybe replacing it with some kind of empty glyph? You might read this post (and Aki's followup): http://www.cocoabuilder.com/archive/message/cocoa/2008/3/10/200928 The link for sou

Re: Hiding Glyphs

2009-06-05 Thread glenn andreas
On Jun 5, 2009, at 11:06 AM, Philip White wrote: Hi, Well the text view is read-only for the user. I regret saying "diacriticals". I actually want to hide niqqudot and tashkil in Hebrew and Arabic. As far as I know, these are all separate characters. If they are read-only, why not j

Re: Hiding Glyphs

2009-06-05 Thread Philip White
That is certainly possible, but it doesn't seem like the elegant solution to me. I want the user to be able to turn these on and off at will. I can keep a backup of the original text and work off of that, but when texts start to be get long that will be a lot copying and deleting of charact

Re: Hiding Glyphs

2009-06-05 Thread Kyle Sluder
If it's read only for the user, why don't you just remove those characters from the text storage? NSTextStorage is a subclass of NSMutableAttributedString. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: Hiding Glyphs

2009-06-05 Thread Philip White
Hi, Well the text view is read-only for the user. I regret saying "diacriticals". I actually want to hide niqqudot and tashkil in Hebrew and Arabic. As far as I know, these are all separate characters. On Jun 5, 2009, at 9:56 AM, Kyle Sluder wrote: On Fri, Jun 5, 2009 at 8:36 AM, Philip

Re: Hiding Glyphs

2009-06-05 Thread Kyle Sluder
On Fri, Jun 5, 2009 at 8:36 AM, Philip White wrote: >  I should point out that I want to hide characters in a text view that do > not cause any advancement: diacriticals and such. Not sure what you mean here. That would make it very hard for someone to enter diacritics, wouldn't it? And even so,

Hiding Glyphs

2009-06-05 Thread Philip White
Hello, Is there any easy way, maybe using NSGlyphInfoAttributeName, to have a glyph not be drawn at all? Like maybe replacing it with some kind of empty glyph? You can't seem to get glyphs for invisible characters, so I don't really know how to go about this. I did a pretty extensive sea

Re: Glyph Generator & hiding glyphs -> _NSBlockNumberForIndex() errors

2008-03-15 Thread Keith Blount
help anyway. Many thanks and all the best, Keith - Original Message From: Aki Inoue <[EMAIL PROTECTED]> To: Keith Blount <[EMAIL PROTECTED]> Cc: cocoa-dev@lists.apple.com Sent: Monday, March 10, 2008 11:32:23 PM Subject: Re: Glyph Generator & hiding glyphs -> _NSBlockNu

Re: Glyph Generator & hiding glyphs -> _NSBlockNumberForIndex() errors

2008-03-10 Thread Aki Inoue
sage From: Aki Inoue <[EMAIL PROTECTED]> To: Keith Blount <[EMAIL PROTECTED]> Cc: cocoa-dev@lists.apple.com Sent: Monday, March 10, 2008 6:14:05 PM Subject: Re: Glyph Generator & hiding glyphs -> _NSBlockNumberForIndex() errors Keith, I was consulted about the sample from DTS

Re: Glyph Generator & hiding glyphs -> _NSBlockNumberForIndex() errors

2008-03-10 Thread Keith Blount
o have background layout enabled. Many thanks for taking an interest in this. All the best, Keith - Original Message From: Aki Inoue <[EMAIL PROTECTED]> To: Keith Blount <[EMAIL PROTECTED]> Cc: cocoa-dev@lists.apple.com Sent: Monday, March 10, 2008 6:14:05 PM Subject

Re: Glyph Generator & hiding glyphs -> _NSBlockNumberForIndex() errors

2008-03-10 Thread Aki Inoue
Keith, I was consulted about the sample from DTS and didn't find any obvious problem with it. It would be great if you could provide further detail (for example, bt of the exception raise). Thanks, Aki On 2008/03/08, at 10:41, Keith Blount wrote: Just to add a little info to my previou

RE: Glyph Generator & hiding glyphs -> _NSBlockNumberForIndex() errors

2008-03-08 Thread Keith Blount
Just to add a little info to my previous message, which was a little misleading:a My custom glyph generator replaces each glyph that is supposed to be hidden with NSNullGlyph (it doesn't just insert one NSNullGlyph for the lot of them), so I would expect the one-to-one mapping on this first pas

Glyph Generator & hiding glyphs -> _NSBlockNumberForIndex() errors

2008-03-08 Thread Keith Blount
Hi, I have a custom glyph generator (NSGlyphGenerator subclass) that is used to hide glyphs for text with certain attributes. It does this by inserting a single NSNullGlyph for a range of glyphs representing text with these hidden attributes. (This is basically a hidden text toggle.) This all w