wiki:TEXT_CHAR_STYLE_FLAGS_R0
Last modified 16 years ago Last modified on 02/04/09 16:42:42

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro TicketQuery(summary=TEXT_CHAR_STYLE_FLAGS_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|) failed
current transaction is aborted, commands ignored until end of transaction block

Analysis

Overview

The following styles should be adjustable:

  • Text weight: normal or bold
  • Text style: normal or italic
  • Text decoration: normal or underline
  • Strike though: present or none
  • Superscript
  • Subscript
  • Small caps

Task requirements

  • Add style flags to character settings hud.
  • This styles should be editable also from detached text frame editor and some of them from text halo menu. There could be other components that may control the style flags as well. Provide easy way of using them.

Task result

  • The result should be code

Implementation idea

  • Please review TEXT_CHARACTER_FORMAT_COMMONS_R0 and don't get into conflict with it.
  • See what has already been implemented org.sophie2.main.view.halos.menus.text.
  • There are some buttons already implemented. See if they are in the correct package or need to change their location.(For example ItalicButton is now part of the menu, but it will be used in other components as well). It may be useful to create separated package for example org.sophie2.main.view.halos.buttons.characterStyleFlags.

TEXT_CHARACTER_FORMAT_COMMONS_R0
TEXT_CHAR_SPACING_R0
TEXT_CHAR_COLOR_R0
TEXT_CHAR_SPACE_OVERLAP_R0
TEXT_FONTS_SUPPORT_R0
TEXT_FONTS_INTERFACE_R0

TEXT_HALO_MENU_R0

DETACHED_TEXT_FRAME_EDITOR_R0

How to demo

  • Run the application
  • Create a new book and place text frame inside
  • Populate some lorem ipsum text inside with a number of paragraphs(lorem ipsum generator --> http://www.lipsum.com/)
  • Set focus to the text content and adjust texts styles from text halo menu

Design

(Describe your design here.)

Implementation

(Describe and link the implementation results here (from the wiki or the repository).)

Testing

(Place the testing results here.)

Comments

(Write comments for this or later revisions here.)