Difference between revisions of "Notes2 Specification"

From Apache OpenOffice Wiki
Jump to: navigation, search
m
 
(73 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
<div style="border: dotted #E32636; padding:5px;">
 +
'''Please do not edit this page!''' This specification won't change because the described functionality has been integrated. Your feedback and comments are welcomed, please visit the [[Notes2|Notes2 main page]] for contact information.</div><br>
 +
 
=Improved notes=
 
=Improved notes=
  
Line 10: Line 13:
 
| width="150" | '''Last Change''' ||
 
| width="150" | '''Last Change''' ||
 
|-
 
|-
−
| width="150" | '''Status''' || Preliminary [[Specification_Template_Help#Status|Help]]
+
| width="150" | '''Status''' || Standard [[Specification_Template_Help#Status|Help]]
 
|-
 
|-
 
|}
 
|}
  
 
== Abstract ==
 
== Abstract ==
−
<START '''TYPING''' HERE>
 
 
__TOC__
 
__TOC__
  
Line 92: Line 94:
 
===General Aspects===
 
===General Aspects===
  
−
Notes can be attached to any text in the document. For each note a reference point is added to the text that is stored as a character, very much the same like text fields. No content is displayed at that text position, notes will be shown as small windows in a side pane of the text. A graphical element will serve as an anchor that points to the text position of the note and a connector will connect the anchor with the corresponding text of the note.  
+
Notes can be attached to any text in the document except text in drawing objects. For each note a reference point is added to the text that is stored as a character, very much the same like text fields. No content is displayed at that text position, notes will be shown as small windows in a side pane of the text. A graphical element will serve as an anchor that points to the text position of the note and a connector will connect the anchor with the corresponding text of the note.  
  
 
[[Image:writer_prototype001.png]]
 
[[Image:writer_prototype001.png]]
Line 98: Line 100:
 
===Visibility of notes===
 
===Visibility of notes===
  
−
In general notes will be visible in the print layout view of a text document but not in the print preview or the web layout view. The visibility can be switch on and off in "Tools - Options - Writer - View - Display", default is "On".
+
In general notes will be visible in the print layout or web layout view of a text document but not in the print preview. The visibility can be switch on and off using the "View-Notes" menu entry or in "Tools - Options - Writer - View - Display", default is "On".
−
TBD: the visibility of own notes or the notes of a particular author can be switched.
 
  
 
===The Notes side pane===
 
===The Notes side pane===
Line 106: Line 107:
 
|  
 
|  
  
−
The Notes side pane is an area that is added to left or right side of the each displayed document page. It's height is the same as the page height and the witdh is TBD at a zoom level of 100%.
+
The Notes side pane is an area that is added to the right side of each displayed document page. It's height is the same as the page height and the witdh of it is 2700 Twips.
  
−
It is considered to be an integral part of the document view. Thus it adds to the width to the document view so that the special zoom modes "Optimal", "Page width" or "Entire page" will need to consider it. As Writer centers its view it will center the combined width of document content and notes.
+
It is considered to be an integral part of the document view. Thus it adds to the width to the document view so that the special zoom modes "Optimal", "Page width" or "Entire page" will need to consider it. As Writer centers its view it will center the combined width of document content and notes. In the Web Layout the side pane is always visible and so the space usable for text is reduced by the side pane width.
−
For left-to-right text (GUI language), the side pane is located at the right side of the writer document.
 
−
For right-to-left text (GUI language), the side pane is located at the left side of the writer document.
 
  
 
'''Further defitions:'''
 
'''Further defitions:'''
Line 117: Line 116:
 
** Color: Decimal R230, G230, B230, A255 (Hex: e6e6e6ff)
 
** Color: Decimal R230, G230, B230, A255 (Hex: e6e6e6ff)
 
* The line between page and side pane area marks the end of the physical page and delimits the notes windows (similar to page margin indication):
 
* The line between page and side pane area marks the end of the physical page and delimits the notes windows (similar to page margin indication):
−
** Width: 1 screen pixel
+
** Width: 2 screen pixel
 
** Color: Decimal R200, G200, B200, A255 (Hex: c8c8c8ff)
 
** Color: Decimal R200, G200, B200, A255 (Hex: c8c8c8ff)
−
* At the moment (OOo 2.2), is colored black and the shadow of the page seems not be dependent on the zoom level. Therefore...
 
−
** Width: 3 screen pixels
 
−
** Delta with reference to the document page: horizontal 3 pixels, vertical 3 screen pixels
 
−
** Dark Color (beginning at page): Decimal R83, G83, B83, A255 (Hex: 535353ff)
 
−
** Bright Color (ending at writer background, same color as writer background in current OOo): R150, G150, B150, A255 (Hex: 969696ff)
 
−
** Please note that the shadow may be deactivated when the user edits the notes user data inside the notes windows.
 
  
 
| [[Image:Notes2_SidePane_DesignAndPosition_NormalHeight.png|right]]
 
| [[Image:Notes2_SidePane_DesignAndPosition_NormalHeight.png|right]]
Line 131: Line 124:
  
 
===The note window===
 
===The note window===
−
The window of a note displays the text of the note, the name of its author and the date of creation.  
+
The window of a note displays the text of the note and its meta data. The meta data consists of the name of its author (taken from the user data in Tools - Options - User Data) and the date of creation. The configured locale setting (Tools - Options - Language Settings - Languages - Locale Settings) will be used to select the date format.
  
−
TBD: create new screenshots without the button.
 
  
 
{| class="prettytable" border="0"
 
{| class="prettytable" border="0"
 
| [[Image:Notes2_note.png]]
 
| [[Image:Notes2_note.png]]
−
| A single note has a minimum height that allows to show date, author and at least two lines of text in the default notes font size. If the note contains more text than two lines can cover, the height of the note can be expanded. If no other notes have to be considered (see below), the size of the note can be expanded until it reaches the height of the notes side pane. If the text is still too big, scroll bars will be added to the note window.  
+
| A single note has a minimum height that allows to show date, author and at least three lines of text in the default notes font size (10 pt). If the note contains more text than the available number of lines can cover, the size of the note will be expanded on demand. The maximum possible size of a single note window is given by the page height (minus a border of some pixels). If the text is still too big to fit into the notes window size, scroll bars will be added at the right side of the note window. If more than one note window is present, space conflicts can arise that will resolved as described below.
 
| [[Image:Notes2_srollednote.png]]
 
| [[Image:Notes2_srollednote.png]]
 
|}
 
|}
  
−
The background of the note window in view mode shows a color gradient defined by a lighter starting color and a darker end color. In editing mode the background is a bulk color (the darker color of the two gradient colors). All used colors are chosen from a fixed set of colors. They are related to the color of the note anchor and connector.
+
The background of the note window in view mode shows a color gradient defined by a lighter starting color and a darker end color. In editing mode the background is a bulk color (the darker color of the two gradient colors). A third color is used for the text of the meta data. The same color is used for the "anchor" of the note at the text position that it refers and the connecting line between the anchor and the note window (see below). All three colors make up a color triple that belongs together and is part of a set of 9 triples, each of them representing one author.
−
 
 
−
TBD: mouse over effect
 
−
 
 
−
TBD: create new picture showing the colors
 
−
 
 
−
TBD: future task to assign colors to authors
 
  
 
{| class="prettytable" border="0"
 
{| class="prettytable" border="0"
−
| [[Image:Notes2_2007-09-04_ColorsForTheNotes_ForWiki.png]]
+
| [[Image:Notes2_2007-09-04_ColorsForTheNotes_ForWiki.png|center]]
−
| The two colors of the note window and the color of its connector and anchor are chosen from a set of 9 different color triples, each of them is assigned to another author. It is not possible to set the color of individual notes, colors represent authors. The colors have been designed very carefully regarding the following criteria:
+
It is not possible to configure the color of individual notes, colors represent authors, not notes. The colors have been designed very carefully regarding the following criteria:
 
* unobtrusive but appealing colors that (as a set) go together well
 
* unobtrusive but appealing colors that (as a set) go together well
 
* how distinguishable are the colors for people with visual impairments (inabilities or weaknesses in seeing some particular colors)
 
* how distinguishable are the colors for people with visual impairments (inabilities or weaknesses in seeing some particular colors)
Line 157: Line 143:
 
* how do the note connectors line and borders look in contrast to the notes window itself  
 
* how do the note connectors line and borders look in contrast to the notes window itself  
 
So consequently the colors can't be changed by users.  
 
So consequently the colors can't be changed by users.  
 +
|}
 +
 +
The note window also contains a button in the lower right corner. If the button is clicked, a menu pops up that presents some notes related functions. The same functions are available from the context menu that the user gets by right mouse click on the text area of the note window. It also contains some functions for text editing. All these functions are disabled when the document is not editable.
 +
 +
{| class="prettytable" border="0"
 +
|Menu when using the button inside the note window (the exemplary name "Christoph Noack" is replaced by the name of the corresponding author):
 +
[[Image:Buttonmenu.PNG]]
 +
 +
|Contextmenu for the note window (the exemplary name "Christoph Noack" is replaced by the name of the corresponding author):
 +
[[Image:Popupmenu.PNG]]
 
|}
 
|}
  
 
===Notes connector and anchor===
 
===Notes connector and anchor===
  
−
At the text position where a note has been inserted a graphical element representing the note anchor is displayed. It is a triangle whose upper angle points to the anchor position. The anchor and the corresponding note window are connected with a line. The color of the line and the anchor are the "accent color" of the color triples shown above. If the note window has the focus the line is solid, otherwise dotted, the line width is 1px.
+
At the text position where a note has been inserted a graphical element representing the note anchor is displayed. It is a triangle whose upper angle points to the anchor position. The anchor and the corresponding note window are connected with a line. The color of the line and the anchor are the "accent color" of the color triples shown above. If the note window has the focus or the mouse is hovered over the note window, the line is solid, otherwise dotted, the line width is 15 Twips (1px at 100% zoom factor).
 +
 
 +
===Arrangement of notes on the notes side pane===
 +
A note window places its text content at nearly the same vertical position as the text position of the anchor. The window by default has a size as explained above. If the notes side pane contains more than one note window is is possible that the necessary space to display all notes with the desired position and size is not available. Then sizes and positions of notes will be adjusted in a way that the used space is as evenly distributed amongst them as possible. This happens in the following way:
  
−
TBD: mouse over
+
* if the total height of the notes side pane is big enough to show all notes with their desired height, only positions of note windows are changed by shifting them upwards and downwards until none of them overlap any more
  
−
===Arrangement of notes on the notes side pane===
+
* if all space in the notes side pane is occupied, all note windows are shrinked to the absolute minimum that allows to show all text in them (empty notes will be shrinked to one line of text)
−
The vertical position of a note places its content at nearly the same height as the text position of the anchor. If the necessary space to display a note is not available, the size and position of the note and also those of other notes will be adjusted in a way that the used space is as evenly distributed amongst them as possible. If the size of a notes window is too small to show the complete notes text scroll bars will be shown.
+
 
 +
* if there is still not enough space, all windows will be shrinked to two lines of text. Windows containing more text will get scroll bars.
 +
 
 +
* if there is still not enough space,, some note windows will not be displayed and scroll buttons will be shown at the top and bottom of the notes side pane of the page. The scroll buttons allow to shift the position of all notes up and down, thus showing the prior invisible ones and moving out others instead (refer to [[Notes2_Design_NotesSidePane#Proposal_.22Scrollable_Side_Pane.22|Scroll Buttons]]).
 +
 
 +
[[Image:Notes2 DesignProposal NoteSidePaneScrollButtons TopVisualization.png|256px|thumb|center|Note Side Pane scroll buttons (simplified)]]
  
−
If the height of the side pane is not enough to display all notes even with the minimum height, some notes will not be displayed and scroll buttons will be shown at the top and bottom of the side pane of the page. The scroll buttons allow to shift the position of all notes up and down, thus leaving space for the prior invisible ones and moving out others instead. See the pictures below for further reference.
 
  
−
===Working with Notes===
+
Rearrangements of note windows can happen when notes are inserted or deleted, when the position of a notes anchor relative to its page changes or after a user has edited a note and its height has changed. No rearrangement happens if the view of the document changes (scrolling, zooming, resizing of the document window in print layout). Changing the page size (changing page layout or even entering text in web layout) also can cause the rearrangement of notes.
  
−
==== Creating or Editing Notes ====
+
===Creating or editing notes===
  
−
Please note that the subsequent text refers to the number of text lines representing the Notes User Data in default notes font size.  
+
If a Note is created, a notes anchor is inserted at the current cursor position. A new note window is shown in the notes side pane. This window will show the current date and the name of the current user (taken from the user data in the configuration) and it will reserve space for two lines of text in the default font size (10Pt). A connector between anchor and note will be shown with a solid line as the note window will automatically get the focus. If necessary, the view is moved so that the note is visible.
  
−
* Creation of Notes
+
If the user leaves the note without entering text by pressing "ESC" the note is removed. Selecting "Undo" will bring the empty note back. A freshly created empty note is not removed if the user leaves it by clicking somewhere else.
−
** If a Note is created, the Notes Functionality must insert the newly created Note Window at a position given by the rules of “Distribution of Notes Windows in the Side Pane”.
 
−
**: '''Example''': refer to the graphic below, Example D, Step 1.2
 
−
** If a Note is created, the Notes Functionality must sets the height of the newly created Note Window to a value that makes it possible to insert three lines of Notes User Data without resizing the Notes Window. (newly created Note Window: does not contain any Note User Data)
 
−
**: '''Rationale''': If there is few space available (e.g. for one line of text), some users “fear” that this will not be enough and will initially entering some blank lines to get some more room. We prevent this by providing enough space right from the start.
 
−
**: '''Example''': refer to the graphic below, Example A, Step 1.2
 
−
** If a Note is created and the Note Window is not completely visible on the screen, the Notes Functionality must pan the view port area to completely show the Note Window inside the Writer Document window.
 
−
**: '''Rationale''': The user wants to see the newly created object.
 
−
** If a Note is created, the Notes Functionality must set the focus to the newly created Note Window and places the cursor inside the Note Window. (inside: the area reserved for the Notes User Data)
 
−
**: '''Rationale''': The user may want to just start typing.
 
−
** If a Note is created, the Notes Functionality must create the Notes Window with the obligatory elements shown in “Structure of the Notes Window”. (elements: e.g. Notes Property Data, option button)
 
−
** If the keyboard button ESC is pressed directly after creating a Note, the Notes Functionality must reverse the action of creating the Note. (directly after creating a note: e.g. the user did not leave the note or added any information; reverse: the state of the Document before creating the Note is restored)
 
−
**: '''Rationale''': The user may want to revert the action of an accidentally inserted Note.
 
−
**: Please note: The reversion should be undo-able with the function Undo.
 
−
* Inserting or Editing Notes User Data
 
−
** If the user inserts Notes User Data in a Note Window and there is enough both free and visible space below the Notes Window, the Notes Functionality must expand the Notes Window to fit to the amount of Notes User Data. (visible: the space visible for the user; space: space in the Notes Side Pane; expands: expands the height downwards)
 
−
**: '''Example''': refer to the graphic below, Example B, Step 1.3
 
−
** If the user inserts Notes User Data in a small Note Window and there is neither enough and/or visible space available, then the Notes Functionality must... (small: the height of the Notes is adjusted for less than three lines of Notes User Data; visible: the space visible for the user; space: space in the Notes Side Pane)
 
−
*** expand the Notes Window to fit to the amount of Notes User Data.
 
−
***: '''Example''': refer to the graphic below, Example C, Step 2.1
 
−
*** pan the view port area to completely show the Note Window inside the Writer Document Window.
 
−
*** '''Rationale''': This is a very '''special case'''. If we want to keep the position of the other Notes Windows stable during editing, we have to chose this kind of implementation (overlap parts of the subsequent note). Anyway, we should wait for some feedback from the user base.
 
−
** If less space is available for the Notes Window than it is required to completely display the Notes User Data and the Notes Window has normal size, the Notes Functionality must provide scrollbar functionality inside the Note Window. (space: space in the Notes Side Pane; normal size: the height of the Note Window fits to three lines of Notes User Data; scrollbar functionality: refer to “Design of the Scrollbars”)
 
−
**: '''Example''': refer to the graphic below, Example C, Step 2.3
 
  
−
{| class="prettytable" border="1"
+
Users can enter text into the note window and they can assign attributes to the text. While a note window has the focus, the formatting tool bar for text remains active. All character and paragraph attributes that can be applied to text in drawing objects (shapes) can also be applied to the text in notes. Hyperlinks are supported also. Spell Checking and auto correction are available.
−
| [[Image:Notes2 GeneralBehavior InsertAndEditNotes.png|349px|thumb|center|Inserting and Editing Notes]]
 
−
| The graphic shows:
 
−
* The insertion of Notes (Step 1.1 to Step 1.4) and the editing of Notes (Step 2.1 to Step 2.4) in different situations.
 
−
* The situations show different amount of Notes User Data and different count of already shown Note Windows.
 
  
−
Please note:
+
If more text is entered than fits into the window the window will be expanded until its lower border reaches the next note window. If more text is entered, scroll bars are shown. While a note is edited no further rearrangements of notes in the notes side pane will happen but after leaving the note window all notes belonging to the same page may be reordered and resized as described above.
−
* The intention of this graphic is to start a discussion of the Notes behavior. Hopefully, the graphic is self-explanatory. If not, then more detailed information can be found in the text above this graphic.
 
−
* The situation in Step 2.4 of Example D is a bit simplified. Here, the size of the yellow note is the same like in the previous step although there is some more text in it. The real size is based on the amount of Notes User Data there and in the other notes.  
 
−
|}
 
  
−
'''Open Points:'''
+
Undo gets a special treatment. While a user is editing a note an undo step usually comprises entering a complete word, changing an attribute etc. Once the note window loses the focus all changes made in the editing "session" are summarized into a single undo step that can be carried out to bring the document back to the point before the last editing session of the notes was started. While editing the note the complete past Undo hierarchy of the document is accessible.
−
* What to do with notes bigger (e.g. higher) than the current ? I propose to not do any scrolling/panning if those notes get the focus (e.g. by viewing/editing). Then, the text cursor inside the Note Window should affect the scrolling behavior of the Document text and simultaneously the Notes Side Pane.  
 
−
* Answer the question if the panning does annoy the user.  
 
  
−
'''Realization:''' Realization required for first implementation of Notes.
+
===keyboard navigation===
  
−
'''Future work:''' At the moment we only focus on a static Notes Windows layout without any smooth animation and re-positioning. If animations were supported this would solve some problems and the described behavior should be revised.
+
CTRL - ALT - N (cursor inside the document)      create a new note at current position
  
−
===== Anchors =====
+
CTRL - ALT - N (cursor inside the note)          jump out of the note
−
The Notes Functionality does provide a Notes Anchor to mark up the text portion which is related to the Notes Data. The kind of Notes Anchor depends on the status of Writer Document text selection when calling the command for inserting the Note.
 
  
−
*If the document has the focus and no document text is selected, then inserting causes the Notes Anchor to be dependent of the text next to the text cursor...
+
CTRL - ALT - Page Up/Down (cursor inside the document)      go to to previous/next Note Anchor
−
**If there is some kind of word or string, then the Notes Anchor Area will contain the whole word. (refer to Examples 1 ... 4)
 
−
** If no reasonable text can be detected next to the cursor, then a simple Note Anchor Point is inserted. (refer to Example 5)
 
−
* If the document has the focus and document text is selected, then inserting a note causes the Notes Anchor Area to span the current selection of the document text. (refer to Example 6)
 
  
−
In the following '''examples,''' symbols are used for the representation of other elements:
+
CTRL - ALT - Page Up/Down (cursor inside a note) go to to previous/next Note Window
−
* Cursor is represented by '''|'''
 
−
* Anchor Area start is represented by '''>'''
 
−
* Anchor Area end is represented by '''<'''
 
−
* Anchor Point is represented by '''^'''
 
−
* Text selection start is represented by '''['''
 
−
* Text selection end is represented by ''']'''
 
  
−
<pre>
+
ESC (cursor inside a note)           jump back into the document, cursor is placed after the notes anchor position to continue writing easily. If the note is empty, it is deleted.
−
Example 1: The Notes Anchor Area for the text “This is some phone number 1030/73506|9495” would be “This is some phone number >1030/73506|9495<”.
 
−
</pre>
 
  
−
<pre>
 
−
Example 2: The Notes Anchor Area for the text “This is we|ird, isn't it?” would be “This is >we|ird<, isn't it?”
 
−
</pre>
 
  
−
<pre>
+
=== Names for Access/Configuration via UNO ===
−
Example 3: The Notes Anchor Area for the text “This is weird|, isn't it?” would be “This is >weird|<, isn't it?”
 
−
</pre>
 
  
−
<pre>
+
According to the request in [http://www.openoffice.org/issues/show_bug.cgi?id=87951 issue 87951], the functions of the Note Windows have to be named properly for the availability in the menu "Tools -> Customize -> Keyboard -> Function" (which in fact are [[uno]] functions). The functions of Note Windows refer to both the drop-down menu in the Window and the context menu for the Note User Data (text).
−
Example 4: The Notes Anchor Area for the text “I do not think this is too good ..|.” would be “I do not think this is too good >..|.<”
 
−
</pre>
 
  
−
<pre>
+
{| class="prettytable" border="1"
−
Example 5 (with whitespaces): The Notes Anchor Area for the text “And then he said      |     nothing at all.” would be “And then he said      ^|      nothing at all.”.
 
−
</pre>
 
  
−
<pre>
+
|-
−
Example 6: The Notes Anchor for such a selection “This is [some selected] text.” would be “This is >some selected< text.”.
 
−
</pre>
 
  
−
==== Viewing Notes ====
+
! uno API Identifier
  
−
(proposal will be provided soon)
+
! User Interface Label for UNO
  
−
If in doubt, draw the notes elements according to their document text position (document text position: considering the reading direction of the document language)
+
! User Interface Item in Note Window (for reference only)
  
−
==== Editing Document Text ====
+
! Comment
−
Editing the document text may have influence on the Notes in general.
 
  
−
Editing the document text has influence on the Notes Anchors:
+
|-
−
* In general, the Notes Anchors keep their position relative to the document text.
+
| .uno:DeleteNote
−
* The size of the Notes Anchor Area is dependent on the the text it includes. If the user edits the document text, which is included in the Note Anchor Area then the Note Anchor Area will be adapted accordingly.
+
| Delete Note
−
** If characters are deleted inside the Note Anchor Area, then the Notes Anchor Area is reduced accordingly. (refer to Example 1)
+
| Delete Note
−
** If characters are added inside the Note Anchor Area, then the Notes Anchor Area is expanded accordingly. (refer to Example 2)
+
| ''none''
−
** If the Note Anchor Area is reduced from on character to “zero” characters, then the Note Anchor Area is converted to a Note Anchor Point at the same position.
+
 
−
** If the Notes Anchor Point is deleted (e.g. by using the backspace key), then the Note is deleted too. (Todo: If necessary, move this point to Deleting notes.)
+
|-
−
** A Note Anchor Point behaves similar to a normal character in the document text. This behavior is similar to the current implementation of the Notes Anchor in OpenOffice.org Writer.
+
| .uno:DeleteAllNotes
−
** Please note: The kind of Notes Anchor cannot be explicitly altered afterwards by the user.
+
| Delete All Notes
 +
| Delete All Notes
 +
| ''none''
 +
 
 +
|-
 +
| .uno:DeleteAuthor
 +
| Delete All Notes by This Author
 +
| Delete All Notes by <AuthorName>
 +
| The string <AuthorName> is replaced with the author's name of the Note, so the UI string for author "Foo Bar" would be "Delete All Notes by Foo Bar". The name of the author is not known without a Note, e.g. during the keyboard customization. Therefore the replacement "This Author" is used for the uno function.
 +
|}
  
−
<pre>
+
=== Focus Visualization (Shadow) ===
−
Example 1: If the text “This is woonderful text.” is corrected to “This is wonderful text.” the Notes Anchor Area “This is >woonderful< text.” would be “This is >wonderful< text.”.
 
−
</pre>
 
  
−
<pre>
+
This section covers the shadow behavior for focus visualization. It is based on the description at [http://wiki.services.openoffice.org/wiki/Notes2_Design_Visualization_of_Focus#Proposal_.22Increased_Shadow.22 Visualization of Focus] and has been adapted to technical limitations.
−
Example 2: If the text “This is wnderful text.” is corrected to “This is wonderful text.” the Notes Anchor Area “This is >wnderful< text.” would be “This is >wonderful< text.”.
 
−
</pre>
 
  
 +
*  The following descriptions of the shadows consider the Note Window to be displayed in the document at 100% zoom level. Similar to the Notes Window itself, the shadow is dependent on the zoom level inside the document.
 +
* Color dark gradient: base color R83 G83 B83 (Hex: 535353), from alpha 255 to 0
 +
* Color bright gradient: base color R180 G180 B180 (Hex: b4b4b4), from alpha 255 to 0
  
 +
* State "Normal" of the Note Window:
 +
** If the Note Window is neither "Viewed" nor "Edited" (please see below), then the state of the Note Window is "Normal."
 +
** Element N1: width same as Note Window, height 2px, color linear bright gradient
  
 +
* State "View" of the Note Window:
 +
** If the Anchor of a Note is hovered by a) the text cursor in the Writer document window or b) hovered by the mouse pointer, then the state of the Note Window is "Viewed".
 +
** Element V1: width same as Note Window, height 4px, color linear bright gradient
  
 +
* State "Edit" of the Note Window
 +
** If the text cursor is placed inside the Note Window, then the state of the Note Window is "Edit".
 +
** Element E1: width same as Note Window, height 4px, color dark gradient linear
 +
       
 +
[[Image:Notes2 FocusVisualization Shadow Composition OOo300.png|287px|thumb|center]]
  
  
Line 304: Line 270:
  
 
== File Format ==
 
== File Format ==
−
A single file format change is needed that will be part of ODF 1.2.  
+
A single file format change is needed that will be part of ODF 1.2. The functionality using this (assign notes to a selection of text) will be implemented in the next version of this feature.
  
 
  [[Specification_Template_Help#File Format|Help]] | [[File Format Table|File Format Table Template]]
 
  [[Specification_Template_Help#File Format|Help]] | [[File Format Table|File Format Table Template]]
  
−
== Open Issues ==
 
−
<State a bulleted list of issues Issue here>
 
  
−
[[Category:Specification]]
+
[[Category:Specification]][[Category:Notes2]]

Latest revision as of 10:23, 11 November 2009

Please do not edit this page! This specification won't change because the described functionality has been integrated. Your feedback and comments are welcomed, please visit the Notes2 main page for contact information.


Improved notes

Specification Status
Author Mathias Bauer
Last Change
Status Standard Help

Abstract

References

Reference Document Check Location (URL)
Specification Process Entry Check [passed/failed] n/a
Product Requirement, RFE, Issue ID (required) [available] http://www.openoffice.org/issues/show_bug.cgi?id=6193
Product Concept Document [not available]
Test case specification (required) [available/not available] <PLEASE ENTER LOCATION HERE>
IDL Specification [available/not available]
Software Specification Rules n/a n/a
Other, e.g. references to related specs http://wiki.services.openoffice.org/wiki/Notes2

Contacts

Role Name E-Mail Address
Developer Max Odendahl <mod@openoffice.org>
Quality Assurance Éric Savary <es@openoffice.org>
Documentation Uwe Fischer <ufi@openoffice.org>
User Experience Christoph Noack <christophnoack@openoffice.org>

Acronyms and Abbreviations

Acronym / Abbreviation Definition
<WYSIWYG> <What You See Is What You Get>

Detailed Specification

General Aspects

Notes can be attached to any text in the document except text in drawing objects. For each note a reference point is added to the text that is stored as a character, very much the same like text fields. No content is displayed at that text position, notes will be shown as small windows in a side pane of the text. A graphical element will serve as an anchor that points to the text position of the note and a connector will connect the anchor with the corresponding text of the note.

Writer prototype001.png

Visibility of notes

In general notes will be visible in the print layout or web layout view of a text document but not in the print preview. The visibility can be switch on and off using the "View-Notes" menu entry or in "Tools - Options - Writer - View - Display", default is "On".

The Notes side pane

The Notes side pane is an area that is added to the right side of each displayed document page. It's height is the same as the page height and the witdh of it is 2700 Twips.

It is considered to be an integral part of the document view. Thus it adds to the width to the document view so that the special zoom modes "Optimal", "Page width" or "Entire page" will need to consider it. As Writer centers its view it will center the combined width of document content and notes. In the Web Layout the side pane is always visible and so the space usable for text is reduced by the side pane width.

Further defitions:

  • The color of the side pane is used to reduce the brightness contrast of notes windows and the (generally) dark writer background.
    • Color: Decimal R230, G230, B230, A255 (Hex: e6e6e6ff)
  • The line between page and side pane area marks the end of the physical page and delimits the notes windows (similar to page margin indication):
    • Width: 2 screen pixel
    • Color: Decimal R200, G200, B200, A255 (Hex: c8c8c8ff)
Notes2 SidePane DesignAndPosition NormalHeight.png

The note window

The window of a note displays the text of the note and its meta data. The meta data consists of the name of its author (taken from the user data in Tools - Options - User Data) and the date of creation. The configured locale setting (Tools - Options - Language Settings - Languages - Locale Settings) will be used to select the date format.


Notes2 note.png A single note has a minimum height that allows to show date, author and at least three lines of text in the default notes font size (10 pt). If the note contains more text than the available number of lines can cover, the size of the note will be expanded on demand. The maximum possible size of a single note window is given by the page height (minus a border of some pixels). If the text is still too big to fit into the notes window size, scroll bars will be added at the right side of the note window. If more than one note window is present, space conflicts can arise that will resolved as described below. Notes2 srollednote.png

The background of the note window in view mode shows a color gradient defined by a lighter starting color and a darker end color. In editing mode the background is a bulk color (the darker color of the two gradient colors). A third color is used for the text of the meta data. The same color is used for the "anchor" of the note at the text position that it refers and the connecting line between the anchor and the note window (see below). All three colors make up a color triple that belongs together and is part of a set of 9 triples, each of them representing one author.

Notes2 2007-09-04 ColorsForTheNotes ForWiki.png

It is not possible to configure the color of individual notes, colors represent authors, not notes. The colors have been designed very carefully regarding the following criteria:

  • unobtrusive but appealing colors that (as a set) go together well
  • how distinguishable are the colors for people with visual impairments (inabilities or weaknesses in seeing some particular colors)
  • how readable is text written on a background using one of these colors
  • how do the note connectors line and borders look in contrast to the notes window itself

So consequently the colors can't be changed by users.

The note window also contains a button in the lower right corner. If the button is clicked, a menu pops up that presents some notes related functions. The same functions are available from the context menu that the user gets by right mouse click on the text area of the note window. It also contains some functions for text editing. All these functions are disabled when the document is not editable.

Menu when using the button inside the note window (the exemplary name "Christoph Noack" is replaced by the name of the corresponding author):

Buttonmenu.PNG

Contextmenu for the note window (the exemplary name "Christoph Noack" is replaced by the name of the corresponding author):

Popupmenu.PNG

Notes connector and anchor

At the text position where a note has been inserted a graphical element representing the note anchor is displayed. It is a triangle whose upper angle points to the anchor position. The anchor and the corresponding note window are connected with a line. The color of the line and the anchor are the "accent color" of the color triples shown above. If the note window has the focus or the mouse is hovered over the note window, the line is solid, otherwise dotted, the line width is 15 Twips (1px at 100% zoom factor).

Arrangement of notes on the notes side pane

A note window places its text content at nearly the same vertical position as the text position of the anchor. The window by default has a size as explained above. If the notes side pane contains more than one note window is is possible that the necessary space to display all notes with the desired position and size is not available. Then sizes and positions of notes will be adjusted in a way that the used space is as evenly distributed amongst them as possible. This happens in the following way:

  • if the total height of the notes side pane is big enough to show all notes with their desired height, only positions of note windows are changed by shifting them upwards and downwards until none of them overlap any more
  • if all space in the notes side pane is occupied, all note windows are shrinked to the absolute minimum that allows to show all text in them (empty notes will be shrinked to one line of text)
  • if there is still not enough space, all windows will be shrinked to two lines of text. Windows containing more text will get scroll bars.
  • if there is still not enough space,, some note windows will not be displayed and scroll buttons will be shown at the top and bottom of the notes side pane of the page. The scroll buttons allow to shift the position of all notes up and down, thus showing the prior invisible ones and moving out others instead (refer to Scroll Buttons).
Note Side Pane scroll buttons (simplified)


Rearrangements of note windows can happen when notes are inserted or deleted, when the position of a notes anchor relative to its page changes or after a user has edited a note and its height has changed. No rearrangement happens if the view of the document changes (scrolling, zooming, resizing of the document window in print layout). Changing the page size (changing page layout or even entering text in web layout) also can cause the rearrangement of notes.

Creating or editing notes

If a Note is created, a notes anchor is inserted at the current cursor position. A new note window is shown in the notes side pane. This window will show the current date and the name of the current user (taken from the user data in the configuration) and it will reserve space for two lines of text in the default font size (10Pt). A connector between anchor and note will be shown with a solid line as the note window will automatically get the focus. If necessary, the view is moved so that the note is visible.

If the user leaves the note without entering text by pressing "ESC" the note is removed. Selecting "Undo" will bring the empty note back. A freshly created empty note is not removed if the user leaves it by clicking somewhere else.

Users can enter text into the note window and they can assign attributes to the text. While a note window has the focus, the formatting tool bar for text remains active. All character and paragraph attributes that can be applied to text in drawing objects (shapes) can also be applied to the text in notes. Hyperlinks are supported also. Spell Checking and auto correction are available.

If more text is entered than fits into the window the window will be expanded until its lower border reaches the next note window. If more text is entered, scroll bars are shown. While a note is edited no further rearrangements of notes in the notes side pane will happen but after leaving the note window all notes belonging to the same page may be reordered and resized as described above.

Undo gets a special treatment. While a user is editing a note an undo step usually comprises entering a complete word, changing an attribute etc. Once the note window loses the focus all changes made in the editing "session" are summarized into a single undo step that can be carried out to bring the document back to the point before the last editing session of the notes was started. While editing the note the complete past Undo hierarchy of the document is accessible.

keyboard navigation

CTRL - ALT - N (cursor inside the document) create a new note at current position

CTRL - ALT - N (cursor inside the note) jump out of the note

CTRL - ALT - Page Up/Down (cursor inside the document) go to to previous/next Note Anchor

CTRL - ALT - Page Up/Down (cursor inside a note) go to to previous/next Note Window

ESC (cursor inside a note) jump back into the document, cursor is placed after the notes anchor position to continue writing easily. If the note is empty, it is deleted.


Names for Access/Configuration via UNO

According to the request in issue 87951, the functions of the Note Windows have to be named properly for the availability in the menu "Tools -> Customize -> Keyboard -> Function" (which in fact are uno functions). The functions of Note Windows refer to both the drop-down menu in the Window and the context menu for the Note User Data (text).

uno API Identifier User Interface Label for UNO User Interface Item in Note Window (for reference only) Comment
.uno:DeleteNote Delete Note Delete Note none
.uno:DeleteAllNotes Delete All Notes Delete All Notes none
.uno:DeleteAuthor Delete All Notes by This Author Delete All Notes by <AuthorName> The string <AuthorName> is replaced with the author's name of the Note, so the UI string for author "Foo Bar" would be "Delete All Notes by Foo Bar". The name of the author is not known without a Note, e.g. during the keyboard customization. Therefore the replacement "This Author" is used for the uno function.

Focus Visualization (Shadow)

This section covers the shadow behavior for focus visualization. It is based on the description at Visualization of Focus and has been adapted to technical limitations.

  • The following descriptions of the shadows consider the Note Window to be displayed in the document at 100% zoom level. Similar to the Notes Window itself, the shadow is dependent on the zoom level inside the document.
  • Color dark gradient: base color R83 G83 B83 (Hex: 535353), from alpha 255 to 0
  • Color bright gradient: base color R180 G180 B180 (Hex: b4b4b4), from alpha 255 to 0
  • State "Normal" of the Note Window:
    • If the Note Window is neither "Viewed" nor "Edited" (please see below), then the state of the Note Window is "Normal."
    • Element N1: width same as Note Window, height 2px, color linear bright gradient
  • State "View" of the Note Window:
    • If the Anchor of a Note is hovered by a) the text cursor in the Writer document window or b) hovered by the mouse pointer, then the state of the Note Window is "Viewed".
    • Element V1: width same as Note Window, height 4px, color linear bright gradient
  • State "Edit" of the Note Window
    • If the text cursor is placed inside the Note Window, then the state of the Note Window is "Edit".
    • Element E1: width same as Note Window, height 4px, color dark gradient linear
Notes2 FocusVisualization Shadow Composition OOo300.png


Help | User Interface Element Templates | Example Spec

Migration

Old documents containing notes will works flawlessly with the new user interface.

Configuration

No configuration means are needed to use the new functionality.

Help | Configuration Table Template

File Format

A single file format change is needed that will be part of ODF 1.2. The functionality using this (assign notes to a selection of text) will be implemented in the next version of this feature.

Help | File Format Table Template
Personal tools