• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Line separator - root problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Line separator - root problem


  • Subject: Re: Line separator - root problem
  • From: Izidor Jerebic <email@hidden>
  • Date: Sat, 3 Apr 2004 15:53:00 +0200

On Apr 3, 2004, at 3:25 PM, Scott Thompson wrote:

I think this behavior is documented at:

<http://developer.apple.com/documentation/Carbon/Conceptual/ ATSUI_Concepts/atsui_app_unicode/chapter_8_section_2.html>

It says that ATSUI, which I suspect it the technology underlying NSTextView's Unicode rendering, treats U+2028 (Line Separator) as a hard break. This, of course, flies in the face of the standard behavior for that character described at:

<http://www.unicode.org/reports/tr14/#DescriptionOfProperties>

Then it sounds like a limitation in the Unicode layout support found in ATSUI. If the behavior is important to you should probably report it as a bug to Apple at <http://bugreport.apple.com>.

You might be able to work around the text view's default behavior by creating your own NSTextContainer.



This is not the problem I have...

My problem is not in line breaking. I want the line break there. The problem is the formatting.

The problem is that nstext system formats the characters following the line separator as new paragraph (e.g. using first-line indent instead of normal line indent, and paragraph spacing instead of line spacing). If the text system would only break the line and proceed as within the paragraph (not as the start of the paragraph), everything would be just fine.


Regards,
Izidor Jerebic

P.S. This is what the Unicode standard says (in that page), and it seems that the NSText behaviour is buggy (it should not apply paragraph formatting):

BK  Mandatory Break (A)  (normative)

Explicit breaks act independently of the surrounding characters.

000C

FORM FEED

Form Feed separates pages. The text on the new page starts at the beginning of the line. No paragraph formatting is applied.

2028

LINE SEPARATOR

The text after the Line Separator starts at the beginning of the line. No paragraph formatting is applied.

This is similar to HTML <BR>

2029

PARAGRAPH SEPARATOR

The text of the new paragraph starts at the beginning of the line. Paragraph formatting is applied.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Line separator - root problem (From: Izidor Jerebic <email@hidden>)
 >Re: Line separator - root problem (From: Scott Thompson <email@hidden>)

  • Prev by Date: Re: Line separator - root problem
  • Next by Date: Re: Has anyone successfully used vImageConvert_ChunkyToPlanar8?
  • Previous by thread: Re: Line separator - root problem
  • Next by thread: NSTableView overided keyDown
  • Index(es):
    • Date
    • Thread